Contacts API
Manage email contacts and lists for targeted campaigns
Manage your email contacts, create targeted lists, and organize your audience for email marketing campaigns.
Capabilities
Contacts
Create, update, delete, and search contacts
Lists
Organize contacts into lists for targeted campaigns
Fields
Define custom fields to store additional contact data
Import/Export
Bulk import from CSV and export contacts
Events
Track contact interactions and engagement
Base URL
https://mailtrap.io/api/accounts/{account_id}Authentication
Include your API token in the request header:
Api-Token: YOUR_API_TOKENOr use Bearer authentication:
Authorization: Bearer YOUR_API_TOKENAvailable Endpoints
GET /contacts- List all contactsPOST /contacts- Create a contactGET /contacts/{id}- Get a contactPATCH /contacts/{id}- Update a contactDELETE /contacts/{id}- Delete a contactGET /contact_lists- List all contact listsPOST /contact_lists- Create a listGET /contact_fields- List custom fieldsPOST /contact_fields- Create a custom fieldPOST /contact_imports- Import contacts from CSVPOST /contact_exports- Export contacts
Last updated
Was this helpful?

