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

The body is of type object[].

Response

200 - application/json

Contacts added to campaign

The response is of type object.