Import contacts from CSV
Import contacts from CSV with the Mailly email API for AI agents: POST /contacts/import. Parameters, request body, responses and code samples.
POST
Content-Type must be text/csv or application/csv, and the body is raw CSV.
bearerAuthheader
AuthorizationBearer <token>Mailly API key(Authorization: Bearer )
All succeeded
application/json- response
success*booleanreceived*numbersucceeded*numberfailed*numberresults*array<>[key: string]?unknowncurl -X POST 'https://api.mailly.site/contacts/import'{ "success": true, "received": 0, "succeeded": 0, "failed": 0, "results": [ { "property1": null, "property2": null } ], "property1": null, "property2": null}Create or update contacts in bulk POST
Create or update contacts in bulk with the Mailly email API for AI agents: POST /contacts/batch. Parameters, request body, responses and code samples.
Soft-delete a contact (also adds a workspace suppression) DELETE
Soft-delete a contact (also adds a workspace suppression) with the Mailly email API for AI agents: DELETE /contacts/{externalContactId}. Parameters, request body, responses and code samples.