/v1/oauth/workspaces/{workspace_id}/connections/{grant_id}AuthDisconnect a client on behalf of the workspace
Revokes the whole grant family for a grant made by any member of this workspace — the lever a workspace owner needs when an employee leaves and their MCP client is still running. Requires `workspace.connection.revoke`.
Path parameters
workspace_id*string · uuidId of the workspace.
grant_id*string · uuidId of the grant.
Response · 204
Disconnected.
Example
Request
DELETE https://api.platform-auth.productcraft.co/v1/oauth/workspaces/{workspace_id}/connections/{grant_id}
Authorization: Bearer YOUR_TOKENimport { PlatformAuth } from "@productcraft/platform-auth";
// Reads PRODUCTCRAFT_API_KEY from the environment; administration
// calls take a person's session: { auth: { type: "bearer", token } }
const platform = new PlatformAuth();
await platform.oauth.workspaces.connections.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");platform.oauth.workspaces.connections.delete(workspaceId, grantId, options?): void