Create a campaign
Create a campaign. It is always created with status draft; use
POST /v1/campaigns/{id}/start to launch it. Optionally attach lead
lists at creation time via lead_list_ids; one campaign_lead_lists
row is created per id.
Authorizations
Use Authorization: Bearer tc_live_xxxxx
Headers
Optional client-supplied idempotency key. When present, the gateway
caches the response for 24 hours and returns the same response on
retried requests with the same key (account-scoped). Safe for
retries on network blips. Format: 8-255 ASCII characters from
[A-Za-z0-9_-].
8 - 255^[A-Za-z0-9_-]+$"a1b2c3d4-e5f6-7890-abcd-ef0123456789"
Body
Request body for creating a campaign. The campaign is always created
with status draft; use the lifecycle endpoints (start/pause/resume/
stop) to change its status.
1IANA timezone name used to interpret dispatch hours and schedule_time.
Local time of day dispatch may begin. Accepts HH:MM or HH:MM:SS.
^([01]\d|2[0-3]):[0-5]\d(:[0-5]\d)?$Local time of day dispatch must stop. Accepts HH:MM or HH:MM:SS.
^([01]\d|2[0-3]):[0-5]\d(:[0-5]\d)?$Weekdays dispatch is allowed, 1=Monday through 7=Sunday.
1 <= x <= 7Per-weekday overrides of the default dispatch hours, keyed by ISO weekday string ("1"-"7"). Each value is an array of time windows for that day; an empty array marks the day off entirely.
x >= 1x >= 1When set to a future time, the campaign starts as scheduled instead of running immediately.
Lead lists to attach to this campaign. Every id must belong to your account.
Call configuration applied to every call dispatched by this campaign.
Same shape as the CreateCallRequest call-configuration fields,
applied at the campaign level instead of per-call. Unknown keys are
rejected.
Response
Campaign created
Campaign record. Returned by GET /v1/campaigns and GET /v1/campaigns/{campaign_id}. Projected to this documented field set; additional internal columns are never included.
draft, scheduled, running, paused, completed, failed, cancelled IANA timezone name used to interpret dispatch hours and schedule_time.
Local time of day dispatch may begin, HH:MM:SS.
Local time of day dispatch must stop, HH:MM:SS.
Weekdays dispatch is allowed, 1=Monday through 7=Sunday.
1 <= x <= 7Per-weekday overrides of the default dispatch hours.
Call configuration applied to every call dispatched by this campaign.