Skip to main content
POST
Create a Campaign

Headers

string
required
Your API key for authentication. Prefix with Bearer .
string
required
Your access token for authentication.

Body

string
required
The name of the campaign to be created (e.g., “Demo Campaign”).
string
required
The ID of the agent associated with the campaign (e.g., “25e57eca-5582-4ba7-849c-xxxx”).
string
required
The workflow ID linked to the campaign (e.g., “291069c3-d653-479c-97f9-xxxx”).
number
required
Maximum duration in seconds for each interaction in the campaign (e.g., 300).
string[]
A list of schema analysis items to evaluate during the campaign (e.g., [“did the human answer?”]).
string
required
The AI model used in the campaign (e.g., “Claude 3 Haiku”).
object
Key-value pairs of labels and phone numbers for call transfers.
boolean
Indicates whether the campaign is in draft state (e.g., true).
string
Voicemail message or reference; null if not set.
object
Dynamic key-value pairs used within the campaign; null if not set.
object
Webhook configurations for the campaign; null if not set.

Request Example

Response

string
Status of the request in the form of a short message.
object[]
List of the created campaign objects, each including a unique id.