Export a compressed CSV report of audience-level delivery and engagement data for a specific message. This includes sent, delivered, clicked, failed, and unsubscribed events across Push, Email, and SMS channels.
id from the Sending messages API or the View messages API.
A successful request returns 200 OK with a csv_file_url:
events_audience-activity-{message_id}-{channel}-{timestamp}.csv.gz.
The file is generated at ~2,000 records per second. For large audiences, generation can take several minutes, and the URL may return 404 until the file is ready:
csv_file_url with GET and implement retries with exponential backoff. When the file is ready, the GET request downloads the .csv.gz file.
Your App API key with prefix Key . See Keys & IDs.
The identifier of the message in UUID v4 format. Get this id in the response of your Create Message API request, the View Messages API, and in your OneSignal dashboard Message Reports.
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
200
The URL to download the CSV file. The file is available for 3 days after generation.