cURL
curl --request POST \ --url https://api.callab.ai/v1/contacts/addToCampaign/{campaign_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' [ { "firstname": "<string>", "lastname": "<string>", "phone_number": "<string>", "metadata": {} } ] '
{ "status": "ok", "message": "<string>", "data": "<string>" }
Add contacts to a campaign
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of campaign to add contacts to
Array of contacts to add
Contact's first name
Contact's last name
Contact's phone number
Additional custom data for the contact
Contacts added to campaign
ok
error
Was this page helpful?