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

The body is of type object.

Response

200
application/json

Campaign response

The response is of type object.