List messages
Return a list of deliveries, including metrics for each delivery, for messages in your workspace. The request body contains filters determining the deliveries you want to return information about.
Use the start_ts and end_ts parameters to find messages within a time range. We limit your requests to 6 months. If your request doesn't include start_ts and end_ts parameters, we'll return the most recent 6 months of deliveries. If start_ts is greater than 6-months before end_ts, we only send back 6 months of data. If only end_ts is specified, we return 6 months of data before this timestamp. If only start_ts is specified, we then set the end_ts to the current time and deliver 6 months of data prior to this timestamp. Timestamps reflect when deliveries were created in our system, not when they were actually sent to recipients. There may be a delay between creation and sending.
Response
Returns an array of message objects.
Example response
{
"messages": [
{
"id": "ag1q6QWq6QUBAAF4_CGoeVX7mFkDbRFu7ek=",
"deduplicate_id": "ag1q6QWq6QUBAAF4_CGoeVX7mFkDbRFu7ek=:1619137768",
"msg_template_id": 43,
"action_id": 215,
"parent_action_id": null,
"customer_id": null,
"recipient": "person@example.com",
"subject": "Did you get that thing I sent you?",
"metrics": {
"delivered": 1619137768,
"sent": 1619137768
},
"created": 1619137767,
"failure_message": null,
"newsletter_id": null,
"content_id": null,
"campaign_id": 23,
"broadcast_id": null,
"trigger_event_id": null,
"type": "email",
"forgotten": false
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.