Skip to main content
POST
/
sequences
/
{id}
/
enroll
curl --request POST \
  --url https://app.leonar.app/api/v1/sequences/{id}/enroll \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contact_ids": [
    "a1b2c3d4-5678-90ab-cdef-1234567890ab",
    "b2c3d4e5-6789-01bc-defa-2345678901bc"
  ]
}
'
{
  "data": {
    "enrolled": 8,
    "skipped_blacklisted": 1,
    "skipped_already_enrolled": 2,
    "skipped_active_elsewhere": 0,
    "skipped_not_found": 0
  }
}

Authorizations

Authorization
string
header
required

API key starting with leo_

Path Parameters

id
string<uuid>
required

Sequence ID

Body

application/json
contact_ids
string<uuid>[]
required

Simple format - list of contact IDs

Maximum array length: 500

Response

Enrollment results

data
object