Skip to main content
FIXED · campaign MUST Resume covers only unattempted work in the existing running launch, and neither resume nor reuse replays completed work.
reuse_campaign_id replaces settings and recipients atomically only on an owned, never-launched voice draft or scheduled campaign. A launch claim prevents replacement. SMS creation always generates a fresh ID, even if the request forwards this field. Omit it for SMS.
NOT OFFERED → do this instead · campaign A launched or finished campaign cannot run again. For another run create a campaign with a fresh ID, selected recipients and reviewed settings. The dashboard’s Use again button follows the same rule for voice: it edits a campaign that never launched, otherwise it opens a new campaign filled with the original settings and recipients for review before launch. SMS campaigns have no Use again button. YOU CAN CHANGE · campaign Use schedule_type=schedule, scheduled_date (YYYY-MM-DD), timezone, window_days and optional paired window_start_minutes/window_end_minutes. UTC date checks, local windows and capacity apply. SCOPE · campaign DELETE /v1/calls/batch/{id} deletes a voice campaign. Voice and SMS have separate cancel routes. Cancel stops future work. Running attempts may finish. For one owned sender, send business_number (encode + as %2B) on GET /v1/campaigns or GET /v1/sms/campaigns. Omit for account scope. Keep the same number and status through SMS cursors. Restart paging if either changes. Voice include_totals=true covers returned campaigns only (default 50, max 200). Pickup rate = answered attempts / all attempts, including failed starts. Answered means over five seconds with no detected voicemail. Sum counts before dividing. Zero attempts means no rate. SMS delivery rate = delivered / (delivered + failed). Read the compact AI rules Prepare a voice campaign’s recipients and permission checks, create executable work, then track that same campaign through its results.
Creation: Executable work ·
Recipients: Reviewed rows ·
Recovery: Existing campaign ID
The important part
  • Campaign lists cover the account. Use your saved customer-to-campaign mapping and read each voice campaign by ID. A sender filter on the list is unavailable.
  • To run a campaign again, create a new one. A voice campaign that has never launched can be edited in place. See voice creation and controls for the difference between editing, cancelling, resuming and deleting.
  • Campaign creation can launch immediately or run when its schedule is due.
  • A duplicate warning is not a sending lock; choose the required policy deliberately.
  • Cancel stops future dispatch and does not hang up active calls.

Choose the task

Prerequisites

Keep the account credential in NIXFLEX_API_KEY on your server. SDK and CLI examples require Node/CLI 0.11.0 or later or Python 0.4.0 or later. Use identifiers owned by the intended account. Raw HTTP base URL: https://api.nixflex.com/v1. Node and Python SDK base URL: https://api.nixflex.com. The SDK adds /v1. Choose an active owned agent, an eligible sender and recipients you are permitted to contact. The example below only lists existing campaigns.

1. Read existing campaigns

2. Prepare and preview recipients

Build rows with phone, nested variables, and known country/timezone values. Supply a nonblank campaign prompt; use prompt_override only for deliberate row-specific instructions. Preview local hours and validate every required value. Choose duplicate_policy:reject if duplicate contacts must be prevented; warn retains them.

3. Create executable work

POST /v1/calls/batch with agent_id, from_number, prompt and recipients. schedule_type:now requests launch immediately; schedule uses scheduled_date in YYYY-MM-DD form and may run automatically when due. duplicate_choice_required is advisory, not a sending lock. Consent and current dispatch checks still apply.

4. Track and control the existing campaign

Save campaign_id even if launch is uncertain. Read campaign state and holds. Use the documented consent, cancel and resume endpoints for that same campaign. Cancel prevents further dispatch; it does not hang up active calls. Resume does not mean repeat completed recipients.

5. Reconcile before replacement

reuse_campaign_id replaces an owned never-launched draft or scheduled voice campaign; it is not an idempotency key. Do not recreate after campaign_outcome_unknown. Delete the owned voice campaign after eligible work settles.

Example response

Creation returns campaign_id, recipient validation and current status. Immediate launch can also return queued, failed and legacy dialed; dialed counts enqueued jobs, not connected calls. Create response fields define the exact shape.

Errors and limits

Delete content deliberately

Deleting a voice or SMS campaign cancels waiting work, hangs up its running calls, then removes the campaign and recipient list. Calls already made and texts already sent stay in history. Used charges stay in billing; there are no refunds. Owner and Admin can delete; Member cannot. Cancel alone stops future dispatch and lets active calls finish; Delete also requests their hang-up. If hang-up is not confirmed, HTTP 503 hangup_pending returns error.details.deleted:false and error.details.retry_pending:true. Deletion stays queued and continues automatically. Repeating the same DELETE for the same account and ID safely resumes it. A lost response or deletion_unavailable is not success: check the list, then repeat that same DELETE if needed. Missing and foreign IDs share HTTP 404. Bulk call deletion and account closure keep separate safety rules. Read delete call data for the dashboard task and single-call deletion for response fields.

Next steps

Read one owned campaign with Get a voice campaign. It returns the same saved fields as the list, without recipients, and sends Cache-Control: no-store. A 503 keeps the result unavailable; it must not clear the campaign or turn the wider-hours choice into false.