Skip to main content
You need access credentials and the ID of the bot that will run the campaign.

Step 1 — Authenticate and get the token

Response:
Save the access token — you’ll use it in every following request as Authorization: Bearer <access_token>.
The access token expires. Use POST /auth/token/refresh/ to renew it without logging in again.

Step 2 — Get the bot ID

Response (excerpt):
Note down the bot’s id — it’s the client_id you’ll use to create the campaign.

Step 3 — Create the campaign

Response (excerpt):
Save the campaign’s id.
The initial state depends on start_date: if it’s a future date or the time window hasn’t started yet → SCHEDULED. If it’s today and within the time window → ONGOING.
Priorities and retries:
  • min_phone_priority / max_phone_priority are indexes (0-based, inclusive) into each case’s phone_list. min=0, max=1 → the bot uses the phones at position 0 and 1.
  • max_calls_per_case is the maximum number of attempts per phone number. With 2 phone numbers and max_calls_per_case=3 → up to 6 total attempts per case.

Step 4 — Upload the cases

Successful response:
If the campaign was SCHEDULED and the date and time are valid, it starts automatically. If it was already ONGOING, the bot starts dialing the newly uploaded cases.
What goes in params? The content of this field is specific to each bot — it varies depending on its configuration. To find out what parameters your bot accepts, check the Bot Parameters → Additional section in the Parser configuration. There you’ll find the exact name of each additional field. If you don’t have access to the parser, check with your administrator.

Limits to keep in mind