Skip to content
Usage

Get credit and call usage

GET/usage

Credits 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.

  • timezonestring

    IANA timezone the points and the default period are cut in. Default: Europe/Paris.

Request body

No body: send the request without one.

Response

200
  • periodobject
  • previous_periodobject

    The period of the same length just before, to compare against.

  • totalsobject

    Totals over the period.

  • previous_totalsobject

    Totals over the previous period.

  • seriesarray of object

    The period point by point, oldest first, empty points included.

  • by_assistantarray of object

    The period per assistant, most credits first.

  • by_campaignarray of object

    The period per campaign, most credits first.

  • balanceobject

    The 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.