Skip to main content
DELETE
/
user
/
campaign
/
{id}
Delete campaign
curl --request DELETE \
  --url https://app.autocalls.ai/api/user/campaign/{id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Campaign deleted successfully"
}

Documentation Index

Fetch the complete documentation index at: https://docs.autocalls.ai/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint allows you to delete a campaign that belongs to the authenticated user. If the campaign is currently running, it is stopped automatically before deletion.

Path Parameters

id
integer
required
The unique identifier of the campaign to delete

Response

message
string
Confirmation message indicating the campaign was deleted successfully

Error Responses

404 Not Found
{
  "message": "Campaign deleted successfully"
}

Notes

  • Only campaigns that belong to the authenticated user can be deleted
  • Running campaigns are stopped automatically before deletion
  • All leads attached to the campaign are removed
  • Phone number assignments on the campaign are released