Workspace · Usage

SMS usage (volumes)

Returns the SMS usage (volumes).

GEThttps://api.pozy.ai/v1/usage/sms
getSmsUsage

Guide: Usage and spend

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the billing resource group disabled get 403 resource_group_disabled. Authentication

Query parameters

NameTypeNotes
sincestring (date-time)
untilstring (date-time)
numberstring
groupBystringOne of day, number

Example

curl -X GET "https://api.pozy.ai/v1/usage/sms" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • sincestring (date-time)
  • untilstring (date-time)
  • groupBystring

    One of day, number. Can be null.

  • totalsobject
    • sentinteger
    • receivedinteger
    • totalinteger
  • groupsarray of object
    • keystring
    • sentinteger
    • receivedinteger
    • totalinteger
200 response
{
  "since": "2026-10-02T09:00:00.000Z",
  "until": "2026-10-02T09:00:00.000Z",
  "groupBy": "day",
  "totals": {
    "sent": 1,
    "received": 1,
    "total": 42
  },
  "groups": [
    {
      "key": "string",
      "sent": 1,
      "received": 1,
      "total": 42
    }
  ]
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Usage