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

# List campaigns

> Returns a cursor-paginated list of campaigns, newest first.



## OpenAPI

````yaml get /v2/campaigns
openapi: 3.0.3
info:
  title: OpenMic External API v2
  version: '2.0'
  description: >-
    The OpenMic External API (v2) provides programmatic access to agents, calls,

    phone numbers, tools, contact lists, campaigns, and voices.


    ## Authentication

    All endpoints require an API key passed as a Bearer token in the

    `Authorization` header:

    ```

    Authorization: Bearer <your_api_key>

    ```


    ## Rate Limiting

    Most endpoints are limited to **100 requests per minute** per organization.

    The `POST /create-phone-call` endpoint has a stricter limit of **5 requests
    per minute**.
  contact:
    name: OpenMic Support
servers:
  - url: https://api.openmic.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Auth
    description: Verify API key identity.
  - name: Agents
    description: Create and manage voice AI agents.
  - name: Calls
    description: Initiate and track phone calls.
  - name: Phone Numbers
    description: Manage phone numbers and agent assignments.
  - name: Tools
    description: Manage agent tools (API requests, call transfers, etc.).
  - name: Contact Lists
    description: Manage contact lists and individual contacts.
  - name: Campaigns
    description: Create and manage outbound dialing campaigns.
  - name: Voices
    description: Browse available voices for agents.
  - name: SMS
    description: Send SMS messages.
paths:
  /v2/campaigns:
    get:
      tags:
        - Campaigns
      summary: List campaigns
      description: Returns a cursor-paginated list of campaigns, newest first.
      operationId: listCampaigns
      parameters:
        - $ref: '#/components/parameters/PageSize'
        - $ref: '#/components/parameters/Cursor'
        - name: status
          in: query
          schema:
            $ref: '#/components/schemas/CampaignStatus'
        - $ref: '#/components/parameters/CreatedAfter'
        - $ref: '#/components/parameters/CreatedBefore'
      responses:
        '200':
          description: Paginated list of campaigns.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCampaignsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    PageSize:
      name: page_size
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
      description: Number of records per page (default 50, max 100).
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
      description: Opaque pagination cursor returned by the previous response.
    CreatedAfter:
      name: created_after
      in: query
      schema:
        type: string
        format: date-time
      description: Filter records created on or after this ISO 8601 timestamp.
    CreatedBefore:
      name: created_before
      in: query
      schema:
        type: string
        format: date-time
      description: Filter records created on or before this ISO 8601 timestamp.
  schemas:
    CampaignStatus:
      type: string
      enum:
        - Running
        - Scheduled
        - Stopped
        - Completed
        - Failed
        - Expired
        - Paused
    ListCampaignsResponse:
      allOf:
        - $ref: '#/components/schemas/PaginationMeta'
        - type: object
          required:
            - campaigns
            - has_more
          properties:
            campaigns:
              type: array
              items:
                $ref: '#/components/schemas/CampaignResponse'
    PaginationMeta:
      type: object
      properties:
        has_more:
          type: boolean
          description: Whether more records exist after this page.
        next_cursor:
          type: string
          description: Opaque cursor to pass as `cursor` in the next request.
    CampaignResponse:
      type: object
      required:
        - id
        - name
        - type
        - status
      properties:
        id:
          type: integer
        name:
          type: string
        type:
          type: string
          enum:
            - outbound
        status:
          $ref: '#/components/schemas/CampaignStatus'
        agent_uid:
          type: string
        from_number:
          type: string
        contact_list_id:
          type: integer
        time_start:
          type: string
          description: HH:MM (24-hour) daily window start.
          example: '09:00'
        time_end:
          type: string
          description: HH:MM (24-hour) daily window end.
          example: '17:00'
        timezone:
          type: string
          example: America/New_York
        days:
          type: array
          items:
            $ref: '#/components/schemas/CampaignDay'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        details:
          type: string
    CampaignDay:
      type: string
      enum:
        - Monday
        - Tuesday
        - Wednesday
        - Thursday
        - Friday
        - Saturday
        - Sunday
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Rate limit exceeded.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              message:
                type: string
              error:
                type: string
              retryAfter:
                type: integer
    InternalServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key obtained from the OpenMic dashboard.

````