Export messaging analytics data
Exports one record per outbound message accepted in the given date range as CSV or JSON and returns the file content inline.
Exports one record per outbound message accepted in the given date range as CSV or JSON and returns the file content inline. CSV follows RFC 4180: fields containing a quote, comma, or line break are quoted with embedded quotes doubled, and records are separated by CRLF. At most 10,000 records are returned, newest first.
Authorization
apiKey In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?(Z|([+-])(\d{2}):(\d{2}))$^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?(Z|([+-])(\d{2}):(\d{2}))$Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/analytics/export" \ -H "Content-Type: application/json" \ -d '{ "after": "string", "before": "string" }'{ "content": "string", "mimeType": "string", "filename": "string"}Related documentation
Get the calling credential
Returns the organization the request acts in and the credential it presents: an API key with its name, prefix, and access, or a signed-in user with their role.
Get channel performance analytics
Returns aggregate delivery metrics plus unique-message email Open and Click rates over the selected date range.