Retrieve the data usage of all devices in an organization, as well as any webhook destination URLs.
Successful operation
Bad request error
Unauthorized error
Forbidden error
Not found error
Internal server error
curl -i -X GET \ 'https://api-prod.surfsight.net/v2/organizations/:orgId/devices-data-usage?offset=1&limit=4' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "data": [
- {
- "mobileTx": 1742802650,
- "mobileRx": 105125084,
- "liveStreamingUsage": 1509793264,
- "eventsUsage": 49707444,
- "liveStreamUsageMilli": 25026908,
- "recordStreamingUsage": 14869072,
- "recordingsUploadUsage": 0,
- "usageEventsTodayDay": 3,
- "usageEventsTodayMonth": 44,
- "recordStreamUsageMilli": 25026908,
- "receivedAt": "2020-01-01T14:48:00.000Z",
- "billingDayOfMonth": 1,
- "mobileProvider": {
- "carrier": "twilio",
- "uniqueName": "Lytx Fleet 2 GB Limit",
- "dataLimit": 1000,
- "dataUsage": {
- "dataTotal": 100,
- "dataUpload": 90,
- "dataDownload": 10,
- "period": {
- "startTime": "2020-01-01T14:48:00.000Z",
- "endTime": "2020-01-01T14:48:00.000Z"
}
}
}
}
]
}