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

# WhatsApp Campaigns API — Bulk Template Broadcasts

> Create and manage WhatsApp broadcast campaigns on Vobiz - send bulk outbound messages via Meta-approved templates to segmented contact audiences at scale.

> [!NOTE]
>
> **Prerequisites:** Campaigns require an `approved` template (you pass its `template_id`) and contacts to send to: all your contacts, contacts with given tags, or a list of contact IDs. See [Templates API](https://www.vobiz.ai/docs/whatsapp/api/templates.md) and [Contacts API](https://www.vobiz.ai/docs/whatsapp/api/contacts.md).

**Base URL:** `https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp`

**Authentication:** every request needs the `X-Auth-ID: MA_XXXXXXXX` and `X-Auth-Token: YOUR_AUTH_TOKEN` headers, and the `{auth_id}` in the path must be the account those credentials belong to. Set `Content-Type: application/json` on requests with a JSON body. Get your credentials from [console.vobiz.ai](https://console.vobiz.ai).

## Campaign lifecycle

A new campaign starts `sending` right away, or is `scheduled` when `scheduled_at` is in the future. From there:

* `scheduled` → `sending` when the scheduled time arrives.
* `sending` or `scheduled` → `paused` when you [pause](#campaign-actions) it, and `paused` → `sending` when you resume it.
* `sending` → `completed` when every recipient has been processed.
* Any unfinished campaign → `cancelled` when you cancel it.

Campaign statuses are `draft`, `scheduled`, `sending`, `paused`, `completed`, `cancelled`, and `failed`.

## List campaigns

```http theme={null}
GET https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp/Campaign/
```

Returns a paginated list of campaigns, newest first, with status, delivery counts, and scheduling details. Filter with the `status` query parameter.

| Query param | Default | Description |
| - | - | - |
| `status` | - | Filter by campaign status: `draft`, `scheduled`, `sending`, `paused`, `completed`, `cancelled`, or `failed` |
| `page` | `1` | Page number, starting at `1` |
| `limit` | `20` | Page size, from `1` to `100` |

```bash cURL theme={null}
curl -X GET \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Campaign/?status=completed&page=1&limit=20" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

The response holds `items` (an array of [campaign objects](#campaign-object)), `total`, `page`, `limit`, and `has_more`.

## Create campaign

```http theme={null}
POST https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp/Campaign/
```

Create a campaign that sends one approved template to an audience, and start it. Reference the template by its `template_id` (the Vobiz UUID from the [Templates API](https://www.vobiz.ai/docs/whatsapp/api/templates.md), not the template name). Choose the audience with `audience_type`. Set `scheduled_at` for a future send, or omit it to send immediately.

> [!WARNING]
>
> Creating a campaign sends real messages to real people and is charged to your account. Use your own credentials and confirm the audience before you create it.

Vobiz resolves the recipients from your contacts when you create the campaign, so the audience must include at least one eligible contact. For `MARKETING` templates, `+1` numbers are excluded. Messages go out in batches of 30, 10 seconds apart. Track progress with [Get campaign](#get-campaign) and [List campaign recipients](#list-campaign-recipients).

### Request body

| Field | Required | Description |
| - | - | - |
| `channel_id` | Yes | Channel (UUID) to send from |
| `name` | Yes | Campaign display name |
| `template_id` | Yes | Vobiz `id` (UUID) of an `approved` template on the channel |
| `template_components` | Yes | The template's components, usually copied from the template's `components`. Vobiz fills in header media, URL button parameters, and body variables at send time. |
| `audience_type` | Yes | `all` (every contact), `tags` (contacts with any of `audience_tags`), or `manual` (the contacts in `audience_contact_ids`) |
| `audience_tags` | Conditional | Array of contact tags. Used when `audience_type` is `tags` |
| `audience_contact_ids` | Conditional | Array of contact IDs (UUIDs). Used when `audience_type` is `manual` |
| `recipient_variables` | No | Body variable values per recipient, keyed by phone number, then by variable number: `{ "+919876543210": { "1": "Priya", "2": "20%" } }`. A leading `+` on the key is optional. |
| `variable_mappings` | No | Any JSON value you want stored with the campaign and returned on reads. To fill body variables per recipient, use `recipient_variables`. |
| `scheduled_at` | No | RFC3339 datetime (UTC) to start sending. Omit it, or send a time in the past, to start immediately. |
| `header_media_id` | No | Media ID from `POST /Media/` for a template with an `IMAGE`, `VIDEO`, or `DOCUMENT` header. Without it, the template's own example media is used. |
| `header_media_type` | No | Type of `header_media_id`: `image`, `video`, or `document`. Case-insensitive; defaults to the header's `format`. |

```bash cURL theme={null}
curl -X POST \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Campaign/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "channel_id": "0a8f3feb-9598-47f2-8a6c-df1aeb306ae1",
    "name": "Diwali offer",
    "template_id": "9d8f1e2a-4c3b-4a1d-8e7f-1a2b3c4d5e6f",
    "template_components": [
      { "type": "BODY", "text": "Hi {{1}}, enjoy {{2}} off this Diwali." }
    ],
    "audience_type": "tags",
    "audience_tags": ["vip"],
    "recipient_variables": {
      "+919876543210": { "1": "Priya", "2": "20%" }
    }
  }'
```

```json 201 Created theme={null}
{
  "id": "7b3e9d21-6c4a-4f8e-9a1b-2d5c8e7f3a10",
  "account_id": "MA_XXXXXXXX",
  "channel_id": "0a8f3feb-9598-47f2-8a6c-df1aeb306ae1",
  "name": "Diwali offer",
  "template_id": "9d8f1e2a-4c3b-4a1d-8e7f-1a2b3c4d5e6f",
  "template_name": "diwali_offer",
  "template_lang": "en",
  "template_components": [
    { "type": "BODY", "text": "Hi {{1}}, enjoy {{2}} off this Diwali." }
  ],
  "variable_mappings": null,
  "audience_type": "tags",
  "audience_tags": ["vip"],
  "audience_contact_ids": null,
  "scheduled_at": null,
  "status": "sending",
  "pause_reason": "",
  "total_recipients": 42,
  "sent_count": 0,
  "delivered_count": 0,
  "read_count": 0,
  "failed_count": 0,
  "skipped_count": 0,
  "batch_size": 30,
  "batch_delay_ms": 10000,
  "daily_send_count": 0,
  "daily_send_date": null,
  "created_at": "2026-10-20T09:15:00Z",
  "updated_at": "2026-10-20T09:15:00Z",
  "started_at": "2026-10-20T09:15:00Z",
  "completed_at": null
}
```

### Errors

* **`400 Bad Request`** - The body is invalid, or the template is not `approved`.
* **`404 Not Found`** - The channel or template was not found on your account.

## Get campaign

```http theme={null}
GET https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp/Campaign/{id}/
```

Returns full details and delivery counters for a specific campaign. An unknown campaign returns `404`.

```bash cURL theme={null}
curl -X GET \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Campaign/{id}/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

## Campaign actions

Control campaign execution. All three use `POST` with no request body and return a `status` object, for example `{ "status": "paused" }`.

| Endpoint | Description |
| - | - |
| `POST /Campaign/{id}/Pause/` | Pause a `sending` or `scheduled` campaign. Queued recipients wait until you resume or cancel it. Returns `{ "status": "paused" }`. |
| `POST /Campaign/{id}/Resume/` | Resume a `paused` campaign; sending continues with the queued recipients. Returns `{ "status": "resumed" }`. |
| `POST /Campaign/{id}/Cancel/` | Cancel a campaign that has not finished. Queued recipients are not sent, and cancelling can't be undone. Returns `{ "status": "cancelled" }`. |

An action that doesn't fit the campaign's current status returns `400`, for example pausing a `completed` campaign. An unknown campaign returns `404`.

```bash cURL - pause theme={null}
curl -X POST "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Campaign/{id}/Pause/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```json 200 OK theme={null}
{ "status": "paused" }
```

## Delete campaign

```http theme={null}
DELETE https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp/Campaign/{id}/
```

Permanently delete a campaign and its recipients. To delete a campaign that is `sending`, pause or cancel it first; otherwise the request returns `400`. Returns `200 OK`.

```bash cURL theme={null}
curl -X DELETE "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Campaign/{id}/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```json 200 OK theme={null}
{ "status": "deleted" }
```

## List campaign recipients

```http theme={null}
GET https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp/Campaign/{id}/Recipient/
```

Returns a paginated, per-contact delivery status, in the order recipients were added. Use it to audit delivery rates or identify failed recipients.

| Query param | Default | Description |
| - | - | - |
| `status` | - | Filter by recipient status: `queued`, `sending`, `sent`, `delivered`, `read`, `failed`, or `skipped` |
| `page` | `1` | Page number, starting at `1` |
| `limit` | `20` | Page size, from `1` to `100` |

```bash cURL theme={null}
curl -X GET \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Campaign/{id}/Recipient/?status=failed&page=1&limit=50" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```json 200 OK theme={null}
{
  "items": [
    {
      "id": "3c5e7a9b-1d2f-4a6c-8e0b-4d6f8a0c2e19",
      "campaign_id": "7b3e9d21-6c4a-4f8e-9a1b-2d5c8e7f3a10",
      "contact_id": "4f9c2a18-3e6b-4d2f-8b1a-9e7c5d3f1a02",
      "phone_number": "+919876543210",
      "variables": { "1": "Priya", "2": "20%" },
      "status": "delivered",
      "meta_message_id": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgSQzVGNkE3QjhDOUQwRTFGMkEzAA==",
      "meta_error_code": null,
      "meta_error_description": null,
      "sent_at": "2026-10-20T09:16:00Z",
      "delivered_at": "2026-10-20T09:16:03Z",
      "read_at": null,
      "created_at": "2026-10-20T09:15:00Z",
      "updated_at": "2026-10-20T09:16:03Z"
    }
  ],
  "total": 42,
  "page": 1,
  "limit": 50,
  "has_more": false
}
```

## Campaign object

| Field | Type | Description |
| - | - | - |
| `id` | UUID | Campaign ID |
| `account_id` | string | Your account ID (`MA_XXXXXXXX`) |
| `channel_id` | UUID | Channel the campaign sends from |
| `name` | string | Campaign display name |
| `template_id` | UUID | Approved template used |
| `template_name` | string | Template name, copied when the campaign was created |
| `template_lang` | string | Template language code |
| `template_components` | array or `null` | The template components sent with the campaign |
| `variable_mappings` | any | The `variable_mappings` you sent, or `null` |
| `audience_type` | string | `all`, `tags`, or `manual` |
| `audience_tags` | array or `null` | Targeted tags |
| `audience_contact_ids` | array or `null` | Targeted contact IDs |
| `status` | string | `draft`, `scheduled`, `sending`, `paused`, `completed`, `cancelled`, or `failed` |
| `pause_reason` | string | Why the campaign was paused or cancelled. Empty string when not paused. |
| `total_recipients` | int | Recipients resolved when the campaign was created |
| `sent_count` | int | Messages sent |
| `delivered_count` | int | Messages delivered |
| `read_count` | int | Messages read |
| `failed_count` | int | Messages failed |
| `skipped_count` | int | Recipients skipped |
| `batch_size` | int | Messages sent per batch |
| `batch_delay_ms` | int | Delay between batches (ms) |
| `daily_send_count` | int | Messages sent today |
| `daily_send_date` | RFC3339 or `null` | The day `daily_send_count` applies to |
| `header_media_id` | string | Media ID used for the template's media header. Omitted when not set. |
| `header_media_type` | string | Type of the header media. Omitted when not set. |
| `scheduled_at` | RFC3339 or `null` | Scheduled send time (UTC), or `null` to send immediately |
| `started_at` | RFC3339 or `null` | When sending started (UTC) |
| `completed_at` | RFC3339 or `null` | When the campaign completed, was cancelled, or failed (UTC) |
| `created_at` | RFC3339 | Creation timestamp (UTC) |
| `updated_at` | RFC3339 | Last update timestamp (UTC) |

## Campaign recipient object

| Field | Type | Description |
| - | - | - |
| `id` | UUID | Recipient row ID |
| `campaign_id` | UUID | Parent campaign |
| `contact_id` | UUID | Contact targeted |
| `phone_number` | string | Recipient phone (E.164) |
| `variables` | object | This recipient's body variables, from `recipient_variables`. Omitted when none were set. |
| `status` | string | `queued`, `sending`, `sent`, `delivered`, `read`, `failed`, or `skipped` |
| `meta_message_id` | string or `null` | WhatsApp message ID (`wamid`) once sent |
| `meta_error_code` | string or `null` | Meta error code when the send failed |
| `meta_error_description` | string or `null` | Meta error detail when the send failed |
| `sent_at` | RFC3339 or `null` | Sent timestamp (UTC) |
| `delivered_at` | RFC3339 or `null` | Delivered timestamp (UTC) |
| `read_at` | RFC3339 or `null` | Read timestamp (UTC) |
| `created_at` | RFC3339 | Creation timestamp (UTC) |
| `updated_at` | RFC3339 | Last update timestamp (UTC) |


## OpenAPI

````yaml openapi-whatsapp.yaml POST /api/v1/Account/{auth_id}/WhatsApp/Campaign/
openapi: 3.1.0
info:
  title: Vobiz WhatsApp API
  description: >
    Connect WhatsApp Business channels, submit message templates, send text,
    media and template

    messages, place and answer WhatsApp voice calls, run template campaigns, and
    manage contacts,

    canned responses, webhooks (callbacks) and media on the WhatsApp Business
    Platform through Vobiz.


    **Base URL:** `https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp`,
    where `{auth_id}` is your

    account Auth ID. Paths in descriptions, such as `POST /Message/`, are
    relative to it. The trailing

    slash is optional on every path.


    **Authentication:** every request needs the `X-Auth-ID` and `X-Auth-Token`
    headers. The

    `{auth_id}` in the path must be the account those credentials belong to,
    otherwise the request

    returns `403`. Send `Content-Type: application/json` on requests with a JSON
    body.


    **Conventions:** field names are snake_case. IDs that Vobiz issues
    (channels, templates,

    contacts, conversations, messages, campaigns, webhooks) are UUIDs; send them
    exactly as

    returned. Timestamps are RFC 3339 in UTC.

    Errors return a flat object with one `error` string. Authentication and
    authorization errors

    (`401` and `403`) nest a `code` and `message` under `error`.
  version: '1.0'
  contact:
    email: support@vobiz.ai
    url: https://www.vobiz.ai
servers:
  - url: https://api.vobiz.ai
    description: Production
security:
  - AuthID: []
    AuthToken: []
tags:
  - name: Channels
    description: >-
      WhatsApp Business phone numbers connected to your Vobiz account. Every
      send, template, call and campaign runs on a channel.
  - name: SIP integration
    description: >-
      Route a channel's WhatsApp voice calls over SIP to your own PBX or contact
      center instead of the browser (WebRTC) calling flow.
  - name: Templates
    description: >-
      Meta-approved message templates, the only messages you can send outside
      the 24-hour customer service window.
  - name: Numbers
    description: >-
      Search and buy WhatsApp-capable numbers from Vobiz inventory, or verify
      ownership of a number you already have (BYON).
  - name: Conversations
    description: >-
      Threads between one of your channels and one contact, with their message
      history.
  - name: Messages
    description: Send text, media and template messages.
  - name: Calls
    description: >-
      Place, answer and end WhatsApp Business voice calls with WebRTC signaling,
      and list call history.
  - name: Webhooks
    description: >-
      Subscriptions that deliver inbound messages, delivery status and call
      events to your server.
  - name: Media
    description: >-
      Upload media for outbound messages and download inbound attachments
      without handling Meta access tokens.
  - name: Contacts
    description: >-
      The people you message, with tags and custom attributes used for campaign
      targeting.
  - name: Canned responses
    description: Reusable reply snippets that inbox agents insert with a shortcut.
  - name: Campaigns
    description: >-
      Bulk sends of one approved template to a tagged, selected or full contact
      audience.
paths:
  /api/v1/Account/{auth_id}/WhatsApp/Campaign/:
    parameters:
      - $ref: '#/components/parameters/AuthId'
    post:
      tags:
        - Campaigns
      summary: Create a campaign
      description: >
        Creates a campaign that sends one approved template to an audience, and
        starts it. This sends real messages and is charged per conversation. Use
        your own credentials and confirm the audience first.


        Vobiz resolves the recipients from your contacts when you create the
        campaign (excluding `+1` numbers for `MARKETING` templates). It then
        starts `sending` immediately, or is `scheduled` when `scheduled_at` is
        in the future. Messages go out in batches of 30, 10 seconds apart. Track
        progress with `GET /Campaign/{id}/` and `GET /Campaign/{id}/Recipient/`.
      operationId: whatsapp-create-campaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCampaignRequest'
            example:
              channel_id: 0a8f3feb-9598-47f2-8a6c-df1aeb306ae1
              name: Diwali offer
              template_id: 9d8f1e2a-4c3b-4a1d-8e7f-1a2b3c4d5e6f
              template_components:
                - type: BODY
                  text: Hi {{1}}, enjoy {{2}} off this Diwali.
              audience_type: tags
              audience_tags:
                - vip
              recipient_variables:
                '+919876543210':
                  '1': Priya
                  '2': 20%
      responses:
        '201':
          description: The campaign, `sending` or `scheduled`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Campaign'
              example:
                id: 7b3e9d21-6c4a-4f8e-9a1b-2d5c8e7f3a10
                account_id: MA_XXXXXXXX
                channel_id: 0a8f3feb-9598-47f2-8a6c-df1aeb306ae1
                name: Diwali offer
                template_id: 9d8f1e2a-4c3b-4a1d-8e7f-1a2b3c4d5e6f
                template_name: diwali_offer
                template_lang: en
                template_components:
                  - type: BODY
                    text: Hi {{1}}, enjoy {{2}} off this Diwali.
                variable_mappings: null
                audience_type: tags
                audience_tags:
                  - vip
                audience_contact_ids: null
                scheduled_at: null
                status: sending
                pause_reason: ''
                total_recipients: 42
                sent_count: 0
                delivered_count: 0
                read_count: 0
                failed_count: 0
                skipped_count: 0
                batch_size: 30
                batch_delay_ms: 10000
                daily_send_count: 0
                daily_send_date: null
                created_at: '2026-10-20T09:15:00Z'
                updated_at: '2026-10-20T09:15:00Z'
                started_at: '2026-10-20T09:15:00Z'
                completed_at: null
        '400':
          description: The body isn't valid JSON, or the template isn't `approved`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: >-
                  template must be APPROVED before use in campaigns (current
                  status: pending)
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: The channel or the template wasn't found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                channel:
                  summary: Channel not found
                  value:
                    error: channel not found
                template:
                  summary: Template not found
                  value:
                    error: template not found
        '500':
          description: >-
            The campaign couldn't be created, for example because no contacts
            match the audience. Check `channel_id`, `audience_type` and the
            audience fields, then retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: no eligible recipients found for this campaign
components:
  parameters:
    AuthId:
      name: auth_id
      in: path
      required: true
      description: Your account Auth ID. It must match the `X-Auth-ID` header.
      schema:
        type: string
        example: MA_XXXXXXXX
  schemas:
    CreateCampaignRequest:
      type: object
      required:
        - channel_id
        - name
        - template_id
        - template_components
        - audience_type
      properties:
        channel_id:
          type: string
          format: uuid
          description: The channel to send from.
          example: 0a8f3feb-9598-47f2-8a6c-df1aeb306ae1
        name:
          type: string
          description: Campaign name.
          example: Diwali offer
        template_id:
          type: string
          format: uuid
          description: >-
            The Vobiz `id` of an `approved` template on the channel, from `GET
            /Channel/{channelId}/Template/`.
          example: 9d8f1e2a-4c3b-4a1d-8e7f-1a2b3c4d5e6f
        template_components:
          type: array
          description: >-
            The template's components, usually copied from the template's
            `components`. Vobiz fills in header media, URL button parameters and
            body variables at send time.
          items:
            $ref: '#/components/schemas/TemplateComponent'
          example:
            - type: BODY
              text: Hi {{1}}, enjoy {{2}} off this Diwali.
        variable_mappings:
          description: >-
            Any JSON value you want stored with the campaign and returned on
            reads. To fill body variables per recipient, use
            `recipient_variables`.
        recipient_variables:
          type: object
          description: >-
            Body variable values per recipient, keyed by the recipient's phone
            number, then by variable number: `{"+919876543210": {"1": "Priya",
            "2": "20%"}}`. A leading `+` on the key is optional.
          additionalProperties:
            type: object
            additionalProperties:
              type: string
          example:
            '+919876543210':
              '1': Priya
              '2': 20%
        audience_type:
          type: string
          enum:
            - all
            - tags
            - manual
          description: >-
            `all` sends to every contact, `tags` to contacts with any of
            `audience_tags`, and `manual` to the contacts in
            `audience_contact_ids`. Lowercase. For `MARKETING` templates, `+1`
            numbers are excluded.
          example: tags
        audience_tags:
          type: array
          description: Tags to target. Used when `audience_type` is `tags`.
          items:
            type: string
          example:
            - vip
        audience_contact_ids:
          type: array
          description: Contact IDs to target. Used when `audience_type` is `manual`.
          items:
            type: string
            format: uuid
          example:
            - 4f9c2a18-3e6b-4d2f-8b1a-9e7c5d3f1a02
        scheduled_at:
          type: string
          format: date-time
          description: >-
            When to start sending (RFC 3339). Omit it, or send a time in the
            past, to start immediately.
          example: '2026-11-01T04:30:00Z'
        header_media_id:
          type: string
          description: >-
            Media ID from `POST /Media/` for a template with an `IMAGE`, `VIDEO`
            or `DOCUMENT` header. Without it, the template's own example media
            is used.
          example: '1234567890123456'
        header_media_type:
          type: string
          enum:
            - image
            - video
            - document
          description: >-
            Type of `header_media_id`. Case-insensitive. Defaults to the
            header's `format`.
          example: image
    Campaign:
      type: object
      required:
        - id
        - account_id
        - channel_id
        - name
        - template_id
        - template_name
        - template_lang
        - template_components
        - audience_type
        - audience_tags
        - audience_contact_ids
        - scheduled_at
        - status
        - pause_reason
        - total_recipients
        - sent_count
        - delivered_count
        - read_count
        - failed_count
        - skipped_count
        - batch_size
        - batch_delay_ms
        - daily_send_count
        - daily_send_date
        - created_at
        - updated_at
        - started_at
        - completed_at
      properties:
        id:
          type: string
          format: uuid
          description: Campaign ID.
          example: 7b3e9d21-6c4a-4f8e-9a1b-2d5c8e7f3a10
        account_id:
          type: string
          example: MA_XXXXXXXX
        channel_id:
          type: string
          format: uuid
          example: 0a8f3feb-9598-47f2-8a6c-df1aeb306ae1
        name:
          type: string
          example: Diwali offer
        template_id:
          type: string
          format: uuid
          example: 9d8f1e2a-4c3b-4a1d-8e7f-1a2b3c4d5e6f
        template_name:
          type: string
          description: Name of the template, copied when the campaign was created.
          example: diwali_offer
        template_lang:
          type: string
          description: Language of the template.
          example: en
        template_components:
          type:
            - array
            - 'null'
          description: The template components sent with the campaign.
          items:
            $ref: '#/components/schemas/TemplateComponent'
        variable_mappings:
          description: The `variable_mappings` you sent, when you sent any.
        audience_type:
          type: string
          enum:
            - all
            - tags
            - manual
          example: tags
        audience_tags:
          type:
            - array
            - 'null'
          items:
            type: string
          example:
            - vip
        audience_contact_ids:
          type:
            - array
            - 'null'
          items:
            type: string
            format: uuid
          example: null
        scheduled_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When sending is scheduled to start, or `null` to send immediately.
          example: null
        status:
          type: string
          enum:
            - draft
            - scheduled
            - sending
            - paused
            - completed
            - cancelled
            - failed
          description: Campaign state.
          example: sending
        pause_reason:
          type:
            - string
            - 'null'
          description: >-
            Why the campaign was paused or cancelled. `null` or empty when it
            wasn't.
          example: null
        total_recipients:
          type: integer
          description: Recipients resolved when the campaign was created.
          example: 120
        sent_count:
          type: integer
          example: 0
        delivered_count:
          type: integer
          example: 0
        read_count:
          type: integer
          example: 0
        failed_count:
          type: integer
          example: 0
        skipped_count:
          type: integer
          example: 0
        batch_size:
          type: integer
          description: Messages sent per batch.
          example: 30
        batch_delay_ms:
          type: integer
          description: Delay between batches, in milliseconds.
          example: 10000
        daily_send_count:
          type: integer
          description: Messages sent today.
          example: 0
        daily_send_date:
          type:
            - string
            - 'null'
          format: date-time
          description: The day `daily_send_count` applies to.
          example: null
        header_media_id:
          type: string
          description: Media ID used for the template's media header. Omitted when not set.
          example: '1234567890123456'
        header_media_type:
          type: string
          description: Type of the header media. Omitted when not set.
          example: image
        created_at:
          type: string
          format: date-time
          example: '2026-10-20T09:15:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-10-20T09:15:00Z'
        started_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When sending started.
          example: '2026-10-20T09:15:00Z'
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the campaign completed, was cancelled or failed.
          example: null
    Error:
      type: object
      description: >-
        An error response: a flat object with one `error` string. Use the HTTP
        status code to decide how to handle the error, and log `error` for
        diagnosis.
      required:
        - error
      properties:
        error:
          type: string
          description: >-
            Human-readable explanation of the error. Branch on the HTTP status
            code rather than on this text.
          example: channel not found
    TemplateComponent:
      type: object
      description: >-
        One template component in Meta's format, for example
        `{"type":"BODY","text":"Hi {{1}}"}`. Common fields are `type` (`HEADER`,
        `BODY`, `FOOTER` or `BUTTONS`), `format`, `text`, `buttons` and
        `example`.
      additionalProperties: true
      properties:
        type:
          type: string
          description: Component type, for example `HEADER`, `BODY`, `FOOTER` or `BUTTONS`.
          example: BODY
        format:
          type: string
          description: Header format, for example `TEXT`, `IMAGE`, `VIDEO` or `DOCUMENT`.
          example: TEXT
        text:
          type: string
          description: >-
            Component text. `BODY` text may use numbered placeholders such as
            `{{1}}`.
          example: Your order {{1}} has shipped.
    GatewayError:
      type: object
      description: The body of an authentication (`401`) or authorization (`403`) error.
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: integer
              description: The HTTP status code, repeated.
              example: 401
            message:
              type: string
              description: What went wrong.
              example: Invalid authentication credentials
  responses:
    Unauthorized:
      description: Missing or invalid `X-Auth-ID` / `X-Auth-Token`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GatewayError'
          examples:
            invalid:
              summary: Invalid credentials
              value:
                error:
                  code: 401
                  message: Invalid authentication credentials
            missing:
              summary: Missing credentials
              value:
                error:
                  code: 401
                  message: >-
                    Authentication required: provide either Authorization header
                    or X-Auth-ID and X-Auth-Token headers
    Forbidden:
      description: >-
        The `{auth_id}` in the path is not the account your credentials belong
        to.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GatewayError'
          example:
            error:
              code: 403
              message: 'Access denied: account ID mismatch'
  securitySchemes:
    AuthID:
      type: apiKey
      in: header
      name: X-Auth-ID
      description: Your Vobiz account Auth ID (`MA_XXXXXXXX`).
    AuthToken:
      type: apiKey
      in: header
      name: X-Auth-Token
      description: Your Vobiz account Auth Token.

````

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