Reports
Custom events detail listing
Changed onGet a summary of custom event counts and values, by custom event, within the specified time period.
get/api/reports/events
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
startstring date-time required
Example:2021-02-01T00:00:00
A date-time for start of report.
endstring date-time required
Example:2021-02-28T00:00:00
A date-time for end of report.
precision'HOURLY' | 'DAILY' | 'MONTHLY'
Granularity of results to return. Defaults to DAILY.
pageinteger
Example:5
Identifies the desired page number. Defaults to 1. If page is given a negative or out of bounds value, the default value will be used.
page_sizeinteger
Example:25
Specifies how many results to return per page. Has a default value of 25 and a maximum value of 100.
Response
Returned on success, with the JSON representation of the events in the body of the response.
Example response
{
"events": [
{
"count": 4,
"location": "custom",
"name": "custom_event_name"
}
],
"total_count": 12
}Changes
- breaking
for the
queryrequest parameterend, the format changed from no format todate-time - breaking
for the
queryrequest parameterstart, the format changed from no format todate-time
This list may be incomplete.
- breaking