Get message usage
GET/v1/usage
- Scope
messages:read
Inbound, outbound and failed outbound message counts per line for a period. Defaults to this calendar month (UTC).
Parameters
Query
fromtimestampStart, ISO 8601 with an offset (default: the 1st of this month, UTC).
totimestampEnd, ISO 8601 with an offset (default: now).
Response
200 OKCounts per line.
object"usage"requiredfromtimestamprequiredtotimestamprequireddataarray of objectrequiredFields of
dataprofile_idstringrequiredinboundintegerrequiredoutboundintegerrequiredoutbound_failedintegerrequired
Errors
| Status | Code | Means |
|---|---|---|
| 400 | validation_failed | A field is missing or invalid. |
| 401 | unauthorized | The API key is missing, unknown or revoked. |
| 403 | insufficient_scope | The API key lacks the scope this needs. |
| 404 | not_found | No such object, or the key can't see it. |
Every error is { "error": { "code", "message" } }. All error codes.