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

# List campaigns

> Newest first.



## OpenAPI

````yaml /openapi.json get /v1/campaigns
openapi: 3.1.0
info:
  title: Cluster API
  version: '1'
servers:
  - url: https://api.getcluster.ai
security: []
paths:
  /v1/campaigns:
    get:
      tags:
        - Campaigns
      summary: List campaigns
      description: Newest first.
      operationId: list_campaigns
      parameters:
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - draft
                  - running
                  - paused
                  - archived
                type: string
              - type: 'null'
            title: Status
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 200
              - type: 'null'
            description: Matches the campaign name.
            title: Search
          description: Matches the campaign name.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_Campaign_'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Payment Required
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
        '503':
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service Unavailable
      security:
        - ApiKey: []
components:
  schemas:
    Page_Campaign_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Campaign'
          type: array
          title: Data
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      type: object
      required:
        - data
      title: Page[Campaign]
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorResponse
    Campaign:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        status:
          type: string
          title: Status
        campaign_type:
          type: string
          title: Campaign Type
        delivery_mode:
          type: string
          title: Delivery Mode
        list_id:
          anyOf:
            - type: string
            - type: 'null'
          title: List Id
        contact_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Contact Count
        stats:
          $ref: '#/components/schemas/CampaignStats'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        scheduled_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Scheduled At
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        paused_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Paused At
        paused_reason:
          anyOf:
            - $ref: '#/components/schemas/CampaignPausedReason'
            - type: 'null'
        finished_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Finished At
        ends_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Ends At
      type: object
      required:
        - id
        - name
        - status
        - campaign_type
        - delivery_mode
        - stats
        - created_at
        - updated_at
      title: Campaign
    ErrorBody:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        request_id:
          type: string
          title: Request Id
        details:
          anyOf:
            - items:
                $ref: '#/components/schemas/ErrorDetail'
              type: array
            - type: 'null'
          title: Details
      type: object
      required:
        - code
        - message
        - request_id
      title: ErrorBody
    CampaignStats:
      properties:
        active_contact_count:
          type: integer
          title: Active Contact Count
          default: 0
        completed_contact_count:
          type: integer
          title: Completed Contact Count
          default: 0
        failed_contact_count:
          type: integer
          title: Failed Contact Count
          default: 0
        excluded_contact_count:
          type: integer
          title: Excluded Contact Count
          default: 0
        connection_request_sent_count:
          type: integer
          title: Connection Request Sent Count
          default: 0
        message_sent_count:
          type: integer
          title: Message Sent Count
          default: 0
        email_sent_count:
          type: integer
          title: Email Sent Count
          default: 0
        profile_visit_sent_count:
          type: integer
          title: Profile Visit Sent Count
          default: 0
        like_post_sent_count:
          type: integer
          title: Like Post Sent Count
          default: 0
        reply_count:
          type: integer
          title: Reply Count
          default: 0
      type: object
      title: CampaignStats
    CampaignPausedReason:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
        - code
        - message
      title: CampaignPausedReason
      description: Why the system paused the campaign. Absent when a person paused it.
    ErrorDetail:
      properties:
        field:
          anyOf:
            - type: string
            - type: 'null'
          title: Field
        message:
          type: string
          title: Message
      type: object
      required:
        - message
      title: ErrorDetail
  securitySchemes:
    ApiKey:
      type: http
      description: A workspace API key, created under Settings, API keys.
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.