Skip to main content
DELETE
/
api
/
v1
/
campaigns
/
{campaignId}
curl -X DELETE "https://api.usegately.com/api/v1/campaigns/CAMPAIGN_ID" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Project-ID: YOUR_PROJECT_ID"
{
  "success": true,
  "message": "Campaign deleted successfully",
  "campaignId": "a1b2c3d4-e5f6-4789-abcd-ef1234567890"
}
Campaigns with status sending cannot be deleted. All other statuses (scheduled, sent, partially_sent, failed) can be deleted.

Headers

Authorization
string
required
Bearer YOUR_API_KEY
X-Project-ID
string
Your project UUID. Not required if the API key already encodes the project.

Path Parameters

campaignId
string
required
Campaign UUID to delete

Response

success
boolean
true on successful deletion
message
string
Human-readable confirmation
campaignId
string
ID of the deleted campaign
curl -X DELETE "https://api.usegately.com/api/v1/campaigns/CAMPAIGN_ID" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Project-ID: YOUR_PROJECT_ID"
{
  "success": true,
  "message": "Campaign deleted successfully",
  "campaignId": "a1b2c3d4-e5f6-4789-abcd-ef1234567890"
}