GET /v1/usage returns that usage aggregated over a period, so you can build reports, consumption alerts and cost checks.
Required scope:
usage:read.Query usage
Give the period withfrom (inclusive) and to (exclusive), as UTC dates in YYYY-MM-DD format.
Response
metric, channel_type and provider over the whole period. The current day, still open, is read live and added in. There is no pagination: the size of the response is bounded by the number of metrics and channels, not by the volume sent.
Metrics
The list of metrics is closed: new metrics can be added, but existing ones are never renamed.
Messages the business sends from the WhatsApp Business app, on a channel in coexistence mode, do not count as usage: neither their send metrics nor their delivery or failure metrics. The same applies to the history imported when the channel is connected. See Messages sent from the WhatsApp Business app.
How usage is recorded
- Billable usage is written in the same transaction as the state change that caused it. That is why it does not drift from what actually happened.
- Reprocessing an event does not count twice: each fact is recorded only once per metric.
- The dashboard shows the same usage, per project.
Usage is different from the plan allowance: the first measures what happened; the second decides whether you can send right now. See Plans and allowance.