curl --location --request DELETE 'https://api.weya.live/backend/api/call/delete-batch/6880bac05860c9b91c53c790' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Batch deleted successfully",
"errorMessage": null,
"data": []
}
Campaign Management
Delete Campaign
Delete a completed campaign and remove it from your campaign list.
DELETE
/
api
/
call
/
delete-batch
/
{batchId}
curl --location --request DELETE 'https://api.weya.live/backend/api/call/delete-batch/6880bac05860c9b91c53c790' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Batch deleted successfully",
"errorMessage": null,
"data": []
}
Overview
Delete a campaign you no longer need. Only acompleted campaign can be deleted; a campaign that is still running, paused or waiting for its calling window can’t.
A deleted campaign no longer appears in Get Campaigns and can’t be retrieved or restored through the API. Any Google Sheet connected to it is disconnected.
Prerequisites
- An API key for your workspace
- A
completedcampaign created by the user who owns the API key
Request
curl --location --request DELETE 'https://api.weya.live/backend/api/call/delete-batch/6880bac05860c9b91c53c790' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Batch deleted successfully",
"errorMessage": null,
"data": []
}
Error Handling
Errors returnstatus: false, with the reason in errorMessage.
- 400 Bad Request
Invalid Batch ID.Batch is not completed or stopped– the campaign hasn’t finished. Wait until it iscompleted.
- 401 Unauthorized – Missing or invalid API key.
- 404 Not Found –
Batch not found: the campaign doesn’t exist, is already deleted, or wasn’t created by the user who owns the API key. - 500 Internal Server Error – Unexpected server error.
This can’t be undone through the API. If you need the call data, export it first with
GET /api/call/export/csv?batchId={batchId}&format=csv&columns=[...].Was this page helpful?

