Workflows and integrations
List a workflow's failed 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
fromstringFirst day, YYYY-MM-DD.
tostringLast day, YYYY-MM-DD.
step_idstringOnly this step.
Maximum length: 64
beforestringRun id (wfr_...) to read on from.
Maximum length: 64
limitintegerHow many 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_....
conversation_numberinteger | nullrequiredThe conversation's number, as the inbox shows it.
Format: int64
detailanyrequiredA few small facts the failing step kept, as an object.
end_reasonstring | nullrequiredWhy the run ended. Null while it has not.
ended_atstring | nullrequiredWhen the run ended. Null while it has not.
Format: date-time
erroranyrequiredWhat went wrong, as the run recorded it. Null when it recorded nothing.
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.
outcomestring | nullrequiredThe failing step's outcome, such as failed.
run_idstringrequiredId of the run, such as wfr_....
started_atstringrequiredWhen the run started.
Format: date-time
statusstringrequiredWhere the run stands, such as failed or completed.
step_idstring | nullrequiredId of the first step that failed.
step_kindstring | nullrequiredWhat the failing step does, such as http_request or classify.
version_numberinteger | nullrequiredThe 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.