Skip to main content

List Cadences

GET /backend/cadences

Response

{
  "success": true,
  "data": [
    {
      "id": "cadence-uuid",
      "name": "New Lead Welcome",
      "description": "Welcome sequence",
      "active": true,
      "steps_count": 3,
      "leads_enrolled": 150
    }
  ]
}

Get Cadence

GET /backend/cadences/{id}
Returns complete cadence with all steps.

Update Cadence

PUT /backend/cadences/{id}
curl -X PUT "https://api.leavo.ai/backend/cadences/cadence-uuid" \
  -H "Authorization: Bearer your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Welcome",
    "active": false
  }'

Delete Cadence

DELETE /backend/cadences/{id}
curl -X DELETE "https://api.leavo.ai/backend/cadences/cadence-uuid" \
  -H "Authorization: Bearer your_api_key_here"

Enroll Lead

POST /backend/cadences/{id}/enroll

Body Parameters

lead_id
string
required
Lead ID to enroll
curl -X POST "https://api.leavo.ai/backend/cadences/cadence-uuid/enroll" \
  -H "Authorization: Bearer your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "lead_id": "lead-uuid"
  }'

Remove Lead

DELETE /backend/cadences/{id}/leads/{lead_id}
curl -X DELETE "https://api.leavo.ai/backend/cadences/cadence-uuid/leads/lead-uuid" \
  -H "Authorization: Bearer your_api_key_here"

List Enrolled Leads

GET /backend/cadences/{id}/leads
{
  "success": true,
  "data": [
    {
      "lead_id": "lead-uuid",
      "lead_name": "John Smith",
      "current_step": 2,
      "enrolled_at": "2024-01-15T10:30:00Z",
      "next_step_at": "2024-01-16T10:30:00Z"
    }
  ]
}