Reports and data
Report on procedures
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai: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
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_resolvedintegerrequiredHow many of those conversations the AI resolved with no teammate reply and no handover.
Format: int32
guard_eventsintegerrequiredHow many times the procedure's guardrails stepped in over the range.
Format: int32
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
matched_conversationsintegerrequiredHow many conversations the procedure ran in over the range.
Format: int32
mean_ratingnumber | nullrequiredAverage customer rating of the rated conversations, on the 1 to 5 scale. Null when none were rated.
Format: double
namestringrequiredName of the procedure.
procedure_idstringrequiredId of the procedure (starts with prc_); send it wherever a procedure is asked for.
ratedintegerrequiredHow many of the conversations the customer rated.
Format: int32
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.