Workflows and integrations
List a workflow's runs
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the workflows:read ability
Path parameters
workflowstringrequiredId of the workflow, starting with wf_, such as wf_01jx2m8k4t. Find it with GET /workflows.
Query parameters
limitintegerHow many runs to answer, at most 100.
Format: int64 · Minimum: 0 · Maximum: 50
Response 200
OKdataobject[] | nullrequiredThe items of this page, as a list; empty when nothing matches.
Show child attributesHide child attributes
conversation_idstring | nullrequiredId of the conversation the run worked on, such as conv_.... Null when it has none.
end_reasonstring | nullrequiredWhy the run ended, such as completed, conversation_closed, teammate_replied, no_action, expired or internal_error. Null while it has not ended.
ended_atstring | nullrequiredWhen the run ended. Null while it is running or waiting.
Format: date-time
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
parent_run_idstring | nullrequiredId of the run that called this one from a run-workflow step, such as wfr_.... Null when nothing called it.
started_atstringrequiredWhen the run started.
Format: date-time
statusstringrequiredWhere the run stands: running, waiting, completed, passed, exited, canceled, failed or expired.
stepsobject[] | nullrequiredEvery step the run executed, in order, with the path it took and its outcome.
Show child attributesHide child attributes
detailanyrequiredA few small facts the step kept, such as the member it picked, as an object. Never holds message text. Empty object when there are none.
finished_atstring | nullrequiredWhen the step finished. Null while it has not.
Format: date-time
kindstringrequiredWhat the step does, such as message, branch, wait, assign, tag, close, create_ticket or http_request.
outcomestring | nullrequiredWhat the step resulted in, as a short word. Null when it records none.
path_idstring | nullrequiredId of the path the run took out of this step, as named in the workflow's definition. Null when the step has no paths.
started_atstringrequiredWhen the step started.
Format: date-time
statusstringrequiredHow the step went: completed, waiting, skipped, failed or interrupted.
step_idstringrequiredThe step's id within the workflow's definition.
triggerstringrequiredThe event that started the run, such as message.customer or ticket.created.
version_idstring | nullrequiredId of the published version the run ran on, such as wfv_....
version_numberinteger | nullrequiredNumber of the published version the run ran on.
Format: int32
linksobjectAddresses of related pages by name, such as next; left out when there are none.
metaobjectrequiredShow child attributesHide child attributes
next_cursorstring | nullrequiredSend it as cursor to read the next page; null on the last page.
per_pageintegerrequiredHow many items a page holds at most, such as 25.
Format: int64
prev_cursorstring | nullrequiredSend it as cursor to read the page before; null on the first page.
totalintegerHow many items match in all; left out when the list does not count them.
Format: int64
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.