Skip to main content

Delete Campaign

Delete an SMS campaign. It disappears from the API and the dashboard.

Endpoint​

DELETE /sms/campaigns/:id

Returns: 200 OK

Prerequisites​

Soft Delete

This is a soft delete: delivery history and analytics for sent campaigns are preserved. Deleted campaigns cannot be restored via the API.

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe campaign ID.

Headers​

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes

Response​

{
"message": "Campaign deleted"
}

Examples​

curl -X DELETE "https://api.arsel.sa/v1/sms/campaigns/0192a1b2-c3d4-7e5f-9000-abcdef123456" \
-H "Authorization: Bearer $ARSEL_API_KEY"

Error Responses​

{
"status_code": 404,
"name": "not_found",
"message": "Campaign not found"
}