Skip to main content
DELETE
Disconnect a server

Authorizations

X-Api-Key
string
header
required

Personal or workspace LangSmith API key. Personal keys identify the user. Workspace keys are limited to server listing and MCP calls and must also supply the end user's OIDC token or X-LangSmith-Identity.

X-Tenant-Id
string
header
required

Workspace UUID. This header selects a workspace; it does not authenticate the caller.

Path Parameters

id
string
required

Registered server ID or built-in integration key

Query Parameters

credential_owner_type
enum<string>

Owner whose credential to delete instead of the caller's. Requires a user credential; tool calls cannot name an owner.

Available options:
agent_identity,
workspace
credential_owner_id
string<uuid>

Agent environment ID, from GET /api/v1/agents/{agent_id}, or the workspace ID for workspace. Sent with credential_owner_type.

Response

Disconnected, or already disconnected.