Get credit and call usage
/usageCredits used, calls placed, calls answered and time on the line over a period, point by point and per assistant and campaign, compared with the period just before. Also returns the balance now and the date it runs out at the recent pace.
Query parameters
fromstring (date-time)Start of the period, ISO 8601 (e.g. 2026-11-01T00:00:00+01:00). Default: the start of the current month in
timezone.tostring (date-time)End of the period, excluded, ISO 8601. Default: now.
granularity"hour" | "day" | "week" | "month"Size of each point of
series. Default: hour up to 2 days, day up to 92 days, week up to a year, month beyond. At most 400 points.timezonestringIANA timezone the points and the default period are cut in. Default: Europe/Paris.
Request body
No body: send the request without one.
Response
200periodobjectprevious_periodobjectThe period of the same length just before, to compare against.
totalsobjectTotals over the period.
previous_totalsobjectTotals over the previous period.
seriesarray of objectThe period point by point, oldest first, empty points included.
by_assistantarray of objectThe period per assistant, most credits first.
by_campaignarray of objectThe period per campaign, most credits first.
balanceobjectThe balance now and how long it lasts at the recent pace. Does not depend on the period.
Errors
- 400Invalid request: a field or parameter failed validation
{ "message"?: string, "error"?: string, "bodyErrors"?: {…} } - 401Missing or invalid API key
{ "message"?: string, "error"?: string, "bodyErrors"?: {…} }
Error bodies carry an error (or message) string; a 400 adds bodyErrors.issues. See Errors.