> ## 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 Calls API — Initiate & Manage Business Voice Calls

> Initiate and manage WhatsApp Business voice calls through Vobiz - WebRTC-based signaling for inbound, outbound, and call state management.

> [!NOTE]
>
> WhatsApp Business Calling runs over WhatsApp's WebRTC infrastructure, not the PSTN. The recipient's device must support WhatsApp voice calls and be connected to the internet.

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

These are WhatsApp calls under `/WhatsApp/Call/`. They are separate from the Voice API's [`/Account/{auth_id}/Call/`](https://www.vobiz.ai/docs/call/make-call), which places PSTN and SIP calls.

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

## Endpoints overview

| Method | Endpoint | Description |
| - | - | - |
| `POST` | `/api/v1/Account/{auth_id}/WhatsApp/Call/` | Initiate a WhatsApp call |
| `POST` | `/api/v1/Account/{auth_id}/WhatsApp/Call/Action/` | Manage a call (pre-accept/accept/reject/terminate) |
| `GET` | `/api/v1/Account/{auth_id}/WhatsApp/Call/Log/` | List call history |

## Initiate a WhatsApp call

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

Place a business-initiated WhatsApp voice call from one of your channels. Provide your WebRTC SDP offer. Returns `201 Created` when WhatsApp accepts the call request.

> [!WARNING]
>
> This rings a real person. Use your own credentials and confirm the recipient before you place the call.

> [!NOTE]
>
> The response carries the call ID, not an SDP answer. The recipient's SDP answer arrives later, through the `call.*` [webhook events](https://www.vobiz.ai/docs/whatsapp/webhooks/events.md), when they answer.

### Request body

| Field | Required | Description |
| - | - | - |
| `channel_id` | Yes | Channel (UUID) to call from |
| `to` | Yes | The WhatsApp user to call, in E.164 format (e.g. `+919876543210`). Spaces, hyphens, and parentheses are removed, and a missing `+` is added. |
| `sdp_offer` | Yes | Your WebRTC SDP offer string |

```bash cURL theme={null}
curl -X POST \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Call/" \
  -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",
    "to": "+919876543210",
    "sdp_offer": "v=0\r\no=- 0 0 IN IP4 0.0.0.0\r\n..."
  }'
```

```json 201 Created theme={null}
{
  "call_id": "wacid.HBgMOTE5ODc2NTQzMjEwFQIAEhggQzVGNkE3QjhDOUQwRTFGMkEz",
  "from": "+14155550100",
  "to": "+919876543210",
  "status": "initiated",
  "direction": "outbound"
}
```

| Field | Description |
| - | - |
| `call_id` | WhatsApp's call ID. Use it as `call_id` in [Manage call](#manage-call-actions). |
| `from` | The channel's phone number |
| `to` | The normalized number you called |
| `status` | Always `initiated` |
| `direction` | Always `outbound` |

A missing field, an unknown channel, or a call WhatsApp rejects returns `400`.

## Manage call (actions)

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

Control an active or incoming call on one of your channels. Pass the `channel_id`, the `call_id`, and one of the four actions. For `accept` and `pre_accept`, include your WebRTC SDP answer in the `sdp` field. Returns `200 OK` when WhatsApp accepts the action, or `404` when the channel or call isn't found.

### Request body

| Field | Required | Description |
| - | - | - |
| `channel_id` | Yes | Channel (UUID) the call is on |
| `call_id` | Yes | WhatsApp's call ID (`meta_call_id` in call logs and call events) |
| `action` | Yes | `pre_accept`, `accept`, `reject`, or `terminate` |
| `sdp` | Conditional | Your WebRTC SDP answer. Send it with `accept` and `pre_accept` |

| Action | Description |
| - | - |
| `pre_accept` | Send your SDP answer early, so media connects as soon as you accept |
| `accept` | Answer an incoming call (send SDP answer) |
| `reject` | Decline an incoming call |
| `terminate` | End a connected call |

```bash Accept an incoming call theme={null}
curl -X POST \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Call/Action/" \
  -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",
    "call_id": "wacid.HBgMOTE5ODc2NTQzMjEwFQIAEhggQzVGNkE3QjhDOUQwRTFGMkEz",
    "action": "accept",
    "sdp": "v=0\r\no=- 0 0 IN IP4 0.0.0.0\r\n..."
  }'
```

```bash Terminate a call theme={null}
curl -X POST \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Call/Action/" \
  -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",
    "call_id": "wacid.HBgMOTE5ODc2NTQzMjEwFQIAEhggQzVGNkE3QjhDOUQwRTFGMkEz",
    "action": "terminate"
  }'
```

```json 200 OK theme={null}
{
  "call_id": "wacid.HBgMOTE5ODc2NTQzMjEwFQIAEhggQzVGNkE3QjhDOUQwRTFGMkEz",
  "action": "accept",
  "success": true
}
```

## List call logs

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

Returns a paginated history of WhatsApp calls - inbound and outbound, newest first - with duration, outcome, and participant details.

| Query param | Default | Description |
| - | - | - |
| `page` | `1` | Page number, starting at `1` |
| `limit` | `25` | Page size, from `1` to `100` |
| `direction` | - | `inbound` or `outbound` |
| `status` | - | Filter by call status: `initiated`, `ringing`, `pre_accepted`, `accepted`, `rejected`, `terminated`, `failed`, or `missed` |
| `channel_id` | - | Return only calls on this channel (UUID) |
| `phone_number` | - | Return only calls to or from this number. Spaces, hyphens, and parentheses are removed, and a missing `+` is added before matching. |

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

