Get a World’s integration
Read an integration’s assignment and policies for a World.
GET
/api/v1/worlds/:worldId/integrations/:integrationconst response = await fetch("https://api.smallworld.sh/api/v1/worlds/01995e56-e2d4-7f19-b691-7bf9af6abdc8/integrations/notion", {
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#
worldIdUUIDrequiredThe World ID returned by POST /worlds or GET /worlds.
integrationstringrequiredAn integration key from GET /integrations or /integration-configurations.
Responses#
Returns the same fields as each item in GET /worlds/:worldId/integrations. The integration can be assigned while workspace activation is off.
{
"worldId": "01995e56-e2d4-7f19-b691-7bf9af6abdc8",
"integration": "notion",
"enabled": true,
"alwaysEnabled": false,
"toolPolicies": []
}