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

# Enroll leads into a campaign

> Queue the campaign's sequence for real sending, respecting the inbox's warmup and daily caps. Up to 1,000 leads per call.

Skipped rather than failed: leads with no email, leads already enrolled, suppressed or unsubscribed addresses, and addresses known to be undeliverable. When the brand has *validate on enroll* turned on (the default), unchecked addresses are validated first and undeliverable ones dropped before anything is sent.

**Sending cannot be undone.** Requires a paid plan and the `outreach:send` permission.



## OpenAPI

````yaml POST /api/outreach/enroll
openapi: 3.1.0
info:
  title: ManyPI API
  description: >-
    The REST API behind ManyPI — AI lead generation, email validation,
    cold-email outreach, agent runs and web scraping. Every endpoint is
    authenticated with a ManyPI API key (`mpi_...`) or an OAuth 2.1 access
    token, and honours the permissions granted to that credential.
  version: 2.0.0
  contact:
    name: ManyPI Support
    email: support@manypi.com
    url: https://manypi.com
servers:
  - url: https://app.manypi.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Leads
    description: Find, store, enrich and manage leads.
  - name: Email validation
    description: Verify that lead addresses can receive mail.
  - name: Outreach
    description: Inboxes, sequences, campaigns, sending and replies.
  - name: Agent
    description: Agent runs, replies and skills.
  - name: Scraping
    description: Scrapers, runs and extracted data.
  - name: Endpoints
    description: Publish scrapers as typed REST endpoints.
  - name: Account
    description: Key validation and account information.
paths:
  /api/outreach/enroll:
    post:
      tags:
        - Outreach
      summary: Enroll leads into a campaign
      description: >-
        Queue the campaign's sequence for real sending, respecting the inbox's
        warmup and daily caps. Up to 1,000 leads per call.


        Skipped rather than failed: leads with no email, leads already enrolled,
        suppressed or unsubscribed addresses, and addresses known to be
        undeliverable. When the brand has *validate on enroll* turned on (the
        default), unchecked addresses are validated first and undeliverable ones
        dropped before anything is sent.


        **Sending cannot be undone.** Requires a paid plan and the
        `outreach:send` permission.
      operationId: enrollLeads
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - campaign_id
                - lead_ids
              properties:
                campaign_id:
                  type: string
                  format: uuid
                lead_ids:
                  type: array
                  minItems: 1
                  maxItems: 1000
                  items:
                    type: string
                    format: uuid
            example:
              campaign_id: …
              lead_ids:
                - 8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d
      responses:
        '200':
          description: Enrollment outcome.
          content:
            application/json:
              schema:
                type: object
                properties:
                  enrolled:
                    type: integer
                  skipped:
                    type: integer
                  reasons:
                    type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            Outreach requires a paid plan (`code: "outreach_locked"`), or the
            workspace is over its seat count.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  responses:
    BadRequest:
      description: The request body or parameters failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: >-
        Missing, invalid or expired credential — or a key that lacks the
        permission this route requires.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: >-
            A machine-readable code on gated failures: `lead_limit`,
            `outreach_locked`, `validation_credits_exhausted`.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A ManyPI API key (`mpi_...`) from Settings → API keys, or an OAuth 2.1
        access token obtained through the MCP consent flow.

````