```json 200 OK theme={null}
{
  "items": [
    {
      "id": "e6f70819-2031-4b4c-95d6-e7f809102233",
      "account_id": "MA_XXXXXXXX",
      "channel_id": "0a8f3feb-9598-47f2-8a6c-df1aeb306ae1",
      "meta_call_id": "wacid.HBgMOTE5ODc2NTQzMjEwFQIAEhggQzVGNkE3QjhDOUQwRTFGMkEz",
      "direction": "outbound",
      "from_number": "+14155550100",
      "to_number": "+919876543210",
      "status": "terminated",
      "call_type": "voice",
      "started_at": "2026-10-25T14:00:00Z",
      "answered_at": "2026-10-25T14:00:04Z",
      "ended_at": "2026-10-25T14:03:05Z",
      "duration_seconds": 181,
      "created_at": "2026-10-25T14:00:00Z",
      "updated_at": "2026-10-25T14:03:05Z"
    }
  ],
  "total": 1,
  "page": 1,
  "limit": 25,
  "has_more": false
}
```

## Call log object

| Field | Type | Description |
| - | - | - |
| `id` | UUID | Call log ID |
| `account_id` | string | Owning account (`MA_XXXXXXXX`) |
| `channel_id` | UUID | Channel the call belongs to |
| `meta_call_id` | string | WhatsApp's call ID. Omitted when not known. |
| `direction` | string | `inbound` or `outbound` |
| `from_number` | string | Caller number (E.164) |
| `to_number` | string | Called number (E.164) |
| `status` | string | `initiated`, `ringing`, `pre_accepted`, `accepted`, `rejected`, `terminated`, `failed`, or `missed` |
| `call_type` | string | Call type, for example `voice` |
| `offer_sdp` | string | WebRTC SDP offer. Omitted when not recorded. |
| `answer_sdp` | string | WebRTC SDP answer. Omitted when not recorded. |
| `ice_candidates` | any | ICE candidate data, as received. Omitted when not recorded. |
| `started_at` | RFC3339 | Call start (UTC) |
| `answered_at` | RFC3339 | Call answered (UTC) |
| `ended_at` | RFC3339 | Call ended (UTC) |
| `duration_seconds` | int | Call duration in seconds |
| `hangup_cause` | string | Why the call ended. Omitted when not known. |
| `metadata` | any | Additional call metadata. Omitted when there is none. |
| `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/Call/
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/Call/:
    parameters:
      - $ref: '#/components/parameters/AuthId'
    post:
      tags:
        - Calls
      summary: Place a call
      description: >-
        Places a business-initiated WhatsApp voice call from one of your
        channels. WhatsApp calls run over WebRTC, not the PSTN, so you send your
        SDP offer and receive the recipient's SDP answer later, through the
        `call.*` webhook events, when they answer. This rings a real person; use
        your own credentials and confirm the recipient first.
      operationId: whatsapp-initiate-call
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InitiateCallRequest'
            example:
              channel_id: 0a8f3feb-9598-47f2-8a6c-df1aeb306ae1
              to: '+919876543210'
              sdp_offer: "v=0\r\no=- 0 0 IN IP4 0.0.0.0\r\n..."
      responses:
        '201':
          description: WhatsApp accepted the call request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InitiateCallResponse'
              example:
                call_id: wacid.HBgMOTE5ODc2NTQzMjEwFQIAEhggQzVGNkE3QjhDOUQwRTFGMkEz
                from: '+14155550100'
                to: '+919876543210'
                status: initiated
                direction: outbound
        '400':
          description: >-
            A required field is missing, the channel wasn't found, or WhatsApp
            rejected the call.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: channel_id, to, and sdp_offer are required
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
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:
    InitiateCallRequest:
      type: object
      required:
        - channel_id
        - to
        - sdp_offer
      properties:
        channel_id:
          type: string
          format: uuid
          description: The channel to call from.
          example: 0a8f3feb-9598-47f2-8a6c-df1aeb306ae1
        to:
          type: string
          description: >-
            The WhatsApp user to call, in E.164 format. Spaces, hyphens and
            parentheses are removed and a missing `+` is added.
          example: '+919876543210'
        sdp_offer:
          type: string
          description: Your WebRTC SDP offer.
          example: "v=0\r\no=- 0 0 IN IP4 0.0.0.0\r\n..."
    InitiateCallResponse:
      type: object
      required:
        - call_id
        - from
        - to
        - status
        - direction
      properties:
        call_id:
          type: string
          description: WhatsApp's call ID. Use it as `call_id` in `POST /Call/Action/`.
          example: wacid.HBgMOTE5ODc2NTQzMjEwFQIAEhggQzVGNkE3QjhDOUQwRTFGMkEz
        from:
          type: string
          description: The channel's phone number.
          example: '+14155550100'
        to:
          type: string
          description: The normalized number you called.
          example: '+919876543210'
        status:
          type: string
          description: Always `initiated`.
          example: initiated
        direction:
          type: string
          description: Always `outbound`.
          example: outbound
    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
    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.