Add a contact to an email campaign
Deprecated
POST
Adds one contact to the campaign (id). The contact is appended to a dedicated list named ' from Zapier/Integromat/n8n Hooks'. Any extra key in contact beyond email/firstName/lastName/phoneNumber is stored as a custom variable. Side effects: if the campaign is FINISHED it is restarted (status RUNNING); if RUNNING the contact is scheduled immediately. Fails if the email is already in the campaign. New integrations should use the multichannel /advanced campaign endpoints instead.
Authorization
apiKey Authorization<token>
Your 48 character API key, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/emails/campaign/contacts" \ -H "Authorization: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "5f3a1b2c4d5e6f0011223344", "contact": { "email": "john.doe@acme.com", "firstName": "John", "lastName": "Doe", "company": "Acme" } }'{ "success": true}