Skip to content
dimmiDocs

Workflows and integrations

List a workflow's runs

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

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

limitinteger

How many runs 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_.... Null when it has none.

end_reasonstring | nullrequired

Why the run ended, such as completed, conversation_closed, teammate_replied, no_action, expired or internal_error. Null while it has not ended.

ended_atstring | nullrequired

When the run ended. Null while it is running or waiting.

Format: date-time

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.

parent_run_idstring | nullrequired

Id of the run that called this one from a run-workflow step, such as wfr_.... Null when nothing called it.

started_atstringrequired

When the run started.

Format: date-time

statusstringrequired

Where the run stands: running, waiting, completed, passed, exited, canceled, failed or expired.

stepsobject[] | nullrequired

Every step the run executed, in order, with the path it took and its outcome.

Show child attributes
detailanyrequired

A 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 | nullrequired

When the step finished. Null while it has not.

Format: date-time

kindstringrequired

What the step does, such as message, branch, wait, assign, tag, close, create_ticket or http_request.

outcomestring | nullrequired

What the step resulted in, as a short word. Null when it records none.

path_idstring | nullrequired

Id 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_atstringrequired

When the step started.

Format: date-time

statusstringrequired

How the step went: completed, waiting, skipped, failed or interrupted.

step_idstringrequired

The step's id within the workflow's definition.

triggerstringrequired

The event that started the run, such as message.customer or ticket.created.

version_idstring | nullrequired

Id of the published version the run ran on, such as wfv_....

version_numberinteger | nullrequired

Number of 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.