Skip to main content

Cancel Campaign

Cancel a Scheduled, Queued, or Sending campaign. Emails that have already been handed off for delivery cannot be recalled — cancellation only prevents emails that have not yet been dispatched.

Endpoint

POST /email/campaigns/:id/cancel

Returns: 200 OK

Prerequisites

Cancellation Limits

Cancellation only stops emails that have not yet been handed off for delivery. Recipients who already received the email will not be affected. Campaigns in Sent, Failed, or Cancelled status cannot be cancelled again.

Path Parameters

ParameterTypeRequiredDescription
idstringYesThe campaign ID.

Headers

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes

Response

{
"message": "Campaign cancelled"
}

Examples

curl -X POST "https://api.arsel.sa/v1/email/campaigns/0192a1b2-c3d4-7e5f-9000-abcdef123456/cancel" \
-H "Authorization: Bearer be_your_api_key"

Error Responses

{
"status_code": 400,
"name": "bad_request",
"message": "Campaign cannot be cancelled in its current status"
}