POST
/
api
/
v1
/
campaigns
/
{id}
/
contacts
curl -X POST https://api.ravan.ai/api/v1/campaigns/019d5b4c-8d9e-0f1a-2b3c-4d5e6f7a8b9c/contacts \
  -H "X-Api-Key: YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"contact_ids": ["019d3a2b-5c6d-7e8f-9a0b-1c2d3e4f5a6b", "019d3a2b-6d7e-8f9a-0b1c-2d3e4f5a6b7c", "019d3a2b-7e8f-9a0b-1c2d-3e4f5a6b7c8d"]}'
{ "success": true, "message": "Added 3 contacts to campaign", "added_count": 3 }

Authorizations

X-Api-Key
string
required
Your Agni API key.

Path Parameters

id
string
required
Campaign UUID.

Body

contact_ids
string[]
required
Array of contact UUIDs to add to the campaign.

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
added_count
integer
Number of contacts successfully added.
curl -X POST https://api.ravan.ai/api/v1/campaigns/019d5b4c-8d9e-0f1a-2b3c-4d5e6f7a8b9c/contacts \
  -H "X-Api-Key: YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"contact_ids": ["019d3a2b-5c6d-7e8f-9a0b-1c2d3e4f5a6b", "019d3a2b-6d7e-8f9a-0b1c-2d3e4f5a6b7c", "019d3a2b-7e8f-9a0b-1c2d-3e4f5a6b7c8d"]}'
{ "success": true, "message": "Added 3 contacts to campaign", "added_count": 3 }

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Campaign UUID

Body

application/json
contact_ids
string[]
required

Response

Successful response