Runs
Trigger and manage process runs. Start new runs and view details about run executions.
Get a list of all the runs for a specified process and agent.
The unique identifier of the process.
The unique identifier of the agent.
Maximum number of items to return.
10
The process stage.
Stage of a process
Pagination token used to retrieve the next page of results. It is returned in a prior response from a call made to this endpoint.
GET /v2/runs HTTP/1.1
Host: rest-api.app.kognitos.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"continuation_token": "text",
"items": [
{
"field1": "...",
"id": "<resource-id>",
"name": "user provided name"
}
]
}
Initiates a new run (execution) of a specified process. Each run is an independent instance that can be tracked for status and results.
The ID of the agent containing the process
b4fznghynbdemslfd5k044fgd
Pattern: ^[a-zA-Z0-9-_]+$
List of IDs of files given as input to the process
["b4fznghynbdemslfd5k044fgd","9nvx1hdm9bd74rp585oe81t5i"]
Inputs to the process
[{"name":"order_id","value":"b4fznghynbdemslfd5k044fgd"}]
Name for this run
Process invoice 42
The ID of the process to run
b4fznghynbdemslfd5k044fgd
Pattern: ^[a-zA-Z0-9-_]+$
The stage of the process
Draft
Possible values: POST /v2/runs HTTP/1.1
Host: rest-api.app.kognitos.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 261
{
"agent_id": "b4fznghynbdemslfd5k044fgd",
"file_ids": [
"b4fznghynbdemslfd5k044fgd",
"9nvx1hdm9bd74rp585oe81t5i"
],
"inputs": [
{
"name": "order_id",
"value": "b4fznghynbdemslfd5k044fgd"
}
],
"name": "Process invoice 42",
"process_id": "b4fznghynbdemslfd5k044fgd",
"stage": "Draft"
}
{
"agent_id": "b4fznghynbdemslfd5k044fgd",
"created_at": "2021-01-01T12:00:00",
"file_ids": [
"b4fznghynbdemslfd5k044fgd",
"9nvx1hdm9bd74rp585oe81t5i"
],
"id": "b4fznghynbdemslfd5k044fgd",
"name": "Process invoice",
"outputs": [
{
"name": "total_items",
"value": 42
},
{
"name": "customer_id",
"value": "9nvx1hdm9bd74rp585oe81t5i"
}
],
"process_id": "b4fznghynbdemslfd5k044fgd",
"stage": "Draft",
"status": "Created"
}
Get the details of a specific run.
The unique identifier of the run.
GET /v2/runs/{run_id} HTTP/1.1
Host: rest-api.app.kognitos.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"agent_id": "b4fznghynbdemslfd5k044fgd",
"created_at": "2021-01-01T12:00:00",
"file_ids": [
"b4fznghynbdemslfd5k044fgd",
"9nvx1hdm9bd74rp585oe81t5i"
],
"id": "b4fznghynbdemslfd5k044fgd",
"name": "Process invoice",
"outputs": [
{
"name": "total_items",
"value": 42
},
{
"name": "customer_id",
"value": "9nvx1hdm9bd74rp585oe81t5i"
}
],
"process_id": "b4fznghynbdemslfd5k044fgd",
"stage": "Draft",
"status": "Created"
}
Was this helpful?