> ## 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.

# Add Workflow Enrollments

> Add or remove contacts from a workflow. POST = add (with optional schedule); DELETE = remove. Pass either `contact_id`, an array of `contact_ids`, or `contact_ids="all"` together with `filters` for bulk actions. Schedule by passing a local `scheduled_at` ISO string + IANA `timezone`.



## OpenAPI

````yaml POST /workflow/{workflow_id}/enrollments/add/
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/add/:
    post:
      tags:
        - workflow
      summary: Enroll/Remove Contacts in Workflow
      description: >-
        Add or remove contacts from a workflow. POST = add (with optional
        schedule); DELETE = remove. Pass either `contact_id`, an array of
        `contact_ids`, or `contact_ids="all"` together with `filters` for bulk
        actions. Schedule by passing a local `scheduled_at` ISO string + IANA
        `timezone`.
      operationId: workflow_enrollments_add_create
      parameters:
        - in: query
          name: testing
          schema:
            type: boolean
            default: false
          description: When true, bypass the duplicate-enrollment guard.
        - in: path
          name: workflow_id
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkflowEnrollmentAddRequestRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/WorkflowEnrollmentAddRequestRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/WorkflowEnrollmentAddRequestRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowEnrollmentAddResponse'
          description: ''
        '400':
          description: >-
            Missing identifiers, invalid `scheduled_at`/`timezone`, or malformed
            `filters`.
        '404':
          description: Workflow not found.
      security:
        - jwtAuth: []
components:
  schemas:
    WorkflowEnrollmentAddRequestRequest:
      type: object
      properties:
        contact_id:
          type: string
          format: uuid
        contact_ids:
          description: Array of UUIDs, or the literal string `"all"`.
        filters:
          description: Advanced contact filter; only applied when `contact_ids="all"`.
        limit:
          type: integer
        scheduled_at:
          type: string
          minLength: 1
          description: Local ISO datetime (e.g. `2026-03-15T14:30:00`).
        timezone:
          type: string
          minLength: 1
          description: >-
            IANA timezone for `scheduled_at`. Required when `scheduled_at` is
            provided.
    WorkflowEnrollmentAddResponse:
      type: object
      properties:
        added:
          type: integer
        skipped:
          type: integer
          description: Sum of contacts not found and contacts already enrolled.
        total_matching:
          type: integer
      required:
        - added
        - skipped
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````