Delete a campaign

Deprecated

Deprecated. This endpoint is replaced by /v3/sender-profiles and will be removed in a future release. It still behaves exactly as before, so nothing needs to change today — but new integrations should use /v3/sender-profiles, which models a profile's markets, compliance, brand, campaigns and billing explicitly.

Deletes a campaign by ID from the brand of the specified profile. The profile must belong to the authenticated organization.

DELETE
/v3/profiles/{profileId}/campaigns/{campaignId}

Path Parameters

profileId*string

Profile ID from route parameter

Formatuuid
campaignId*string

Campaign ID from route parameter

Formatuuid

Header Parameters

x-profile-id?string

Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.

Formatuuid

Request Body

application/json
  1. body

Base request for mutation operations (POST, PUT, PATCH) with sandbox mode support

sandbox?boolean

Sandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution

Response Body

Campaign deleted successfully

Example Request
curl -X DELETE 'https://api.sent.dm/v3/profiles/770e8400-e29b-41d4-a716-446655440002/campaigns/b2c3d4e5-f6a7-8901-bcde-f12345678901' \  -H 'Content-Type: application/json' \  -d '{  "sandbox": false}'
Example Response
Empty