Query parameters
-
Sim string
SID or unique name of a Sim resource. Only show UsageRecords representing usage incurred by this Super SIM.
-
Fleet string
SID or unique name of a Fleet resource. Only show UsageRecords representing usage for Super SIMs belonging to this Fleet resource at the time the usage occurred.
-
Network string
SID of a Network resource. Only show UsageRecords representing usage on this network.
-
IsoCountry string(iso-country-code)
Alpha-2 ISO Country Code. Only show UsageRecords representing usage in this country.
-
Group string
Dimension over which to aggregate usage records. Can be:
sim
,fleet
,network
,isoCountry
. Default is to not aggregate across any of these dimensions, UsageRecords will be aggregated into the time buckets described by theGranularity
parameter.Values are
sim
,fleet
,network
, orisoCountry
. -
Granularity string
Time-based grouping that UsageRecords should be aggregated by. Can be:
hour
,day
, orall
. Default isall
.all
returns one UsageRecord that describes the usage for the entire period.Values are
hour
,day
, orall
. -
StartTime string(date-time)
Only include usage that occurred at or after this time, specified in ISO 8601 format. Default is one month before the
end_time
. -
EndTime string(date-time)
Only include usage that occurred before this time (exclusive), specified in ISO 8601 format. Default is the current time.
-
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
.
curl \
-X GET https://supersim.twilio.com/v1/UsageRecords \
--user "username:password"
{
"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",
"billed_unit": "string",
"data_download": 42,
"data_total": 42,
"data_total_billed": 42.0,
"data_upload": 42,
"fleet_sid": "string",
"iso_country": "string",
"network_sid": "string",
"sim_sid": "string"
}
]
}
{
"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",
"billed_unit": "string",
"data_download": 42,
"data_total": 42,
"data_total_billed": 42.0,
"data_upload": 42,
"fleet_sid": "string",
"iso_country": "string",
"network_sid": "string",
"sim_sid": "string"
}
]
}