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

# Enable WhatsApp Calling

> Turn on WhatsApp calling for a connected number and point it at Bolna. Retry after fixing the reason Meta returned if it fails.

> [!NOTE]
>
> Meta only enables calling when your business portfolio's messaging limit is high enough. Completing Meta business verification raises it. If calling can't be enabled, the response is `422` with the reason in `last_error`. That includes a number already on Bolna as a regular phone number, which is refused before anything changes on Meta.

## Next steps

Once the number is `calling_enabled`, [choose the agent that answers it](https://www.bolna.ai/docs/api-reference/whatsapp/map_agent.md).


## OpenAPI

````yaml POST /whatsapp/numbers/{number_id}/provision
openapi: 3.1.0
info:
  title: Bolna API
  description: >-
    Use and leverage Bolna Voice AI using APIs through HTTP requests from any
    language in your applications and workflows.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.bolna.ai
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: SIP trunks
    description: >-
      Bring-your-own-carrier SIP trunks, their gateways, carrier IPs and
      numbers.
paths:
  /whatsapp/numbers/{number_id}/provision:
    post:
      description: >-
        Turn on WhatsApp calling for a connected number and point it at Bolna.
        On success the number moves to `calling_enabled`. If calling can't be
        enabled, the number moves to `error` with the reason in `last_error`,
        and you can call this endpoint again once the cause is fixed. A number
        that is already on Bolna as a regular phone number, from another
        telephony provider or on another account, cannot be provisioned, and the
        request returns `422` before anything changes on Meta.
      parameters:
        - in: path
          name: number_id
          required: true
          schema:
            type: string
          description: The `number_id` returned when the number was connected
      responses:
        '200':
          description: Calling enabled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatsappProvisionResponse'
              example:
                state: calling_enabled
                last_error: null
        '404':
          description: number not found for this account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            the number is already `live`; unlink its agent before provisioning
            again
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: >-
            Calling could not be enabled, either because Meta refused or because
            the number is already on Bolna as a regular phone number. The number
            is now in the `error` state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatsappProvisionResponse'
              example:
                state: error
                last_error: <reason, usually returned by Meta>
components:
  schemas:
    WhatsappProvisionResponse:
      type: object
      properties:
        state:
          type: string
          enum:
            - calling_enabled
            - error
          description: The number's state after the attempt.
        last_error:
          type: string
          nullable: true
          description: >-
            Why enabling calling failed (usually Meta's reason), otherwise
            `null`.
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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