Skip to content
dimmiDocs

Workflows and integrations

List a workflow's failed runs

GET/api/v1/workflows/{workflow}/failures

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the workflows:read ability

Path parameters

workflowstringrequired

Id of the workflow, starting with wf_, such as wf_01jx2m8k4t. Find it with GET /workflows.

Query parameters

fromstring

First day, YYYY-MM-DD.

tostring

Last day, YYYY-MM-DD.

step_idstring

Only this step.

Maximum length: 64

beforestring

Run id (wfr_...) to read on from.

Maximum length: 64

limitinteger

How many to answer, at most 100.

Format: int64 · Minimum: 0 · Maximum: 50

Response 200

OK
dataobject[] | nullrequired

The items of this page, as a list; empty when nothing matches.

Show child attributes
conversation_idstring | nullrequired

Id of the conversation the run worked on, such as conv_....

conversation_numberinteger | nullrequired

The conversation's number, as the inbox shows it.

Format: int64

detailanyrequired

A few small facts the failing step kept, as an object.

end_reasonstring | nullrequired

Why the run ended. Null while it has not.

ended_atstring | nullrequired

When the run ended. Null while it has not.

Format: date-time

erroranyrequired

What went wrong, as the run recorded it. Null when it recorded nothing.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

outcomestring | nullrequired

The failing step's outcome, such as failed.

run_idstringrequired

Id of the run, such as wfr_....

started_atstringrequired

When the run started.

Format: date-time

statusstringrequired

Where the run stands, such as failed or completed.

step_idstring | nullrequired

Id of the first step that failed.

step_kindstring | nullrequired

What the failing step does, such as http_request or classify.

version_numberinteger | nullrequired

The published version the run ran on.

Format: int32

linksobject

Addresses of related pages by name, such as next; left out when there are none.

metaobjectrequired
Show child attributes
next_cursorstring | nullrequired

Send it as cursor to read the next page; null on the last page.

per_pageintegerrequired

How many items a page holds at most, such as 25.

Format: int64

prev_cursorstring | nullrequired

Send it as cursor to read the page before; null on the first page.

totalinteger

How many items match in all; left out when the list does not count them.

Format: int64

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.