Skip to main content

Delete Campaign

Remove an SMS campaign from your account. This is a soft delete — the campaign disappears from the API and the dashboard, but delivery history and analytics for sent campaigns are preserved server-side.

Endpoint​

DELETE /sms/campaigns/:id

Returns: 200 OK

Prerequisites​

Soft Delete

Deleting a campaign removes it from your account but preserves analytics and delivery history for campaigns that have already been sent. 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"
}