Skip to content
dimmiDocs

Workflows and integrations

Get a workflow's analytics

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

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; 30 days ago when left out.

tostring

Last day, YYYY-MM-DD.

versioninteger

Only runs on this published version number; 0 counts every version.

Format: int32 · Minimum: 0

Response 200

OK
dataobjectrequired
Show child attributes
activeintegerrequired

Runs in the range still running or waiting.

Format: int32

completedintegerrequired

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

Format: int32

daysobject[] | nullrequired

Runs started, completed and failed per day of the range.

Show child attributes
completedintegerrequired

Runs started that day that completed.

Format: int32

daystringrequired

The day, as YYYY-MM-DD in UTC.

Format: date-time

failedintegerrequired

Runs started that day that failed.

Format: int32

triggeredintegerrequired

Runs started that day.

Format: int32

engagedintegerrequired

Runs in the range where the customer wrote while the run went on.

Format: int32

failedintegerrequired

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

Format: int32

fromstringrequired

The first moment the numbers count.

Format: date-time

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

objectstringrequired

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

stepsobjectrequired

Each step's numbers, by step id: reached, waiting now, failed, dropped and paths taken.

tostringrequired

The moment the numbers stop counting.

Format: date-time

triggeredintegerrequired

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

Format: int32

versioninteger | nullrequired

The published version the numbers count. Null when they count every version.

Format: int32

workflow_idstringrequired

The workflow the numbers are about, such as wf_....

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.