Skip to main content

Delete Campaign

Delete a push campaign.

Endpoint​

DELETE /push/campaigns/:id

Returns: 200 OK

Path Parameters​

ParameterTypeDescription
idstringCampaign ID

Headers​

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes
Delete does not stop a send in progress

Deleting a campaign that is Queued or Sending does not halt fan-out. Use Cancel Campaign to stop delivery, then delete if you also want it out of your list.

The campaign is soft-deleted: it disappears from List Campaigns, while the analytics already recorded against it are preserved.


Response​

{
"message": "Campaign deleted"
}

Examples​

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

Error Responses​

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