Skip to main content
DELETE
/
campaigns
/
{campaignId}
curl --request DELETE \
  --url 'https://api.autosend.com/v1/campaigns/60d5ec49f1b2c72d9c8b4567' \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "campaignId": "60d5ec49f1b2c72d9c8b4567",
    "deleted": true
  }
}
curl --request DELETE \
  --url 'https://api.autosend.com/v1/campaigns/60d5ec49f1b2c72d9c8b4567' \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "campaignId": "60d5ec49f1b2c72d9c8b4567",
    "deleted": true
  }
}

Authorizations

Authorizations
string | header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

campaignId
string
required
The id of the campaign to delete.

Response

Returns a confirmation that the campaign was deleted.
success
boolean
Indicates whether the request was successful.
data
object
Deletion confirmation payload.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer , where is your auth token.

Path Parameters

campaignId
string
required

Id of the campaign.

Response

Campaign deleted successfully.

success
boolean
Example:

true

data
object