Skip to main content
DELETE
/
mcp-servers
/
{mcpServerId}
/
connections
Delete MCP Server Connection
curl --request DELETE \
  --url https://api.portkey.ai/v1/mcp-servers/{mcpServerId}/connections \
  --header 'x-portkey-api-key: <api-key>'
{
  "success": true
}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

mcpServerId
string
required

MCP Server ID (UUID) or slug

Query Parameters

user_id
string<uuid>

The UUID of the user to disconnect. Required when using a service API key; optional when using a user API key (the user ID is derived from the key if not provided).

workspace_id
string

Workspace ID or slug. Required when using org admin API key; optional when API key is workspace-scoped.

Response

200 - application/json

OK

success
boolean
Example:

true

Last modified on April 14, 2026