Workflows and integrations
Get a workflow's analytics
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; 30 days ago when left out.
tostringLast day, YYYY-MM-DD.
versionintegerOnly runs on this published version number; 0 counts every version.
Format: int32 · Minimum: 0
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
activeintegerrequiredRuns in the range still running or waiting.
Format: int32
completedintegerrequiredRuns in the range that reached the end of their path.
Format: int32
daysobject[] | nullrequiredRuns started, completed and failed per day of the range.
Show child attributesHide child attributes
completedintegerrequiredRuns started that day that completed.
Format: int32
daystringrequiredThe day, as YYYY-MM-DD in UTC.
Format: date-time
failedintegerrequiredRuns started that day that failed.
Format: int32
triggeredintegerrequiredRuns started that day.
Format: int32
engagedintegerrequiredRuns in the range where the customer wrote while the run went on.
Format: int32
failedintegerrequiredRuns in the range that failed, or where a step failed.
Format: int32
fromstringrequiredThe first moment the numbers count.
Format: date-time
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
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
stepsobjectrequiredEach step's numbers, by step id: reached, waiting now, failed, dropped and paths taken.
tostringrequiredThe moment the numbers stop counting.
Format: date-time
triggeredintegerrequiredRuns that started in the range and did something. Test conversations never count.
Format: int32
versioninteger | nullrequiredThe published version the numbers count. Null when they count every version.
Format: int32
workflow_idstringrequiredThe workflow the numbers are about, such as wf_....
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.