Create and optionally trigger an SMS campaign.
POST/api/v1/campaigns
Targets leads by EXACTLY ONE of: list_id, tag, or lead_ids. Resolves recipient count up-front (rejects if zero). schedule: "immediate" kicks off the internal send worker with a short fire-and-forget fetch; a { send_at } object schedules via the existing campaign cron. message_variations enables A/B rotation. Scope: send_sms.
Request
Responses
- 202
- 400
- 401
- 403
- 429
Campaign created; sending in progress or scheduled
Missing or invalid parameters
Invalid or missing API key
API key lacks the required scope for this endpoint
Rate limit exceeded
Response Headers
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-Reset
Retry-After