Reports
Devices report
Changed onGet an app's opted-in and installed device counts by device type.
get/api/reports/devices
Request
- Base URLhttps://go.urbanairship.com
- Auth
- HTTP basic
- or HTTP bearer
- or OAuth 2Client credentialsToken URLhttp://oauth2.{domain}.com/tokenScopesrpt
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
datestring date-time required
Example:2021-02-28T00:00:00
All device events counted occurred before this date-time.
Response
Returned on success, with the JSON representation of the device counts in the body of the response.
Example response
{
"counts": {
"amazon": {
"opted_in": 140,
"opted_out": 89,
"uninstalled": 9,
"unique_devices": 229
},
"android": {
"opted_in": 140,
"opted_out": 89,
"uninstalled": 9,
"unique_devices": 229
},
"ios": {
"opted_in": 140,
"opted_out": 89,
"uninstalled": 9,
"unique_devices": 229
}
},
"date_closed": "2018-06-06 11:47:51",
"date_computed": "2018-06-07 11:47:51",
"total_unique_devices": 12545
}Changes
- breaking
the
queryrequest parameterdatebecame required - breaking
for the
queryrequest parameterdate, the format changed from no format todate-time
This list may be incomplete.
- breaking