Skip to content
Disconnect a group integration

Disconnect a group integration

Disconnect a group's own account from an integration.

DELETE/api/v1/groups/:groupId/connections/:integration

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/groups/team_42/connections/github", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();

Use your server-side apiKey. Replace the example IDs.

Path parameters#

groupIdstringrequired

Your application's group ID, URL-encoded. At most 512 characters, with no surrounding whitespace or null bytes.

integrationstringrequired

An integration key from GET /integrations, such as github or notion.

Responses#

Returns deleted: true. Disconnecting an integration the group has no connection to also succeeds.

200 response
{
  "deleted": true
}
More about this endpoint

Smallworld removes its stored credentials for the group and cancels the group's in-flight connect sessions for the integration.

Members without a connection of their own lose the integration from their next tool call; a call waiting for approval on the group's connection ends interrupted with errorCode integration_connection_stale. Members' own connections are not affected.