Export information about deliveries
Provide filters for the one-time send, automation, or action you want to return delivery information from. This endpoint starts an export, but you cannot download your export from this endpoint. Use the /exports/{export_id} endpoint to download your export.
Use the start and end to find messages within a time range. If your request doesn't include start and end parameters, we'll return the most recent 6 months of messages. If you filter by a one-time send, we return every delivery from that send instead. If your start and end range is more than 1 year, we reject the request with a 400 error. 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.
Contains properties shared by export filters.
- Type: integernewsletter
_id requiredThe ID of a one-time send you want to export information from.
- Type: array string[]attributes
Recipient attributes you want to include as extra columns in your export. You can't include event or trigger properties.
- Type: booleandrafts
If true, your request returns both drafts and active/sent messages.
- Type: integer Format: unix timestampend
The unix timestamp representing the end of the export.
- Type: string enummetric
Determines the metric(s) you want to return.
values- created
- attempted
- sent
- delivered
- opened
- Type: integer Format: unix timestampstart
The unix timestamp representing the beginning of the export.
- Type: integertemplate
_id Restrict the export to a specific message template (content) within the selected automation, one-time send, or transactional message.
- application/json
- 400
The request is malformed.
- application/json
{
"newsletter_id": 999,
"attributes": [
""
],
"drafts": true,
"end": 1517702400,
"metric": "created",
"start": 1517529600,
"template_id": 1
}
{
"export": {
"created_at": 1530296742,
"deduplicate_id": "110:1530296738",
"description": "Full deliveries export (created via the api)",
"downloads": 0,
"failed": false,
"id": "111,",
"type": "deliveries",
"updated_at": 1530296742
}
}Returns an export.