Skip to main content
POST
Enroll a contact in a campaign

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Headers

Idempotency-Key
string
required

Between 1 and 128 characters. A retry with the same key and body gets the first answer back and writes nothing; the same key with another body is refused with 409.

Required string length: 1 - 128

Path Parameters

campaignId
string
required
Required string length: 1 - 128

Body

application/json
contact
object
contactId
string
Required string length: 1 - 128
variables
object

Up to 50 values by attribute name: lowercase letters, digits and underscores, starting with a letter, not starting with voice_. A value must match its attribute's type; a new name creates an attribute typed from its value. Null removes a value.

Response

Already enrolled.

data
object
required