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

# List Workflow Enrollments

> Paginated list of contacts currently or historically enrolled in a workflow, ordered most-recently-updated first.



## OpenAPI

````yaml GET /workflow/{workflow_id}/enrollments/
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /workflow/{workflow_id}/enrollments/:
    get:
      tags:
        - workflow
      summary: List Workflow Enrollments
      description: >-
        Paginated list of contacts currently or historically enrolled in a
        workflow, ordered most-recently-updated first.
      operationId: workflow_enrollments_retrieve
      parameters:
        - in: query
          name: executed
          schema:
            type: boolean
          description: >-
            Backwards-compat alias: `true` ⇒ `status=executed`, `false` ⇒
            `pending`+`waiting`.
        - in: query
          name: page
          schema:
            type: integer
            default: 1
        - in: query
          name: search
          schema:
            type: string
          description: Partial match on contact name, phone, or email.
        - in: query
          name: status
          schema:
            type: string
          description: >-
            Filter by enrollment status (e.g. `pending`, `waiting`, `executed`,
            `removed`).
        - in: path
          name: workflow_id
          schema:
            type: string
            format: uuid
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowEnrollmentListResponse'
          description: ''
        '404':
          description: Workflow not found.
      security:
        - jwtAuth: []
components:
  schemas:
    WorkflowEnrollmentListResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowEnrollment'
        total:
          type: integer
        page:
          type: integer
        page_size:
          type: integer
        total_pages:
          type: integer
      required:
        - page
        - page_size
        - results
        - total
        - total_pages
    WorkflowEnrollment:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        workflow:
          type: string
          format: uuid
        contact:
          type: string
          format: uuid
        status:
          $ref: '#/components/schemas/WorkflowEnrollmentStatusEnum'
        executed_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        contact_name:
          type: string
          readOnly: true
        contact_phone:
          type: string
          readOnly: true
        contact_email:
          type: string
          format: email
          readOnly: true
        workflow_name:
          type: string
          readOnly: true
        current_action:
          type: string
          readOnly: true
      required:
        - contact
        - contact_email
        - contact_name
        - contact_phone
        - created_at
        - current_action
        - executed_at
        - id
        - workflow
        - workflow_name
    WorkflowEnrollmentStatusEnum:
      enum:
        - pending
        - waiting
        - executed
        - error
        - removed
      type: string
      description: |-
        * `pending` - Pending
        * `waiting` - Waiting
        * `executed` - Executed
        * `error` - Error
        * `removed` - Removed
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````