Skip to content
Get integration configuration

Get integration configuration

Read one integration’s workspace configuration.

GET/api/v1/integrations/:integration/configuration

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/integrations/notion/configuration", {
  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#

integrationstringrequired

An integration key from GET /integrations or /integration-configurations.

Responses#

Returns workspace configuration, assigned worldIds, supported authentication schemes, tool catalog and defaults, optional runtime capabilities, and setup state. Lists are not paginated. World IDs represent assignment, even while workspace activation is off. The existing GET /integrations connection catalog keeps its original response.

200 response
{
  "integration": "notion",
  "name": "Notion",
  "description": "Connect Notion workspaces.",
  "enabled": true,
  "configured": true,
  "hasBeenActivated": true,
  "kind": "connected",
  "removable": true,
  "authScheme": "oauth2",
  "authSchemes": [
    "oauth2"
  ],
  "worldIds": [
    "01995e56-e2d4-7f19-b691-7bf9af6abdc8"
  ],
  "tools": [],
  "defaultPolicies": [],
  "setupMessage": null,
  "requiresSetup": true,
  "toolAvailabilityNote": null
}