Skip to main content
POST
Stop a campaign

Headers

x-api-key
string | null

Your API key for programmatic access. Send it in the x-api-key header; you can create and manage keys from the Developers page.

Path Parameters

campaign_id
string
required

Response

Successful Response

campaign_id
string
required
call_name
string
required

The campaign's name.

agent_id
string
required
channel_config
PhoneChannelConfig · object
required
status
enum<string>
required

attention means an open attention item holds back some of the campaign's calls while the rest go ahead. stopping means queued calls are cancelled and calls already placed are finishing.

Available options:
active,
paused,
stopping,
stopped,
completed,
failed,
attention
policy
CampaignPolicySnapshot · object
required

The policy the campaign took when it was created.

variant
enum<string>
required
Available options:
simple,
advanced
source
enum<string> | null
required

Whether the campaign was created in the app or through the API.

Available options:
ui,
api
created_at_unix
integer
required
scheduled_time_unix
integer | null
required

When the campaign starts calling; unset to start once created.

updated_at_unix
integer
required
branch_id
string | null
required

The agent branch the campaign calls with.

environment
string | null
required

The environment the agent's environment variables resolve in.

target_concurrency_limit
integer | null
required

The most calls the campaign places at once.

channel
enum<string>
required
Available options:
phone,
whatsapp
mode
enum<string>
required
Available options:
voice,
message
counts
CampaignSummaryCounts · object
required
agent_name
string
default:""
required