List account usage record
GET
/v1/UsageRecords
Aggregated Usage information for all SIMs on an Account
Query parameters
-
End string(date-time)
Only include usage that has occurred on or before this date. Format is ISO 8601.
-
Start string(date-time)
Only include usage that has occurred on or after this date. Format is ISO 8601.
-
Granularity string
How to summarize the usage by time. Can be:
daily
,hourly
, orall
. A value ofall
returns one Usage Record that describes the usage for the entire period.Values are
hourly
,daily
, orall
. -
PageSize integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
.
GET /v1/UsageRecords
curl \
-X GET https://wireless.twilio.com/v1/UsageRecords \
--user "username:password"
Response examples (200)
{
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
},
"usage_records": [
{
"account_sid": "string"
}
]
}