Reports and data
Report on workflows
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the workflows:read ability
Query parameters
fromstringFirst day, YYYY-MM-DD.
tostringLast day, YYYY-MM-DD.
Response 200
OKdataobject[] | nullrequiredThe items of this page, as a list; empty when nothing matches.
Show child attributesHide child attributes
completedintegerrequiredRuns in the range that reached the end of their path.
Format: int32
failedintegerrequiredRuns in the range that failed, or where a step failed.
Format: int32
goalobjectrequiredShow child attributesHide child attributes
kindstringrequiredWhat counts as the workflow working: resolved (closed with no teammate reply or handover) or csat (rated at least min_rating).
min_ratinginteger | nullrequiredWith csat, the lowest rating that counts, 1 to 5. Null otherwise.
Format: int64
windowstringrequiredHow long after the run starts the goal may be reached, such as 7d.
goal_metinteger | nullrequiredRuns in the range whose conversation reached the workflow's goal. Null when the workflow has no goal.
Format: int32
handed_overintegerrequiredRuns in the range that handed the conversation to a person.
Format: int32
namestringrequiredThe workflow's name.
statusstringrequiredWhere the workflow stands: draft, live or paused.
triggerstringrequiredThe event that starts the workflow, such as conversation.first_message.
triggeredintegerrequiredRuns that started in the range and did something. Test conversations never count.
Format: int32
workflow_idstringrequiredId of the workflow, such as wf_....
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.