POST
/
campaigns
/
{campaignId}
/
contacts
/
bulk
Create contacts for a campaign
curl --request POST \
  --url https://api.callers.ai/campaigns/{campaignId}/contacts/bulk \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contacts": [
    {
      "name": "<string>",
      "phoneNumber": "<string>",
      "data": {},
      "archived": false
    }
  ]
}'
{
  "requested": 123,
  "added": 123,
  "modified": 123,
  "contactIds": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Headers

x-sub-organization-id
string

Optional sub organization ID. Must belong to your main organization API key.

Path Parameters

campaignId
string
required

Query Parameters

fixUSPhoneNumber
boolean

Will add 1 to the phone number if it doesn't starts with 1

Body

application/json

Response

200
application/json

The response is of type object.