Documentation Index
Fetch the complete documentation index at: https://docs.seleqt.ai/llms.txt
Use this file to discover all available pages before exploring further.
DELETE /api/v1/public/campaigns//steps//
Deletes a campaign step. Cannot delete steps from active campaigns.
Auth: X-API-Key
Path Parameters
id (integer, required): Campaign ID
step_id (integer, required): Step ID
Response
{
"success": true,
"message": "Step deleted successfully",
"campaign": {
"id": 123,
"name": "My Campaign",
"status": "DRAFT",
"timezone": "Europe/Amsterdam",
"language": "en",
"email_max_messages": 40,
"linkedin_max_messages": 100,
"linkedin_max_connections": 50,
"sending_window": {},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:45:00Z"
}
}
Example
curl -X DELETE -H "X-API-Key: <key>" \
"https://api.seleqt.ai/api/v1/public/campaigns/123/steps/456/"
Error Responses
400 Bad Request - Cannot delete steps from active campaigns
{
"success": false,
"error": "Cannot delete steps from an active campaign"
}
404 Not Found - Campaign or step not found
{
"success": false,
"error": "Campaign not found"
}