Skip to content
Get a group connection

Get a group connection

Read a group's own connection state for an integration.

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

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/groups/team_42/connections/github", {
  method: "GET",
  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#

The group's own account, which members without a connection of their own use. Secret credential values are never returned.

200 response
{
  "integration": "github",
  "userId": null,
  "groupId": "team_42",
  "source": "group",
  "overridesGroup": false,
  "authScheme": "api_key",
  "status": "connected",
  "accountId": "654321",
  "accountName": "support-bot",
  "workspaceId": null,
  "connectedAt": "2026-10-10T12:00:01.000Z",
  "updatedAt": "2026-10-10T12:00:01.000Z",
  "error": null
}
More about this endpoint

A group without a connection to the integration returns status not_connected with nullable account fields.

needs_reauth means the group should be connected again with a new connect session. Until then, members without a connection of their own can't use the integration.