Skip to main content
DELETE
/
v1
/
campaigns
/
{id}
/
steps
/
{step_id}
Delete Campaign Step
curl --request DELETE \
  --url https://api.example.com/v1/campaigns/{id}/steps/{step_id}
{
  "data": {
    "deleted": true,
    "id": "<string>"
  }
}

Request

Path Parameters

id
string
required
The campaign’s unique ID (UUID)
step_id
string
required
The step’s unique ID (UUID)

Headers

Authorization: Bearer wbk_your_api_key_here
Requires an API key with the campaigns:write permission.
Subsequent step indexes are compacted after deletion — a step previously at index 3 becomes index 2. Contacts currently between steps may skip the deleted step. If you want to preserve history, pause the campaign first.

Response

data
object
curl -X DELETE https://data.leadlex.com/functions/v1/api-gateway/v1/campaigns/cmp_abc123/steps/step_2 \
  -H "Authorization: Bearer wbk_your_api_key_here"

Example Response

{
  "data": {
    "deleted": true,
    "id": "step_2"
  }
}

Errors

StatusCodeDescription
401invalid_keyInvalid or expired API key
403insufficient_permissionsMissing campaigns:write permission
404campaign_not_foundNo campaign with this ID
404step_not_foundNo step with this ID in the campaign
429rate_limitedRate limit exceeded