Export Contacts
Export contact data
Manage contact exports
Create a new Contact Export
Pass the API token in the Api-Token
Contact Export created successfully.
The URL of the exported contacts file. Only available when the export is finished.
Returns unauthorized error message. Check your credentials.
Returns forbidden error message. Check your permissions.
Returns validation errors.
Rate limit exceeded for the current account.
Internal error. Retry later or contact support.
curl -X POST https://mailtrap.io/api/contacts/exports \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"filters": [{"name": "list_id", "operator": "equal", "value": [1, 2]}]}'
{
"id": 1,
"status": "started",
"created_at": "2021-01-01T00:00:00Z",
"updated_at": "2021-01-01T00:00:00Z",
"url": null
}Get Contact Export
Pass the API token in the Api-Token
Unique Contact Export ID
3229OK.
The URL of the exported contacts file. Only available when the export is finished.
Returns unauthorized error message. Check your credentials.
Returns forbidden error message. Check your permissions.
Resource not found
Rate limit exceeded for the current account.
Internal error. Retry later or contact support.
curl -X GET https://mailtrap.io/api/contacts/exports/{export_id} \
-H 'Authorization: Bearer YOUR_API_KEY'
{
"id": 1,
"status": "started",
"created_at": "2021-01-01T00:00:00Z",
"updated_at": "2021-01-01T00:00:00Z",
"url": null
}Last updated
Was this helpful?

