Runs

Trigger and manage process runs. Start new runs and view details about run executions.

List Runs

get
/runs

Get a list of all the runs for a specified process and agent.

Authorizations
x-api-keystringRequired
Query parameters
process_idstringRequired

The unique identifier of the process.

agent_idstringRequired

The unique identifier of the agent.

limitany ofOptional

Maximum number of items to return.

Default: 10
integer · max: 100Optional
or
nullOptional
stageany ofOptional

The process stage.

string · enumOptional

Stage of a process

Possible values:
or
nullOptional
continuation_tokenany ofOptional

Pagination token used to retrieve the next page of results. It is returned in a prior response from a call made to this endpoint.

stringOptional
or
nullOptional
Responses
chevron-right
200

A List of runs

application/json
continuation_tokenany ofRequired

Used in subsequent GET requests to obtain more results for the same query (pagination)

stringOptional
or
nullOptional
itemsany ofRequired

List of resources

Example: [{"field1":"...","id":"<resource-id>","name":"user provided name"}]
or
nullOptional
get
/runs

Start a Run

post
/runs

Initiates a new run (execution) of a specified process. Each run is an independent instance that can be tracked for status and results.

Authorizations
x-api-keystringRequired
Body
agent_idstring · min: 1 · max: 26Required

The ID of the agent containing the process

Example: b4fznghynbdemslfd5k044fgdPattern: ^[a-zA-Z0-9-_]+$
file_idsany ofOptional

List of IDs of files given as input to the process

Example: ["b4fznghynbdemslfd5k044fgd","9nvx1hdm9bd74rp585oe81t5i"]
string[]Optional
or
nullOptional
inputsany ofOptional

Inputs to the process

Example: [{"name":"order_id","value":"b4fznghynbdemslfd5k044fgd"}]
or
nullOptional
namestring · min: 1 · max: 100Required

Name for this run

Example: Process invoice 42
process_idstring · min: 1 · max: 26Required

The ID of the process to run

Example: b4fznghynbdemslfd5k044fgdPattern: ^[a-zA-Z0-9-_]+$
stagestring · enumRequired

The stage of the process

Example: DraftPossible values:
Responses
post
/runs

Get Run

get
/runs/{run_id}

Get the details of a specific run.

Authorizations
x-api-keystringRequired
Path parameters
run_idstringRequired

The unique identifier of the run.

Responses
chevron-right
200

The requested run

application/json
agent_idstring · min: 1 · max: 26Required

The ID of the process's agent

Example: b4fznghynbdemslfd5k044fgdPattern: ^[a-zA-Z0-9-_]+$
created_atstring · date-timeRequired

Date and time created

Example: 2021-01-01T12:00:00
file_idsany ofOptional

List of IDs of files given as input to the process

Example: ["b4fznghynbdemslfd5k044fgd","9nvx1hdm9bd74rp585oe81t5i"]
string[]Optional
or
nullOptional
idstring · min: 1 · max: 26Required

The ID of the resource

Example: b4fznghynbdemslfd5k044fgdPattern: ^[a-zA-Z0-9-_]+$
namestring · min: 1 · max: 100Required

The name of the resource

Example: Process invoice
outputsany ofOptional

Outputs of the process

Example: [{"name":"total_items","value":42},{"name":"customer_id","value":"9nvx1hdm9bd74rp585oe81t5i"}]
or
nullOptional
process_idstring · min: 1 · max: 26Required

The ID of the process

Example: b4fznghynbdemslfd5k044fgdPattern: ^[a-zA-Z0-9-_]+$
stagestring · enumRequired

The stage of the process

Example: DraftPossible values:
statusstring · enumRequired

Status of the run

Example: CreatedPossible values:
get
/runs/{run_id}

Last updated

Was this helpful?