> ## Documentation Index
> Fetch the complete documentation index at: https://leonar.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List enrolled contacts



## OpenAPI

````yaml /openapi.yaml get /sequences/{id}/enrollments
openapi: 3.0.3
info:
  title: Leonar API
  description: >
    REST API for accessing and managing workspace data in Leonar CRM.


    ## Authentication


    All API requests require a Bearer token in the Authorization header:


    ```

    Authorization: Bearer leo_xxxxx

    ```


    API keys can be created and managed in Settings > API.


    ## Rate limiting


    - **2000 requests per hour by default**, configurable per workspace and
    shared by all API keys owned by the same user

    - Rate limit headers are included in all responses


    ## Pagination


    List endpoints support pagination via `limit` and `offset` query parameters.
  version: 1.0.0
  contact:
    name: Leonar Support
    url: https://leonar.ai
    email: support@leonar.ai
servers:
  - url: https://app.leonar.app/api/v1
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Contacts
    description: Manage contacts in your workspace
  - name: Companies
    description: Manage companies and their relationships
  - name: Deals
    description: Track and manage sales deals
  - name: Deal Pipelines
    description: View deal pipeline configurations
  - name: Projects
    description: Organize recruiting projects
  - name: Pipeline Entries
    description: Manage candidates in project pipelines
  - name: Tasks
    description: Track to-dos and follow-ups
  - name: Tags
    description: Organize resources with tags
  - name: Notes
    description: Manage notes on contacts, companies, deals, and projects
  - name: Sequences
    description: Automate outreach campaigns
  - name: Conversations
    description: View conversations across channels
  - name: Messages
    description: Send messages via email, LinkedIn, or WhatsApp
  - name: Enrichment
    description: Find emails and phone numbers for contacts
  - name: Sourcing
    description: Search and import candidates
  - name: Connected Accounts
    description: View linked LinkedIn accounts
paths:
  /sequences/{id}/enrollments:
    get:
      tags:
        - Sequences
      summary: List enrolled contacts
      operationId: list-enrollments
      parameters:
        - $ref: '#/components/parameters/sequenceId'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/offset'
        - name: status
          in: query
          schema:
            type: string
            enum:
              - active
              - paused
              - finished
              - replied
              - bounced
              - all
            default: all
          description: Filter enrollments by status
        - name: search
          in: query
          schema:
            type: string
          description: Search enrolled contacts by first or last name
        - name: contact_id
          in: query
          schema:
            type: string
            format: uuid
          description: Filter enrollments to a single contact ID
      responses:
        '200':
          description: List of enrollments
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SequenceEnrollment'
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
              example:
                data:
                  - id: b2f1d3a4-5678-4abc-9def-1234567890ab
                    status: replied
                    created_at: '2026-05-25T12:40:59.530261+00:00'
                    updated_at: '2026-06-04T15:15:04.302598+00:00'
                    last_executed_at: '2026-06-04T10:02:06.903+00:00'
                    next_execution_at: '2026-06-04T10:01:14.614+00:00'
                    current_step:
                      id: c3d2e1f0-1234-4abc-9def-1234567890ab
                      step_order: 1
                      type: linkedin
                      subtype: inmail
                      step_type: linkedin_inmail
                      name: ''
                    contact:
                      id: a1b2c3d4-5678-4abc-9def-1234567890ab
                      first_name: Sophie
                      last_name: Martin
                      email: null
                      title: Senior Software Engineer
                      current_company: Doctolib
                      avatar_url: https://example.com/avatar.jpg
                meta:
                  total: 1
                  limit: 50
                  offset: 0
                  has_more: false
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    sequenceId:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Sequence ID
    limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
      description: Items per page
    offset:
      name: offset
      in: query
      schema:
        type: integer
        minimum: 0
        default: 0
      description: Items to skip
  schemas:
    SequenceEnrollment:
      type: object
      description: A contact enrollment in a sequence.
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - pending
            - active
            - paused
            - finished
            - bounced
            - replied
            - error
            - unsubscribed
            - interested
            - not_interested
            - cancelled
          nullable: true
        created_at:
          type: string
          format: date-time
          nullable: true
          description: Timestamp when the contact was enrolled in the sequence.
        updated_at:
          type: string
          format: date-time
          nullable: true
        last_executed_at:
          type: string
          format: date-time
          nullable: true
        next_execution_at:
          type: string
          format: date-time
          nullable: true
        current_step:
          $ref: '#/components/schemas/SequenceEnrollmentCurrentStep'
        contact:
          $ref: '#/components/schemas/SequenceEnrollmentContact'
    PaginationMeta:
      type: object
      properties:
        total:
          type: integer
          description: Total number of results matching the query
        limit:
          type: integer
          description: Maximum items per page
        offset:
          type: integer
          description: Number of items skipped
        has_more:
          type: boolean
          description: Whether more pages are available
      example:
        total: 142
        limit: 50
        offset: 0
        has_more: true
    SequenceEnrollmentCurrentStep:
      type: object
      nullable: true
      properties:
        id:
          type: string
          format: uuid
        step_order:
          type: integer
        type:
          type: string
          enum:
            - linkedin
            - email
            - whatsapp
            - sms
            - note
          description: Legacy step category.
        subtype:
          type: string
          nullable: true
          description: Legacy step subtype, when applicable.
        step_type:
          type: string
          enum:
            - linkedin_invitation
            - linkedin_message
            - linkedin_inmail
            - linkedin_voice
            - linkedin_profile_view
            - email
            - whatsapp
            - sms
            - call
            - email_enrichment
            - phone_enrichment
            - manual_step
        name:
          type: string
          nullable: true
    SequenceEnrollmentContact:
      type: object
      nullable: true
      description: Slim contact object returned by the sequence enrollments endpoint.
      properties:
        id:
          type: string
          format: uuid
        first_name:
          type: string
          nullable: true
        last_name:
          type: string
          nullable: true
        email:
          type: string
          format: email
          nullable: true
          description: Primary email address, when available.
        title:
          type: string
          nullable: true
        current_company:
          type: string
          nullable: true
        avatar_url:
          type: string
          format: uri
          nullable: true
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - invalid_api_key
                - insufficient_scope
                - rate_limit_exceeded
                - validation_error
                - not_found
                - internal_error
                - billing_required
                - plan_upgrade_required
              description: >
                Error codes:

                - `invalid_api_key` — API key is missing, malformed, or revoked

                - `insufficient_scope` — API key lacks the required scope for
                this endpoint

                - `rate_limit_exceeded` — Too many requests (2000/hour)

                - `validation_error` — Request body or parameters failed
                validation

                - `not_found` — The requested resource does not exist

                - `internal_error` — Unexpected server error

                - `billing_required` — Workspace has no active subscription

                - `plan_upgrade_required` — Current plan does not include this
                feature
            message:
              type: string
              description: Human-readable error description
  responses:
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_api_key
              message: Invalid API key
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: Resource not found
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key starting with `leo_`

````