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

# List campaigns

> Retrieve paginated list of campaigns



## OpenAPI

````yaml GET /campaigns
openapi: 3.0.3
info:
  title: NativeMessage API
  version: 1.0.0
  description: Complete API documentation for NativeMessage platform
  contact:
    name: NativeMessage Support
    email: support@nativemessage.com
servers:
  - url: https://api-message.nativehub.live/api/v1
    description: Production server
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /campaigns:
    get:
      tags:
        - Campaigns
      summary: List campaigns
      description: Retrieve paginated list of campaigns
      operationId: listCampaigns
      parameters:
        - $ref: '#/components/parameters/PageParam'
        - $ref: '#/components/parameters/PerPageParam'
        - name: status
          in: query
          description: Filter by campaign status
          schema:
            type: string
            enum:
              - draft
              - running
              - paused
              - completed
              - cancelled
      responses:
        '200':
          description: Campaigns retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedCampaigns'
components:
  parameters:
    PageParam:
      name: page
      in: query
      description: Page number (default 1)
      schema:
        type: integer
        default: 1
        minimum: 1
    PerPageParam:
      name: per_page
      in: query
      description: Items per page (default 20, max 100)
      schema:
        type: integer
        default: 20
        minimum: 1
        maximum: 100
  schemas:
    PaginatedCampaigns:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Campaign'
        total:
          type: integer
        page:
          type: integer
        per_page:
          type: integer
    Campaign:
      type: object
      properties:
        id:
          type: string
          format: uuid
        tenant_id:
          type: string
          format: uuid
        account_id:
          type: string
          format: uuid
        name:
          type: string
        template_id:
          type: string
          format: uuid
        sender_id:
          type: string
        status:
          type: string
          enum:
            - draft
            - running
            - paused
            - completed
            - cancelled
        total_recipients:
          type: integer
        sent_count:
          type: integer
        failed_count:
          type: integer
        started_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      example:
        id: e1f2a3b4-c5d6-7890-ef12-345678901234
        tenant_id: c3d4e5f6-a7b8-9012-cdef-123456789012
        account_id: b2c3d4e5-f6a7-8901-bcde-f12345678901
        name: February Promotion
        template_id: d0e1f2a3-b4c5-6789-de01-234567890123
        sender_id: '+8801912345678'
        status: running
        total_recipients: 5000
        sent_count: 3200
        failed_count: 15
        started_at: '2026-02-14T08:00:00Z'
        created_at: '2026-02-13T15:30:00Z'
        updated_at: '2026-02-14T10:00:00Z'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````