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

# Create Campaign

> Creates a new campaign with an uploaded recipients file, linked assistant, and schedule settings.



## OpenAPI

````yaml /api-reference/openapi.json post /api/campaign
openapi: 3.1.0
info:
  title: Ello.AI API
  description: API for managing agents and calls in Ello.AI
  version: 1.0.0
servers:
  - url: https://api.getello.ai/
security: []
paths:
  /api/campaign:
    post:
      tags:
        - Campaigns
      summary: Create Campaign
      description: >-
        Creates a new campaign with an uploaded recipients file, linked
        assistant, and schedule settings.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              example: {}
              properties:
                campaignName:
                  type: string
                  description: The name of the campaign.
                  example: Follow-up Campaign October
                assistantId:
                  type: string
                  description: >-
                    The ID of the assistant (agent) associated with this
                    campaign.
                  example: 685d4b93abcf4c90c18034aa
                scheduleTime:
                  type: string
                  format: date-time
                  description: Scheduled time for the campaign in ISO format (optional).
                  example: '2025-10-29T11:30:00.000Z'
                scheduleEnabled:
                  type: string
                  description: >-
                    Set to 'true' to enable scheduling for the campaign
                    (optional).
                  example: 'true'
                file:
                  type: string
                  format: binary
                  description: CSV file containing the list of recipients for the campaign.
              required:
                - campaignName
                - assistantId
                - file
      responses:
        '201':
          description: Campaign created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 201
                  message:
                    type: string
                    example: Campaign created successfully
                  data:
                    type: object
                    properties:
                      campaign_id:
                        type: string
                        example: 6901c1d8b004a5d55a123abc
                      campaignName:
                        type: string
                        example: Follow-up Campaign October
                      assistantId:
                        type: string
                        example: 685d4b93abcf4c90c18034aa
                      status:
                        type: string
                        enum:
                          - scheduled
                          - processing
                          - active
                          - completed
                          - failed
                        example: scheduled
                      scheduleTime:
                        type: string
                        format: date-time
                        example: '2025-10-29T11:30:00.000Z'
                      createdAt:
                        type: string
                        format: date-time
                        example: '2026-04-07T10:30:00.000Z'
        '400':
          description: Bad Request - Missing required fields or invalid input
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 400
                  message:
                    type: string
                    example: Campaign already exists
                  details:
                    type: string
                    example: Assistant ID is required or No file uploaded
        '401':
          description: Unauthorized access
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 401
                  message:
                    type: string
                    example: Authentication token is missing or invalid
        '422':
          description: >-
            Unprocessable Entity - Error with assistant service or file
            processing
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 422
                  message:
                    type: string
                    example: Error while uploading file
                  details:
                    type: string
                    example: Assistant service error or invalid file format
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 500
                  message:
                    type: string
                    example: Error while uploading file
                  details:
                    type: string
      security:
        - apiKey: []
        - bearerAuth: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````