API referenceCampaigns
Add Contact To Campaign
POST
Add a single contact to a campaign
Required scope: campaigns:write
header
AuthorizationBearer <luso8_sk_live_<40 characters>>A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.
campaign_id*Campaign Idapplication/json- body
Schema for adding a contact to a campaign
contact_id*Contact Idpersonalization_data?|nullSuccessful Response
application/json- response
Schema for campaign contact response
id*Idcampaign_id*Campaign Idcontact_id*Contact Idcontact?|nullcurrent_step_id?string|nullstatus?ExecutionStatusDefault
"pending"Value in
"pending""in_progress""waiting""completed""failed""skipped""bounced""unsubscribed"steps_completed?Steps CompletedDefault
0last_step_at?|nullnext_step_at?|nullemails_sent?Emails SentDefault
0emails_opened?Emails OpenedDefault
0emails_clicked?Emails ClickedDefault
0sms_sent?Sms SentDefault
0sms_replied?Sms RepliedDefault
0calls_made?Calls MadeDefault
0calls_answered?Calls AnsweredDefault
0messages_sent?Messages SentDefault
0messages_replied?Messages RepliedDefault
0is_converted?Is ConvertedDefault
falseconverted_at?|nullconversion_value?number|nullexit_reason?string|nullenrolled_at*Enrolled AtFormat
date-timestarted_at?|nullcompleted_at?|nullcurl -X POST 'https://api.luso8.rexplore.ai/api/v1/campaigns/string/contacts' \ -H 'Content-Type: application/json' \ -d '{ "contact_id": "string"}'Example Response
{ "id": "string", "campaign_id": "string", "contact_id": "string", "contact": { "id": "string", "first_name": "string", "last_name": "string", "email": "string", "phone": "string", "job_title": "string", "company": "string" }, "current_step_id": "string", "status": "pending", "steps_completed": 0, "last_step_at": "2019-08-24T14:15:22Z", "next_step_at": "2019-08-24T14:15:22Z", "emails_sent": 0, "emails_opened": 0, "emails_clicked": 0, "sms_sent": 0, "sms_replied": 0, "calls_made": 0, "calls_answered": 0, "messages_sent": 0, "messages_replied": 0, "is_converted": false, "converted_at": "2019-08-24T14:15:22Z", "conversion_value": 0, "exit_reason": "string", "enrolled_at": "2019-08-24T14:15:22Z", "started_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z"}