> ## 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 Numbers API — Search, Purchase & BYON Verification

> Search and purchase WhatsApp-capable numbers on Vobiz, or verify and connect an existing number via BYON - OTP-based ownership verification included.

**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. Send `Content-Type: application/json` on requests with a body. Get your credentials from [console.vobiz.ai](https://console.vobiz.ai).

## BYON verification flow

If you already have a WhatsApp Business number, the BYON (Bring Your Own Number) flow verifies ownership with a one-time code. A `bring_your_own` channel shows `verification_status` `pending` until you complete it.

**1. Connect**

Connect the number with [Create Channel](https://www.vobiz.ai/docs/whatsapp/api/channels.md#create-whatsapp-channel), setting `number_onboarding_mode` to `bring_your_own`. The channel starts with `verification_status` `pending`.

**2. Request a code**

Send the same phone number, in the same E.164 format, and select `sms` or `voice` verification with the [verify](#verify-byon-step-1) endpoint. The 6-digit code is valid for 10 minutes.

**3. Confirm the code**

Submit the code to the [confirm](#confirm-byon-verification-step-2) endpoint. The channel on that number moves to `verification_status` `verified`.

## List available numbers

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

Search Vobiz inventory for WhatsApp-capable phone numbers you can buy, with their fees. Buy one with [Create number order](#create-number-order).

| Query param | Required | Description |
| - | - | - |
| `country` | No | ISO country code (e.g. `IN`). Omit it to list all inventory. |
| `region` | No | State or region filter (e.g. `Karnataka`). |

```bash cURL theme={null}
curl -X GET \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Number/Availability/?country=IN&region=Karnataka" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```json 200 OK theme={null}
{
  "items": [
    {
      "e164": "+918012345678",
      "country": "IN",
      "region": "Karnataka",
      "setup_fee": 100,
      "monthly_fee": 500,
      "currency": "INR"
    }
  ]
}
```

`items` is an empty array when no numbers match. Pass a number's `e164` as `preferred_number` to buy it.

## Create number order

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

Buy `preferred_number` from Vobiz inventory. Returns `201 Created` with the completed order. Then connect the number with [Embedded signup](https://www.vobiz.ai/docs/whatsapp/api/channels.md#embedded-signup) (with `number_provider` set to `vobiz`) or [Create Channel](https://www.vobiz.ai/docs/whatsapp/api/channels.md#create-whatsapp-channel) (with `number_onboarding_mode` set to `buy_from_vobiz` and the order `id` as `number_order_id`).

> [!WARNING]
>
> This buys a real number that is billed to your account. Run it only with your own credentials, when you mean to buy the number.

**country\_code** `string` *required*

ISO country code of the number (e.g. `IN`).

**number\_type** `string` *required*

Number type, for example `local`.

**preferred\_number** `string` *required*

The number to buy, in E.164 format, from [List available numbers](#list-available-numbers).

**region** `string`

State or region of the number, stored on the order.

**currency** `string` (default: USD)

Billing currency, for example `INR` or `USD`. Defaults to `USD`.

```bash cURL theme={null}
curl -X POST \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Number/Order/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "country_code": "IN",
    "region": "Karnataka",
    "number_type": "local",
    "preferred_number": "+918012345678",
    "currency": "INR"
  }'
```

```json 201 Created theme={null}
{
  "id": "5c2e8a1f-3b7d-4e9a-8c6f-1d2b3a4c5e6f",
  "account_id": "MA_XXXXXXXX",
  "country_code": "IN",
  "region": "Karnataka",
  "number_type": "local",
  "selected_phone_number": "+918012345678",
  "provider_order_id": "2f6b8d0a-7c1e-4a3b-9d5f-8e0a2c4b6d18",
  "status": "completed",
  "monthly_cost": 500,
  "setup_cost": 100,
  "currency": "INR",
  "created_at": "2026-10-20T09:15:00Z",
  "updated_at": "2026-10-20T09:15:00Z"
}
```

If a required field is missing, or the purchase can't complete (for example, the number is no longer available or your balance is too low), the request returns `400` with an `error` message.

### Number order object

**id** `string`

Order ID (UUID). Pass it as `number_order_id` when you create the channel.

**account\_id** `string`

Your Vobiz account ID (`MA_XXXXXXXX`).

**country\_code** `string`

ISO country code, uppercased.

**region** `string`

State or region for the number.

**number\_type** `string`

Number type, e.g. `local`.

**selected\_phone\_number** `string`

The number you bought, in E.164 format.

**provider\_order\_id** `string`

The inventory purchase reference.

**provider\_name** `string`

Name of the inventory the number was bought from.

**status** `string`

Order state. A successful order returns `completed`.

**monthly\_cost** `number`

Recurring monthly cost.

**setup\_cost** `number`

One-time setup cost.

**currency** `string`

Currency of the costs.

**failure\_reason** `string`

Why the order failed. Omitted when it did not.

**created\_at** `string`

Creation timestamp (RFC3339 UTC).

**updated\_at** `string`

Last update timestamp (RFC3339 UTC).

## Verify BYON - step 1

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

Start ownership verification for a number you already own. Choose `sms` or `voice` as the delivery method. Vobiz issues a 6-digit code that is valid for 10 minutes. Starting again for the same number replaces the earlier code. Returns `200 OK`.

**phone\_number** `string` *required*

Phone number to verify, in E.164 format. Use the same format as on the channel.

**verification\_method** `string` *required*

Code delivery method: `sms` or `voice`. Case-insensitive.

```bash cURL theme={null}
curl -X POST \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Number/BringYourOwn/Verify/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "phone_number": "+919876543210",
    "verification_method": "sms"
  }'
```

```json 200 OK theme={null}
{
  "phone_number": "+919876543210",
  "status": "otp_sent",
  "method": "sms"
}
```

## Confirm BYON verification - step 2

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

Submit the code from step 1 to complete verification. On success, the number is verified and a channel on that number moves to `verification_status` `verified`. A wrong or expired code returns `400`. Returns `200 OK`.

**phone\_number** `string` *required*

The number you started verifying, exactly as you sent it in step 1.

**otp\_code** `string` *required*

The 6-digit code from step 1.

```bash cURL theme={null}
curl -X POST \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/Number/BringYourOwn/Confirm/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "phone_number": "+919876543210",
    "otp_code": "123456"
  }'
```

```json 200 OK theme={null}
{
  "phone_number": "+919876543210",
  "status": "verified"
}
```


## OpenAPI

````yaml openapi-whatsapp.yaml GET /api/v1/Account/{auth_id}/WhatsApp/Number/Availability/
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/Number/Availability/:
    parameters:
      - $ref: '#/components/parameters/AuthId'
    get:
      tags:
        - Numbers
      summary: List available numbers
      description: >-
        Returns up to 50 numbers in Vobiz inventory that you can buy for
        WhatsApp, with their fees. Buy one with `POST /Number/Order/`.
      operationId: whatsapp-list-available-numbers
      parameters:
        - name: country
          in: query
          description: >-
            ISO country code in uppercase, for example `IN`. Omit it to list
            every country.
          schema:
            type: string
            example: IN
        - name: region
          in: query
          description: >-
            Region exactly as it appears in `region`, for example `Karnataka` or
            `92 Series`. The match is case-sensitive.
          schema:
            type: string
            example: Karnataka
      responses:
        '200':
          description: Numbers you can buy. Empty `items` when none match.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailableNumberList'
              example:
                items:
                  - e164: '+918012345678'
                    country: IN
                    region: Karnataka
                    setup_fee: 100
                    monthly_fee: 500
                    currency: INR
                  - e164: '+917912345678'
                    country: IN
                    region: Gujarat
                    setup_fee: 0
                    monthly_fee: 600
                    currency: INR
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '502':
          $ref: '#/components/responses/BadGateway'
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:
    AvailableNumberList:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          description: Up to 50 numbers you can buy. Empty array when none match.
          items:
            $ref: '#/components/schemas/AvailableNumber'
    AvailableNumber:
      type: object
      required:
        - e164
        - country
        - region
        - setup_fee
        - monthly_fee
        - currency
      properties:
        e164:
          type: string
          description: The number in E.164 format. Pass it as `preferred_number` to buy it.
          example: '+918012345678'
        country:
          type: string
          description: ISO country code, in uppercase.
          example: IN
        region:
          type: string
          description: >-
            State, region or series the number belongs to, for example
            `Karnataka` or `92 Series`.
          example: Karnataka
        setup_fee:
          type: number
          description: One-time setup fee.
          example: 100
        monthly_fee:
          type: number
          description: Recurring monthly fee.
          example: 500
        currency:
          type: string
          description: Currency of the fees.
          example: INR
    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'
    BadGateway:
      description: The number inventory couldn't be reached. Retry the request later.
      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.