POST
/
campaign
curl --request POST \
  --url https://api.precallai.com/api/v1/campaign \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "campaigns_name": "<string>",
  "assistant_id": "<string>",
  "contacts_id": "<string>",
  "dialer_id": "<string>",
  "scheduled_at": "<string>",
  "is_automation": true
}'
{
  "campaigns_name": "<string>",
  "assistant_name": "<string>",
  "contact_name": "<string>",
  "dialer_name": "<string>",
  "dialer_type": "<string>",
  "phone_number": "<string>",
  "started_at": "<string>",
  "is_started": true,
  "is_automation": true
}

Authorizations

x-api-key
string
header
required

Body

application/json
Campaign to add
campaigns_name
string
required

The name of the campaign

assistant_id
string
required

The id of the assistant

contacts_id
string
required

The id of the contact

dialer_id
string
required

The id of the dialer

scheduled_at
string

Scheduled date

is_automation
boolean

Is automation

Response

200
application/json
Campaign response
campaigns_name
string

The name of the campaign

assistant_name
string

The name of the assistant

contact_name
string

The name of the contact

dialer_name
string

The name of the dialer

dialer_type
string

The type of the dialer

phone_number
string

phone number

started_at
string

started date

is_started
boolean

Is started

is_automation
boolean

Is automation