> ## 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.

# Unlink WhatsApp Answering Agent

> Stop a WhatsApp number from answering calls. The number stays connected with calling enabled, ready for a new agent.



## OpenAPI

````yaml POST /whatsapp/numbers/{number_id}/unlink-agent
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}/unlink-agent:
    post:
      description: >-
        Stop the number from answering WhatsApp calls. The number stays
        connected in the `calling_enabled` state, ready for a new agent.
      parameters:
        - in: path
          name: number_id
          required: true
          schema:
            type: string
          description: The `number_id` returned when the number was connected
      responses:
        '200':
          description: Agent unlinked
          content:
            application/json:
              example:
                number_id: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
                state: calling_enabled
        '404':
          description: number not found for this account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    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.