Path parameters
-
The SID of the Sim resource to read the usage from.
Query parameters
-
End string(date-time)
Only include usage that occurred on or before this date, specified in ISO 8601. The default is the current time.
-
Start string(date-time)
Only include usage that has occurred on or after this date, specified in ISO 8601. The default is one month before the
end
parameter value. -
Granularity string
How to summarize the usage by time. Can be:
daily
,hourly
, orall
. The default isall
. 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/Sims/{SimSid}/UsageRecords
curl \
-X GET https://wireless.twilio.com/v1/Sims/{SimSid}/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",
"sim_sid": "string"
}
]
}
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",
"sim_sid": "string"
}
]
}