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

# List campaigns

> Your SMS campaigns with totals and cost.

Scope: `sms:read`.



## OpenAPI

````yaml /openapi.json get /sms/campaigns
openapi: 3.1.0
info:
  title: Messaly API
  version: 1.0.0
  description: >-
    SMS, WhatsApp, email, contacts and CRM for your business. Amounts are in
    KES. Authenticate with an API key (Settings → API keys). A key can be
    limited to scopes and to IP addresses; a key with no scopes can call every
    endpoint here.
servers:
  - url: https://app.telaven.com/api/v1
    description: Production
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: Account
    description: Wallet balance and SMS pricing.
  - name: SMS
    description: Send SMS and read messages and analytics.
  - name: SMS campaigns
    description: Create, schedule and send SMS campaigns to lists and tags.
  - name: Contacts
    description: Contacts and contact lists.
  - name: WhatsApp
    description: Send approved WhatsApp templates.
  - name: Email
    description: Email campaigns and unsubscribes.
  - name: CRM
    description: Deals, companies and pipelines.
paths:
  /sms/campaigns:
    get:
      tags:
        - SMS campaigns
      summary: List campaigns
      description: |-
        Your SMS campaigns with totals and cost.

        Scope: `sms:read`.
      operationId: listCampaigns
      parameters:
        - name: page
          in: query
          required: false
          description: Page number, starting at 1.
          schema:
            type: integer
            example: 1
        - name: limit
          in: query
          required: false
          description: Items per page (1–100, default 20).
          schema:
            type: integer
            example: 20
        - name: status
          in: query
          required: false
          description: draft, scheduled, processing, completed, failed.
          schema:
            type: string
        - name: search
          in: query
          required: false
          description: Match on name.
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                success: true
                data:
                  - id: 6f1c…
                    name: November offer
                    status: completed
                    totalRecipients: 1200
                    totalSent: 1196
                    totalDelivered: 1150
                    totalFailed: 4
                    totalCost: 1076.4
                    createdAt: '2026-11-12T09:00:00.000Z'
                stats:
                  totalCampaigns: 14
                  totalSent: 9820
                  totalDelivered: 9410
                  totalCost: 8838
                  deliveryRate: 96
                pagination:
                  page: 1
                  limit: 20
                  total: 14
                  totalPages: 1
        '401':
          description: No API key, or the key is wrong, disabled or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            The key doesn't have the scope this endpoint needs, or it's used
            from an address its IP allowlist doesn't include.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            More than 120 requests in a minute with this key. Wait for the
            number of seconds in Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: >-
            Something went wrong on our side. Retry with backoff. A POST sent
            with an Idempotency-Key replays this same error for that key,
            because the request may have partly run: check the result before
            trying again with a new key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        code:
          type: string
          description: Machine-readable code where one exists, e.g. INSUFFICIENT_BALANCE.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer tlv_…'
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````

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