campaigns
Create a campaign
name and widget_id are required (400 without either). widget_id / phone_number_id that don't belong to your workspace return 404, not a validation error.
Behaviours that don't show up in a happy-path example:
- max_concurrent_calls is silently clamped to your workspace's concurrency entitlement, never rejected — the value actually applied is returned in the response, which may be lower than what you sent.
- An invalid status silently falls back to draft.
- Unparseable start_date / end_date / start_time / end_time are silently ignored (left unset), not rejected.
- Leaving all schedule fields unset means the campaign can dial at any time, any day — there is no separate 'always on' flag.
- If phone_number_id resolves, it also sets the agent's default outbound number as a side effect.
post/campaigns/
Request
- Base URL: http://127.0.0.1:8000/api/public/v1
- URL: http://127.0.0.1:8000/api/public/v1/campaigns/
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL /oauth/authorize/, token URL /oauth/token/)
Request body
Response
Changes
No recorded changes to this operation across all 1 revision of this API.