---
title: "Disconnect"
method: POST
path: "/api/v1/phone/hosted-agent-config/mcp-servers/{connection_id}/oauth/disconnect"
tags: ["Hosted Call Agent"]
---

# Disconnect

`POST /api/v1/phone/hosted-agent-config/mcp-servers/{connection_id}/oauth/disconnect`

## Request

- Base URL: `https://api.inkbox.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.inkbox.ai/api/v1/phone/hosted-agent-config/mcp-servers/{connection_id}/oauth/disconnect`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Path parameters

- `connection_id` string, uuid, required

## Headers

- `Idempotency-Key` string, required

## Request body

- HostedMcpOAuthRequest
  - `expected_version` integer, required

## Response `200`

Successful Response

- HostedMcpTestResult
  - `success` boolean, required
  - `code` string, required
  - `config_version` integer, required

## Other responses

- `422`: Validation Error
- `4XX`: Client error with Support Agent information.
- `5XX`: Server error with Support Agent information.

## Changes

- **2026-10-31** `8619b94dd03e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/inkbox/apis/inkbox-api/changes/api/v1/phone/hosted-agent-config/mcp-servers/:connection_id/oauth/disconnect/post.md)

---

[API](https://skmtc.dev/inkbox/apis/inkbox-api.md) - [All operations](https://skmtc.dev/inkbox/apis/inkbox-api/llms.txt) - [OpenAPI document](https://skmtc.dev/inkbox/apis/inkbox-api/revisions/7e848337e8bf?raw)
