Skip to content
dimmiDocs

Reports and data

Report on workflows

GET/api/v1/reports/workflows

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the workflows:read ability

Query parameters

fromstring

First day, YYYY-MM-DD.

tostring

Last day, YYYY-MM-DD.

Response 200

OK
dataobject[] | nullrequired

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

Show child attributes
completedintegerrequired

Runs in the range that reached the end of their path.

Format: int32

failedintegerrequired

Runs in the range that failed, or where a step failed.

Format: int32

goalobjectrequired
Show child attributes
kindstringrequired

What counts as the workflow working: resolved (closed with no teammate reply or handover) or csat (rated at least min_rating).

min_ratinginteger | nullrequired

With csat, the lowest rating that counts, 1 to 5. Null otherwise.

Format: int64

windowstringrequired

How long after the run starts the goal may be reached, such as 7d.

goal_metinteger | nullrequired

Runs in the range whose conversation reached the workflow's goal. Null when the workflow has no goal.

Format: int32

handed_overintegerrequired

Runs in the range that handed the conversation to a person.

Format: int32

namestringrequired

The workflow's name.

statusstringrequired

Where the workflow stands: draft, live or paused.

triggerstringrequired

The event that starts the workflow, such as conversation.first_message.

triggeredintegerrequired

Runs that started in the range and did something. Test conversations never count.

Format: int32

workflow_idstringrequired

Id of the workflow, such as wf_....

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.