not_started all the way to completed.
Prerequisites
- API key from your Scalysis dashboard.
- Script ID for the AI script the campaign will use.
- A list of customer phone numbers you want to dial.
1
Create the campaign
Send a Request fields reference:
POST request to /api/v1/campaigns with your script ID and contact list. You can supply contacts either as a structured JSON array or as a raw CSV string — pick whichever fits your workflow.Option A — contacts array
Each object incontacts[] must include customerPhone. All other fields are optional but recommended.Option B — CSV text
Pass your CSV data as a raw string incsvText. By default, Scalysis reads phone numbers from a column named phone_number; use phoneColumn to point to a different column header.Keep each campaign creation request to roughly 2,000 contacts or fewer. For larger lists, split them across multiple campaigns and stagger the start times.
2
Note the campaign_id from the response
A successful create request returns HTTP 200 with the following body:
3
Start the campaign
When you’re ready to begin dialing, send a control request with Expected response:Scalysis will now begin dialing contacts in order, respecting any
action: "start":maxConcurrency limit you set.4
Monitor or pause the campaign
If you need to stop dialing mid-run — for example, due to off-hours restrictions or an issue with your script — send a Expected response:Any calls already in progress will complete naturally. No new calls are placed while the campaign is paused.
pause action:5
Resume the campaign
Ready to continue? Send a Expected response:
resume action and Scalysis picks up where it left off: