Skip to main content
DELETE

Overview

Delete a campaign you no longer need. Only a completed 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 completed campaign created by the user who owns the API key

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the campaign to delete.

Response

boolean
required
true when the campaign was deleted.
string
required
Batch deleted successfully.

Error Handling

Errors return status: 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 is completed.
  • 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=[...].