Retrieve the figures of the answer logs
Answers, credits, average time and answers per channel, over the same filters as GET /v1/logs/answers (without cursor and limit). Costs nothing.
GET/v1/logs/answers/stats
Requires usage:read.
The totals behind the list of answers, over the same filters (channel, assistant_id, widget_id, api_key_id, member_id, result, mode, from, to) and without cursor or limit.
answered and no_answer add up to answers. average_duration_ms is taken over the answers whose time was recorded and is null when none was. by_channel gives the answers of each channel, with zero for a channel that has none.
See Logs.
Authorizations
Authorizationbearerin headerrequiredQuery parameters
channelstringlength: ≥ 1 charsOnly the answers from these channels, comma-separated: chat (a member in the app's chat), lookio_ai (the in-app agent), api (an API key through REST, the CLI or the SDK), mcp (the MCP server), widget (a visitor of a widget). Default: all.
assistant_idstringpattern: ^ast_[abcdefghjkmnpqrstuvwxyz23456789]{12}$Only the answers of this assistant.
widget_idstringpattern: ^wdg_[abcdefghjkmnpqrstuvwxyz23456789]{12}$Only this widget's answers.
api_key_idstringlength: 1–64 charsOnly the answers asked with this API key.
member_idstringlength: 1–64 charsOnly this member's answers (admins).
modestringlength: 1–40 charsOnly this query mode (flash, fast, deep…).
fromstringOnly answers since this ISO 8601 date or timestamp.
tostringOnly answers until this ISO 8601 date or timestamp.
Response
Retrieve the figures of the answer logs
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked, invalid_access_key
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required, permission_denied
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequired