> ## 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 Conversations API — List & Paginate Message Threads

> Retrieve and paginate WhatsApp conversation threads on Vobiz - build inbox views, sync message history to your CRM, or audit logs with cursor-based pagination.

**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. Get your credentials from [console.vobiz.ai](https://console.vobiz.ai).

> [!NOTE]
>
> A **conversation** is a thread between one of your WhatsApp channels and one customer contact. Each conversation window lasts 24 hours from when it starts, with a customer message or a template you send. Messages are cursor-paginated - pass the `next_cursor` from the previous response to fetch the next page of older messages.

## List conversations

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

Returns your inbox threads across all channels, one per channel and contact (the latest conversation of each), most recently active first. Each row carries the contact's name and number and a preview of the latest message.

| Query param | Default | Description |
| - | - | - |
| `page` | `1` | Page number, starting at `1` |
| `limit` | `20` | Conversations per page, from `1` to `100` |
| `search` | - | Return only threads whose contact name or phone number contains this text (case-insensitive) |

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

```json 200 OK theme={null}
{
  "items": [
    {
      "id": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
      "account_id": "MA_XXXXXXXX",
      "channel_id": "0a8f3feb-9598-47f2-8a6c-df1aeb306ae1",
      "contact_id": "4f9c2a18-3e6b-4d2f-8b1a-9e7c5d3f1a02",
      "category": "service",
      "is_billable": false,
      "started_at": "2026-10-16T13:25:41Z",
      "expires_at": "2026-10-17T13:25:41Z",
      "status": "open",
      "contact_name": "Priya Sharma",
      "contact_phone_number": "+919876543210",
      "last_message_preview": "Thanks, that works for me.",
      "last_message_at": "2026-10-16T21:23:51Z"
    }
  ],
  "total": 1,
  "page": 1,
  "limit": 20,
  "has_more": false
}
```

### Conversation object

**id** `string`

Unique conversation identifier (UUID). Use it with [List messages in a conversation](#list-messages-in-a-conversation).

**account\_id** `string`

Your Vobiz account ID (`MA_XXXXXXXX`).

**channel\_id** `string`

UUID of the channel the conversation belongs to.

**contact\_id** `string`

UUID of the contact on the other side of the conversation.

**category** `string`

WhatsApp conversation category: `service`, `marketing`, `utility`, or `authentication`.

**is\_billable** `boolean`

`true` for a conversation you opened by sending, `false` for one opened by an inbound message.

**started\_at** `string`

Conversation start timestamp (RFC3339 UTC).

**expires\_at** `string`

When the conversation window closes (RFC3339 UTC).

**status** `string`

Conversation state, for example `open`.

**contact\_name** `string`

The contact's name. Omitted when unknown.

**contact\_phone\_number** `string`

The contact's phone number.

**last\_message\_preview** `string`

Short preview of the latest message in the thread.

**last\_message\_at** `string`

When the latest message was sent or received (RFC3339 UTC).

## List messages in a conversation

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

Returns the message history between the conversation's channel and contact, across all of their conversation windows. The first page holds the newest messages, and each page lists its messages oldest first. To load older messages, pass `next_cursor` as `cursor` until `has_more` is `false`.

**limit** `integer` (default: 50)

Messages per page, from `1` to `100`. Default `50`.

**cursor** `string`

The `next_cursor` from the previous page. Returns messages older than it.

```bash First page theme={null}
curl -X GET \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Conversation/c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04/Message/?limit=50" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```bash Next page theme={null}
curl -X GET \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Conversation/c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04/Message/?limit=50&cursor=1d3f5a7c-9e2b-4c6d-8f0a-3b5d7f9a1c24" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```json 200 OK theme={null}
{
  "items": [
    {
      "id": "1d3f5a7c-9e2b-4c6d-8f0a-3b5d7f9a1c24",
      "account_id": "MA_XXXXXXXX",
      "channel_id": "0a8f3feb-9598-47f2-8a6c-df1aeb306ae1",
      "contact_id": "4f9c2a18-3e6b-4d2f-8b1a-9e7c5d3f1a02",
      "conversation_id": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
      "direction": "inbound",
      "type": "text",
      "status": "delivered",
      "content": "{\"from\":\"919876543210\",\"id\":\"wamid.HBgMOTE5ODc2NTQzMjEwFQIAEhgUM0E5RjJCN0MxRDRFNUY2QTdCOEMA\",\"timestamp\":\"1792165431\",\"type\":\"text\",\"text\":{\"body\":\"Is my order on the way?\"}}",
      "meta_message_id": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAEhgUM0E5RjJCN0MxRDRFNUY2QTdCOEMA",
      "meta_error_code": null,
      "meta_error_description": null,
      "created_at": "2026-10-16T21:20:31Z"
    },
    {
      "id": "9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01",
      "account_id": "MA_XXXXXXXX",
      "channel_id": "0a8f3feb-9598-47f2-8a6c-df1aeb306ae1",
      "contact_id": "4f9c2a18-3e6b-4d2f-8b1a-9e7c5d3f1a02",
      "conversation_id": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
      "direction": "outbound",
      "type": "text",
      "status": "read",
      "content": "{\"channel_id\":\"0a8f3feb-9598-47f2-8a6c-df1aeb306ae1\",\"waba_id\":\"\",\"to\":\"+919876543210\",\"type\":\"text\",\"text\":{\"body\":\"Yes, it ships today.\"}}",
      "meta_message_id": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgSQzVGNkE3QjhDOUQwRTFGMkEzAA==",
      "meta_error_code": null,
      "meta_error_description": null,
      "created_at": "2026-10-16T21:23:51Z"
    }
  ],
  "has_more": true,
  "next_cursor": "1d3f5a7c-9e2b-4c6d-8f0a-3b5d7f9a1c24"
}
```

### Message object

**id** `string`

Unique message identifier (UUID).

**account\_id** `string`

Your Vobiz account ID (`MA_XXXXXXXX`).

**channel\_id** `string`

UUID of the channel the message was sent or received on.

**contact\_id** `string`

UUID of the contact the message is with.

**conversation\_id** `string | null`

UUID of the conversation the message belongs to.

**direction** `string`

Message direction: `inbound` or `outbound`.

**type** `string`

Message type, e.g. `text`, `template`, `image`, `document`. Inbound messages can be any WhatsApp message type.

**status** `string`

Delivery status: `pending`, `sent`, `delivered`, `read`, or `failed`. Outbound messages start as `pending`; inbound messages are `delivered`.

**content** `string`

The message as a JSON-encoded string. For outbound messages it is the send request you made; for inbound messages it is the WhatsApp message object. Parse it to read the body and media fields.

**meta\_message\_id** `string`

WhatsApp message ID (`wamid…`). Status webhooks for this message carry it as `statuses[].id`.

**meta\_error\_code** `string | null`

Meta's error code when the message failed, otherwise `null`.

**meta\_error\_description** `string | null`

Meta's error detail when the message failed, otherwise `null`.

**created\_at** `string`

Message timestamp (RFC3339 UTC).


## OpenAPI

````yaml openapi-whatsapp.yaml GET /api/v1/Account/{auth_id}/WhatsApp/Conversation/
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/Conversation/:
    parameters:
      - $ref: '#/components/parameters/AuthId'
    get:
      tags:
        - Conversations
      summary: List conversations
      description: >-
        Returns your inbox threads, one per channel and contact (the latest
        conversation of each), most recently active first. Each row carries the
        contact's name and number and a preview of the latest message.
      operationId: whatsapp-list-conversations
      parameters:
        - $ref: '#/components/parameters/Page'
        - name: limit
          in: query
          description: >-
            Conversations per page, from `1` to `100`. Defaults to `20`; a value
            outside that range also returns `20` conversations.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: search
          in: query
          description: >-
            Return only threads whose contact name or phone number contains this
            text (case-insensitive).
          schema:
            type: string
            example: priya
      responses:
        '200':
          description: A page of conversations.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationList'
              example:
                items:
                  - id: c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04
                    account_id: MA_XXXXXXXX
                    channel_id: 0a8f3feb-9598-47f2-8a6c-df1aeb306ae1
                    contact_id: 4f9c2a18-3e6b-4d2f-8b1a-9e7c5d3f1a02
                    category: service
                    is_billable: false
                    started_at: '2026-10-16T13:25:41Z'
                    expires_at: '2026-10-17T13:25:41Z'
                    status: open
                    contact_name: Priya Sharma
                    contact_phone_number: '+919876543210'
                    last_message_preview: Thanks, that works for me.
                    last_message_at: '2026-10-16T21:23:51Z'
                total: 1
                page: 1
                limit: 20
                has_more: false
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/ServerError'
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
    Page:
      name: page
      in: query
      description: Page number, starting at `1`. Defaults to `1`.
      schema:
        type: integer
        minimum: 1
        default: 1
  schemas:
    ConversationList:
      type: object
      required:
        - items
        - total
        - page
        - limit
        - has_more
      properties:
        items:
          type: array
          description: >-
            Conversations, most recently active first. Empty array when none
            match.
          items:
            $ref: '#/components/schemas/Conversation'
        total:
          type: integer
          description: Number of conversations that match.
          example: 12
        page:
          type: integer
          description: The page number.
          example: 1
        limit:
          type: integer
          description: The page size.
          example: 20
        has_more:
          type: boolean
          description: Whether another page follows.
          example: false
    Conversation:
      type: object
      description: >-
        The latest conversation between one channel and one contact. A
        conversation is a 24-hour window that starts with a customer message or
        a template you send; the list returns one row per channel and contact.
      required:
        - id
        - account_id
        - channel_id
        - contact_id
        - category
        - is_billable
        - started_at
        - expires_at
        - status
      properties:
        id:
          type: string
          format: uuid
          description: Conversation ID. Use it with `GET /Conversation/{id}/Message/`.
          example: c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04
        account_id:
          type: string
          example: MA_XXXXXXXX
        channel_id:
          type: string
          format: uuid
          example: 0a8f3feb-9598-47f2-8a6c-df1aeb306ae1
        contact_id:
          type: string
          format: uuid
          example: 4f9c2a18-3e6b-4d2f-8b1a-9e7c5d3f1a02
        category:
          type: string
          enum:
            - service
            - marketing
            - utility
            - authentication
          description: WhatsApp conversation category.
          example: service
        is_billable:
          type: boolean
          description: >-
            `true` for a conversation you opened by sending, which Vobiz charged
            for. `false` for one opened by an inbound message.
          example: true
        started_at:
          type: string
          format: date-time
          example: '2026-10-16T13:25:41Z'
        expires_at:
          type: string
          format: date-time
          description: When the conversation window closes.
          example: '2026-10-17T13:25:41Z'
        status:
          type: string
          description: Conversation state, for example `open`.
          example: open
        contact_name:
          type: string
          description: The contact's name. Omitted when unknown.
          example: Priya Sharma
        contact_phone_number:
          type: string
          description: The contact's phone number.
          example: '+919876543210'
        last_message_preview:
          type: string
          description: Short preview of the latest message in the thread.
          example: Thanks, that works for me.
        last_message_at:
          type: string
          format: date-time
          description: When the latest message was sent or received.
          example: '2026-10-16T21:23:51Z'
    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
    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
  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'
    ServerError:
      description: >-
        The request couldn't be completed. Retry it, and contact Vobiz support
        if the error persists.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  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.