---
title: "Disconnect the owner's WhatsApp route from a platform number"
method: POST
path: "/api/mcp/tools/detach_agent_whatsapp"
tags: ["tools"]
---

# Disconnect the owner's WhatsApp route from a platform number

`POST /api/mcp/tools/detach_agent_whatsapp`

## Request

- Base URL: `https://finestructure.ai`
- URL: `https://finestructure.ai/api/mcp/tools/detach_agent_whatsapp`
- Auth: HTTP bearer

Disconnect the owner's WhatsApp route from a platform number. Removes only this account's route; other accounts sharing the number keep theirs.

## Request body

- object
  - `phone_number_id` string, required: The number to disconnect, from get_agent_whatsapp.

## Response `200`

Tool executed successfully

- ToolResult
  - `ok` boolean, required
  - `tool` string, required
  - `result` object, required

## Other responses

- `400`: Invalid arguments for this tool
- `401`: Missing or invalid bearer token
- `402`: Not enough credits on the account
- `403`: Token scope does not permit this tool
- `404`: Unknown tool name
- `429`: Rate limit exceeded, retry after the indicated delay
- `500`: Internal error while executing the tool

---

[API](https://skmtc.dev/finestructure/apis/fine-structure-api.md) · [All operations](https://skmtc.dev/finestructure/apis/fine-structure-api/llms.txt) · [OpenAPI document](https://skmtc.dev/finestructure/apis/fine-structure-api/revisions/02c50ed5fd70?raw)
