Get a group's integration switch
Read whether a group leaves an integration available to its sessions.
/api/v1/groups/:groupId/integrations/:integrationconst response = await fetch("https://api.smallworld.sh/api/v1/groups/team_42/integrations/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#
groupIdstringrequiredYour application's group ID, URL-encoded. At most 512 characters, with no surrounding whitespace or null bytes.
integrationstringrequiredAn integration key from GET /integrations, such as github or notion.
Responses#
Returns integration and enabled. enabled is false only when the group turned the integration off; true doesn't mean the workspace and the World enable it.
{
"integration": "github",
"enabled": true
}
More about this endpoint
A group can only turn an integration off. It then is unavailable in every session of the group, also on a member's own account. Workspace and World availability stay prerequisites: enabled: true never enables an integration they leave off. Sessions of another group, and groupless sessions, are unaffected.