Delete a WhatsApp campaign
DELETE/api/partner-gateway/campaigns/:id
Deletes a campaign. This cannot be undone.
- Not yet confirmed: the campaign can always be deleted, whether or not it is marked ready to send.
- Confirmed and scheduled (
PRE_BILLED): it can be deleted only while itsscheduledDateis still outside the platform's edit window. Deleting it releases the funds reserved at confirmation. - From
READYonwards: the campaign is being prepared or sent and can no longer be deleted.
To stop a scheduled campaign before it is sent, delete it well before its scheduledDate.
DELETE /campaigns/{id} is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for SMS or RCS.
Request
Responses
- 204
- 400
- 401
- 404
Campaign deleted. No response body.
The campaign can no longer be deleted.
The API key is missing or invalid, or holds neither CAMPAIGNS nor the operation of every channel of the campaign's sendingMode.
No campaign with this ID in your account.