AI agent
Get a procedure's metrics
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai:read ability
Path parameters
procedurestringrequiredId of the AI agent procedure, starting with prc_, such as prc_01jx2m8k4t. Find it with GET /procedures.
Query parameters
daysintegerHow many days back, up to 90.
Format: int64 · Minimum: 0 · Maximum: 90
versionstringOnly conversations on this published version.
Maximum length: 10
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
actionsobject[] | nullrequiredHow each action fared in the procedure's runs: calls, failures and average time.
Show child attributesHide child attributes
action_idstringrequiredId of the workspace action (starts with aac_).
callsintegerrequiredHow many times the action was called in runs that followed the procedure.
Format: int32
error_ratenumber | nullrequiredShare of those calls that failed, from 0 to 1. Null when there were no calls.
Format: double
failedintegerrequiredHow many of those calls failed.
Format: int32
mean_latency_msnumberrequiredHow long a call took on average, in milliseconds.
Format: double
namestringrequiredName of the action.
ai_assumedintegerrequiredConversations counted as resolved by the AI without the customer confirming it: ai_resolved minus ai_confirmed.
Format: int32
ai_confirmedintegerrequiredConversations the AI resolved where the customer confirmed it was solved.
Format: int32
ai_involvedintegerrequiredHow many of the matched conversations the AI agent took part in.
Format: int32
ai_resolution_ratenumber | nullrequiredai_resolved divided by ai_involved, from 0 to 1. Null when the AI was in none.
Format: double
ai_resolvedintegerrequiredConversations the AI resolved with no teammate reply and no handover: confirmed, closed, or left quiet after its last answer.
Format: int32
csatobjectrequiredShow child attributesHide child attributes
meannumber | nullrequiredAverage customer rating of the rated conversations, on the 1 to 5 scale. Null when none were rated.
Format: double
positiveintegerrequiredHow many conversations were rated 4 or 5.
Format: int32
positive_ratenumber | nullrequiredShare of rated conversations rated 4 or 5, from 0 to 1. Null when none were rated.
Format: double
ratedintegerrequiredHow many of the conversations the customer rated.
Format: int32
daysintegerrequiredHow many days back the numbers cover.
Format: int64
guardrailsobjectrequiredHow often each kind of guardrail stepped in, as an object of guardrail kind to count. Empty when none did.
handed_offintegerrequiredHow many conversations the AI handed to the team.
Format: int32
handover_ratenumber | nullrequiredhanded_off divided by ai_involved, from 0 to 1. Null when the AI was in none.
Format: double
handover_reasonsobject[] | nullrequiredThe handovers counted by why, most common first.
Show child attributesHide child attributes
conversationsintegerrequiredHow many conversations were handed to the team for this reason.
Format: int32
kindstringrequiredWhat sort of reason it is: intentional (the procedure asked), customer (the customer asked), guardrail (one stepped in) or failure (something broke).
reasonstringrequiredThe handover reason as recorded, such as customer_requested, procedure_guard or provider_error; other when none was given.
matched_conversationsintegerrequiredHow many conversations the procedure ran in over the range.
Format: int32
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
procedure_idstringrequiredId of the procedure these numbers are for (starts with prc_).
runsobject[] | nullrequiredThe runs behind the numbers, newest first, for drilling into what went wrong.
Show child attributesHide child attributes
conversation_idstring | nullrequiredId of the conversation the run was in (starts with conv_). Null when it has none.
conversation_numberintegerrequiredNumber of the conversation the run was in.
Format: int64
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
handoff_reasonstring | nullrequiredWhy the run handed the conversation to the team, such as customer_requested or provider_error. Null when it did not.
outcomestring | nullrequiredHow the run ended, such as answered, handoff, unknown, silent, refused, skipped or error. Null when not recorded.
procedure_traceanyWhat 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 | nullrequiredThe customer's rating of the conversation, from 1 (worst) to 5 (best). Null when not rated.
Format: int32 · Minimum: -32768 · Maximum: 32767
reopensintegerrequiredHow many times the conversation was reopened.
Format: int32
run_idstringrequiredId of the AI run (starts with air_); read that run for its full steps.
stepsobject[] | nullrequiredHow far conversations got through each step of the procedure.
Show child attributesHide child attributes
completion_ratenumber | nullrequireddone divided by reached, from 0 to 1. Null when no conversation reached the step.
Format: double
doneintegerrequiredHow many conversations finished the step.
Format: int32
reachedintegerrequiredHow many conversations reached the step.
Format: int32
step_idstringrequiredId of the step inside the procedure's definition.
took_elseintegerrequiredHow many conversations took the else side of this step's condition.
Format: int32
took_thenintegerrequiredHow many conversations took the then side of this step's condition.
Format: int32
versioninteger | nullrequiredThe published version number these numbers are narrowed to. Null when every version is counted.
Format: int32
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.