Skip to main content
POST
/
contacts
/
addToCampaign
/
{campaign_id}
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

campaign_id
string<uuid>
required

ID of campaign to add contacts to

Body

application/json

Array of contacts to add

firstname
string
required

Contact's first name

lastname
string
required

Contact's last name

phone_number
string
required

Contact's phone number

metadata
object

Additional custom data for the contact

Response

200 - application/json

Contacts added to campaign

status
enum<string>
Available options:
ok,
error
message
string
data
string