Skip to main content

Delete Campaign

Delete a campaign from your account.

A campaign can be deleted only while its status is draft, sent, failed, or canceled. Deleting a campaign in any other status returns 409 CAMPAIGN_NOT_DELETABLE.

Request

DELETE /campaigns/{uuid}

Path Parameters

ParameterTypeDescription
uuidstringCampaign's UUID

Example Request

curl -X DELETE "https://email.easy.tools/api/v1/campaigns/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Response

Success Response (204 No Content)

No response body.

Error Responses

Not Found Error (404)

{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Campaign with UUID '550e8400-e29b-41d4-a716-446655440000' not found"
}
}

Conflict Error (409 — Not Deletable)

The campaign's status does not allow deletion.

{
"error": {
"code": "CAMPAIGN_NOT_DELETABLE",
"message": "Campaign cannot be deleted because of its current status"
}
}