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

# Create Campaign

> Create an outbound calling campaign.

This allows you to:
- Call multiple numbers in sequence or parallel
- Schedule calls for a specific time
- Set concurrent call limits
- Retry failed calls automatically
- Track campaign progress

# ============================================
# QUOTA ENFORCEMENT
# ============================================



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json post /campaigns
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /campaigns:
    post:
      tags:
        - campaigns
      summary: Create Campaign
      description: |-
        Create an outbound calling campaign.

        This allows you to:
        - Call multiple numbers in sequence or parallel
        - Schedule calls for a specific time
        - Set concurrent call limits
        - Retry failed calls automatically
        - Track campaign progress

        # ============================================
        # QUOTA ENFORCEMENT
        # ============================================
      operationId: create_campaign_campaigns_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CampaignRequest:
      properties:
        agent_id:
          type: string
          format: uuid
          title: Agent Id
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        targets:
          items:
            $ref: '#/components/schemas/CallTarget'
          type: array
          maxItems: 1000
          minItems: 1
          title: Targets
        schedule_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Schedule At
        concurrent_calls:
          type: integer
          maximum: 10
          minimum: 1
          title: Concurrent Calls
          default: 1
        retry_failed:
          type: boolean
          title: Retry Failed
          default: false
        retry_attempts:
          type: integer
          maximum: 3
          minimum: 0
          title: Retry Attempts
          default: 0
        context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Context
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
          description: URL for campaign progress webhooks
        webhook_secret:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Secret
          description: Secret for webhook signature verification
        notify_on_call_complete:
          type: boolean
          title: Notify On Call Complete
          description: Send webhook for each call completion
          default: false
      type: object
      required:
        - agent_id
        - name
        - targets
      title: CampaignRequest
      description: Campaign/batch calling request.
    CampaignResponse:
      properties:
        campaign_id:
          type: string
          title: Campaign Id
        agent_id:
          type: string
          title: Agent Id
        name:
          type: string
          title: Name
        total_targets:
          type: integer
          title: Total Targets
        status:
          type: string
          title: Status
        scheduled_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Scheduled At
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
        calls_initiated:
          type: integer
          title: Calls Initiated
        calls_completed:
          type: integer
          title: Calls Completed
        calls_failed:
          type: integer
          title: Calls Failed
      type: object
      required:
        - campaign_id
        - agent_id
        - name
        - total_targets
        - status
        - scheduled_at
        - started_at
        - calls_initiated
        - calls_completed
        - calls_failed
      title: CampaignResponse
      description: Campaign response.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CallTarget:
      properties:
        to_number:
          type: string
          maxLength: 32
          minLength: 2
          title: To Number
        from_number:
          anyOf:
            - type: string
              maxLength: 32
              minLength: 2
            - type: 'null'
          title: From Number
        context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Context
      type: object
      required:
        - to_number
      title: CallTarget
      description: Single call target in a campaign.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````