Skip to content
dimmiDocs

AI agent

Get a procedure's metrics

GET/api/v1/procedures/{procedure}/metrics

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:read ability

Path parameters

procedurestringrequired

Id of the AI agent procedure, starting with prc_, such as prc_01jx2m8k4t. Find it with GET /procedures.

Query parameters

daysinteger

How many days back, up to 90.

Format: int64 · Minimum: 0 · Maximum: 90

versionstring

Only conversations on this published version.

Maximum length: 10

Response 200

OK
dataobjectrequired
Show child attributes
actionsobject[] | nullrequired

How each action fared in the procedure's runs: calls, failures and average time.

Show child attributes
action_idstringrequired

Id of the workspace action (starts with aac_).

callsintegerrequired

How many times the action was called in runs that followed the procedure.

Format: int32

error_ratenumber | nullrequired

Share of those calls that failed, from 0 to 1. Null when there were no calls.

Format: double

failedintegerrequired

How many of those calls failed.

Format: int32

mean_latency_msnumberrequired

How long a call took on average, in milliseconds.

Format: double

namestringrequired

Name of the action.

ai_assumedintegerrequired

Conversations counted as resolved by the AI without the customer confirming it: ai_resolved minus ai_confirmed.

Format: int32

ai_confirmedintegerrequired

Conversations the AI resolved where the customer confirmed it was solved.

Format: int32

ai_involvedintegerrequired

How many of the matched conversations the AI agent took part in.

Format: int32

ai_resolution_ratenumber | nullrequired

ai_resolved divided by ai_involved, from 0 to 1. Null when the AI was in none.

Format: double

ai_resolvedintegerrequired

Conversations the AI resolved with no teammate reply and no handover: confirmed, closed, or left quiet after its last answer.

Format: int32

csatobjectrequired
Show child attributes
meannumber | nullrequired

Average customer rating of the rated conversations, on the 1 to 5 scale. Null when none were rated.

Format: double

positiveintegerrequired

How many conversations were rated 4 or 5.

Format: int32

positive_ratenumber | nullrequired

Share of rated conversations rated 4 or 5, from 0 to 1. Null when none were rated.

Format: double

ratedintegerrequired

How many of the conversations the customer rated.

Format: int32

daysintegerrequired

How many days back the numbers cover.

Format: int64

guardrailsobjectrequired

How often each kind of guardrail stepped in, as an object of guardrail kind to count. Empty when none did.

handed_offintegerrequired

How many conversations the AI handed to the team.

Format: int32

handover_ratenumber | nullrequired

handed_off divided by ai_involved, from 0 to 1. Null when the AI was in none.

Format: double

handover_reasonsobject[] | nullrequired

The handovers counted by why, most common first.

Show child attributes
conversationsintegerrequired

How many conversations were handed to the team for this reason.

Format: int32

kindstringrequired

What sort of reason it is: intentional (the procedure asked), customer (the customer asked), guardrail (one stepped in) or failure (something broke).

reasonstringrequired

The handover reason as recorded, such as customer_requested, procedure_guard or provider_error; other when none was given.

matched_conversationsintegerrequired

How many conversations the procedure ran in over the range.

Format: int32

objectstringrequired

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

procedure_idstringrequired

Id of the procedure these numbers are for (starts with prc_).

runsobject[] | nullrequired

The runs behind the numbers, newest first, for drilling into what went wrong.

Show child attributes
conversation_idstring | nullrequired

Id of the conversation the run was in (starts with conv_). Null when it has none.

conversation_numberintegerrequired

Number of the conversation the run was in.

Format: int64

created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

handoff_reasonstring | nullrequired

Why the run handed the conversation to the team, such as customer_requested or provider_error. Null when it did not.

outcomestring | nullrequired

How the run ended, such as answered, handoff, unknown, silent, refused, skipped or error. Null when not recorded.

procedure_traceany

What the procedure did in this run, as a JSON object with its version, the steps reached and any guardrail events. Left out when there is none.

ratinginteger | nullrequired

The customer's rating of the conversation, from 1 (worst) to 5 (best). Null when not rated.

Format: int32 · Minimum: -32768 · Maximum: 32767

reopensintegerrequired

How many times the conversation was reopened.

Format: int32

run_idstringrequired

Id of the AI run (starts with air_); read that run for its full steps.

stepsobject[] | nullrequired

How far conversations got through each step of the procedure.

Show child attributes
completion_ratenumber | nullrequired

done divided by reached, from 0 to 1. Null when no conversation reached the step.

Format: double

doneintegerrequired

How many conversations finished the step.

Format: int32

reachedintegerrequired

How many conversations reached the step.

Format: int32

step_idstringrequired

Id of the step inside the procedure's definition.

took_elseintegerrequired

How many conversations took the else side of this step's condition.

Format: int32

took_thenintegerrequired

How many conversations took the then side of this step's condition.

Format: int32

versioninteger | nullrequired

The published version number these numbers are narrowed to. Null when every version is counted.

Format: int32

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.