Query parameters
-
SID or unique name of a Sim resource. Only show UsageRecords representing usage incurred by this Super SIM.
-
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.
-
SID of a Network resource. Only show UsageRecords representing usage on this network.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^HW[0-9a-fA-F]{32}$
. -
Alpha-2 ISO Country Code. Only show UsageRecords representing usage in this country.
-
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
. -
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
. -
Only include usage that occurred at or after this time, specified in ISO 8601 format. Default is one month before the
end_time
. -
Only include usage that occurred before this time (exclusive), specified in ISO 8601 format. Default is the current time.
-
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
. -
The page index. This value is simply for client state.
Minimum value is
0
. -
The page token. This is provided by the API.
curl \
--request GET 'https://supersim.twilio.com/v1/UsageRecords' \
--user "username:password"
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2015-06-01T20:00:00Z",
"start_time": "2015-05-01T20:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?Granularity=day&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Granularity=day&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-03T00:00:00Z",
"start_time": "2019-05-02T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?Granularity=hour&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Granularity=hour&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-01T02:00:00Z",
"start_time": "2019-05-01T01:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-01T01:00:00Z",
"start_time": "2019-05-01T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-03T00:00:00Z",
"start_time": "2019-05-02T00:00:00Z"
},
"sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?Network=HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Network=HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-03T00:00:00Z",
"start_time": "2019-05-02T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?IsoCountry=FR&Granularity=day&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?IsoCountry=FR&Granularity=day&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": "FR",
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-03T00:00:00Z",
"start_time": "2019-05-02T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": "FR",
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": "HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-03T00:00:00Z",
"start_time": "2019-05-02T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": "HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?Group=sim&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Group=sim&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": "HSbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?Group=fleet&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Group=fleet&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": "HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": "HFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?Group=network&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Group=network&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": null,
"network_sid": "HWbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?Group=isoCountry&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Group=isoCountry&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": "FR",
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": "US",
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?IsoCountry=FR&Group=sim&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?IsoCountry=FR&Group=sim&PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": "FR",
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
},
{
"period": {
"end_time": "2019-05-04T00:00:00Z",
"start_time": "2019-05-03T00:00:00Z"
},
"sim_sid": "HSbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"fleet_sid": null,
"data_total": 300000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": "USD",
"data_upload": 150000,
"iso_country": "FR",
"network_sid": null,
"data_download": 150000,
"data_total_billed": "0.03"
}
]
}
{
"meta": {
"key": "usage_records",
"url": "https://supersim.twilio.com/v1/UsageRecords?PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?PageSize=50&Page=0",
"previous_page_url": null
},
"usage_records": [
{
"period": {
"end_time": "2015-06-01T20:00:00Z",
"start_time": "2015-05-01T20:00:00Z"
},
"sim_sid": null,
"fleet_sid": null,
"data_total": 2000,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"billed_unit": null,
"data_upload": 1000,
"iso_country": null,
"network_sid": null,
"data_download": 1000,
"data_total_billed": "0"
}
]
}