POST
/
contacts
/
addToCampaign
/
{campaign_id}
curl --request POST \
  --url http://sandbox.mintlify.com/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
required

ID of campaign to add contacts to

Body

application/json · object[]
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