Delete a campaign
DELETE/api/partner-gateway/v1/campaigns/:id
Permanently deletes a campaign. Only campaigns that are still in draft status (status=0) or scheduled status (status=1) can be deleted. Campaigns that are currently being sent (status=2), already completed (status=3), or in a failed state (status=4) cannot be deleted because their delivery records must be preserved for reporting. If you need to stop a scheduled campaign before it sends, delete it before the scheduledDate is reached. This operation is irreversible: once deleted, the campaign and its configuration are permanently removed and cannot be recovered. Returns 204 No Content on successful deletion. Returns 404 if no campaign exists with the given ID under your account, or if the campaign is in a non-deletable state. Returns 401 if the API key is missing or invalid.
Request
Responses
- 204
- 401
- 404
Campaign deleted successfully
Unauthorized
Campaign not found