Request
Path Parameters
The campaign’s unique ID (UUID)
The step’s unique ID (UUID)
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
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
| Status | Code | Description |
|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing campaigns:write permission |
| 404 | campaign_not_found | No campaign with this ID |
| 404 | step_not_found | No step with this ID in the campaign |
| 429 | rate_limited | Rate limit exceeded |