Skip to main content
POST
/
campaigns
/
{id}
/
contacts
Add contacts to a campaign
curl --request POST \
  --url https://api.vocobase.com/api/v2/campaigns/{id}/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contacts": [
    {
      "phone": "+919876543210",
      "name": "Asha Kumar",
      "metadata": {
        "tier": "gold"
      }
    },
    {
      "phone": "+14155551234",
      "name": "Jordan Lee"
    }
  ]
}
'
{
  "success": true,
  "data": {
    "added": 1498,
    "duplicates": 2,
    "contacts_created": 1300,
    "contacts_existing": 198
  }
}

Authorizations

Authorization
string
header
required

API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required

Body

application/json
contacts
object[]
required
Required array length: 1 - 10000 elements

Response

Contacts added.

success
boolean
data
object