curl --location --request POST 'https://api.weya.live/backend/api/call/resume-batch/6806382f98da85ec32fac955' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Batch resumed successfully",
"errorMessage": null,
"data": {
"batchId": "6806382f98da85ec32fac955",
"batchName": "Sales Campaign - July",
"status": "pending"
}
}
Campaign Management
Resume Campaign
Start calling again on a paused campaign.
POST
/
api
/
call
/
resume-batch
/
{batchId}
curl --location --request POST 'https://api.weya.live/backend/api/call/resume-batch/6806382f98da85ec32fac955' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Batch resumed successfully",
"errorMessage": null,
"data": {
"batchId": "6806382f98da85ec32fac955",
"batchName": "Sales Campaign - July",
"status": "pending"
}
}
Overview
Resume a paused campaign so it starts placing calls again. If the current time is outside the campaign’s calling hours or calling days, it waits until the next calling window. You don’t need to call this after Update Campaign: a paused campaign resumes automatically when its settings are updated.Prerequisites
- An API key for your workspace
- The campaign’s
batchId. The campaign must have been created by the user who owns the API key. - The campaign is paused
Endpoint
Request
This endpoint takes no request body.curl --location --request POST 'https://api.weya.live/backend/api/call/resume-batch/6806382f98da85ec32fac955' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Batch resumed successfully",
"errorMessage": null,
"data": {
"batchId": "6806382f98da85ec32fac955",
"batchName": "Sales Campaign - July",
"status": "pending"
}
}
New campaign status:
in-progress– calls are waiting and the campaign is calling again.pending– the campaign will start calling.freezed– the current time is outside the campaign’s calling hours, calling days or holiday list. Calling starts at the next calling window.
Error Handling
Errors returnstatus: false, with the reason in errorMessage.
- 400 Bad Request
Invalid Batch ID–batchIdis not a valid ID.Batch is not paused (current status: …)– only a paused campaign can be resumed.
- 401 Unauthorized – Missing or invalid API key.
- 404 Not Found – No campaign with this ID was created by the user who owns the API key, or it was deleted.
- 500 Internal Server Error – Unexpected server error.
After resuming a campaign, you can:
GET /api/call/batch-details/{batchId}to follow its calls.POST /api/call/pause-batch/{batchId}to pause it again.
Was this page helpful?

