curl --location 'https://api.weya.live/backend/api/call/start-calling' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"batchId": "6806382f98da85ec32fac955",
"callingNumbers": ["64e5f12345abcdef87654321"],
"uuid": "3f6c2a1e-8b4d-4f7a-9c1e-2d5b7a9e0f11"
}'
{
"status": true,
"code": 200,
"message": "Calling service started successfully",
"errorMessage": null,
"data": {
"success": true,
"message": "Calls queued successfully",
"totalCalls": 100,
"batchId": "6806382f98da85ec32fac955",
"batchName": "Marketing Campaign May 2025"
}
}
Campaign Management
Start Campaign
Queue a campaign’s contacts for calling after an Upload Campaign CSV request.
POST
/
api
/
call
/
start-calling
curl --location 'https://api.weya.live/backend/api/call/start-calling' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"batchId": "6806382f98da85ec32fac955",
"callingNumbers": ["64e5f12345abcdef87654321"],
"uuid": "3f6c2a1e-8b4d-4f7a-9c1e-2d5b7a9e0f11"
}'
{
"status": true,
"code": 200,
"message": "Calling service started successfully",
"errorMessage": null,
"data": {
"success": true,
"message": "Calls queued successfully",
"totalCalls": 100,
"batchId": "6806382f98da85ec32fac955",
"batchName": "Marketing Campaign May 2025"
}
}
Overview
Queue a campaign’s contacts for calling. Use it after Upload Campaign CSV, which creates the campaign and its contacts but doesn’t start calling. Every contact in the campaign that hasn’t been called to acompleted or failed result is queued. Call it once per upload. Calls are placed during the campaign’s calling hours and allowed days. The request returns once the contacts are queued; follow progress with Get Campaign Details.
Contacts added with Add Calls to Campaign are queued automatically, so you don’t need this endpoint for them.
Prerequisites
- An API key for your workspace
- A campaign with contacts, and the
uuidfrom its Upload Campaign CSV response
Request
IDs of the phone numbers to call from. At least one valid ID. Usually the campaign’s own calling numbers.
curl --location 'https://api.weya.live/backend/api/call/start-calling' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"batchId": "6806382f98da85ec32fac955",
"callingNumbers": ["64e5f12345abcdef87654321"],
"uuid": "3f6c2a1e-8b4d-4f7a-9c1e-2d5b7a9e0f11"
}'
Response
{
"status": true,
"code": 200,
"message": "Calling service started successfully",
"errorMessage": null,
"data": {
"success": true,
"message": "Calls queued successfully",
"totalCalls": 100,
"batchId": "6806382f98da85ec32fac955",
"batchName": "Marketing Campaign May 2025"
}
}
Error Handling
Errors returnstatus: false, with the reason in errorMessage.
- 400 Bad Request
Invalid Batch ID.No valid phone IDs provided–callingNumbershas no valid ID.No valid calls to process– the campaign has no contacts left to call.
- 401 Unauthorized – Missing or invalid API key.
- 404 Not Found –
Batch not found. - 500 Internal Server Error – Unexpected server error, including a missing
callingNumbersoruuid, or more than 50,000 contacts to queue.
To pause or resume a running campaign, use Pause Campaign and Resume Campaign.
Was this page helpful?

