Skip to main content
What the account sent and received on each channel (messages, and SMS parts in segments), its calls and minutes, its API requests, what was charged and its balance — for this month so far, or the days you ask for. The figures are the ones the panel’s billing page shows.
Needs the usage:read scope.

Query parameters

Request

Response

200 OK — delivered counts messages delivered, read or replied to. calls is null without Voice. api.messages counts messages sent through POST /v1/messages. Money is in minor units (paise, cents): charged is what sends cost, net of refunds for messages a channel refused — top-ups aren’t spend — and balance is what the account holds now. days is there with by=day only.
charged.amount is what sends cost in the period, net of refunds, as a decimal string with four places: a message can cost less than a paisa or a cent, so the total can carry a fraction of one. charged.amount_minor is the same figure in whole minor units, rounded half up. Use amount for anything you add up or reconcile; amount_minor is kept for integrations that already read it. balance.amount_minor is in whole minor units, rounded down.

Errors

Every refusal is {"error": {"code", "message", "field"}}; field is there when one input is at fault. Any request can also be refused for its key, its account or its rate (key_required, invalid_key, account_suspended, plan_excludes_api, address_not_allowed, rate_limited); see the overview.