Skip to content
dimmiDocs

Reports and data

Report on procedures

GET/api/v1/reports/procedures

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:read ability

Query parameters

fromstring

First day, YYYY-MM-DD.

tostring

Last day, YYYY-MM-DD.

Response 200

OK
dataobject[] | nullrequired

The items of this page, as a list; empty when nothing matches.

Show child attributes
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

How many of those conversations the AI resolved with no teammate reply and no handover.

Format: int32

guard_eventsintegerrequired

How many times the procedure's guardrails stepped in over the range.

Format: int32

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

matched_conversationsintegerrequired

How many conversations the procedure ran in over the range.

Format: int32

mean_ratingnumber | nullrequired

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

Format: double

namestringrequired

Name of the procedure.

procedure_idstringrequired

Id of the procedure (starts with prc_); send it wherever a procedure is asked for.

ratedintegerrequired

How many of the conversations the customer rated.

Format: int32

linksobject

Addresses of related pages by name, such as next; left out when there are none.

metaobjectrequired
Show child attributes
next_cursorstring | nullrequired

Send it as cursor to read the next page; null on the last page.

per_pageintegerrequired

How many items a page holds at most, such as 25.

Format: int64

prev_cursorstring | nullrequired

Send it as cursor to read the page before; null on the first page.

totalinteger

How many items match in all; left out when the list does not count them.

Format: int64

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.