Bulk Import
Import contacts from CSV
Manage contact import jobs
Import contacts in bulk with support for custom fields and list management. Existing contacts with matching email addresses will be updated automatically. You can import up to 50,000 contacts per request. The import process runs asynchronously - use the returned import ID to check the status and results.
Pass the API token in the Api-Token
Contact Import created successfully.
optional, provided only if status is finished
optional, provided only if status is finished
optional, provided only if status is finished
Returns unauthorized error message. Check your credentials.
Returns forbidden error message. Check your permissions.
Returns validation errors.
Internal error. Retry later or contact support.
curl -X POST https://mailtrap.io/api/contacts/imports \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"contacts": [{"email": "user1@example.com", "fields": {"first_name": "John"}, "list_ids_included": [1, 2]}]}'
{
"id": 1,
"status": "started"
}Get Contact Import
Pass the API token in the Api-Token
Unique Contact Import ID
3229OK.
optional, provided only if status is finished
optional, provided only if status is finished
optional, provided only if status is finished
Returns unauthorized error message. Check your credentials.
Returns forbidden error message. Check your permissions.
Resource not found
Internal error. Retry later or contact support.
curl -X GET https://mailtrap.io/api/contacts/imports/{import_id} \
-H 'Authorization: Bearer YOUR_API_KEY'
{
"id": 1,
"status": "started"
}Last updated
Was this helpful?

