Skip to content
List a World's overrides

List a World's overrides

List the tool policy overrides a World sets for every user in it, across all integrations.

GET/api/v1/worlds/:worldId/tool-policies

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/worlds/01995e56-e2d4-7f19-b691-7bf9af6abdc8/tool-policies", {
  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#

worldIdUUIDrequired

The World ID shown in the dashboard.

Responses#

Returns items, without a pagination cursor. Returns integration, toolName, policy (the setting at this level: allow, ask, deny, or inherit when there is no override), effectivePolicy (allow, ask, or deny), and source: integration_default, world_override, group_override, user_override, workspace_hidden, group_hidden, or disabled. effectivePolicy is what applies to a user without an override of their own.

200 response
{
  "items": [
    {
      "integration": "acme",
      "toolName": "get_order",
      "policy": "ask",
      "effectivePolicy": "ask",
      "source": "world_override"
    }
  ]
}
More about this endpoint

Only overrides are listed. A tool without one follows the workspace policy from GET /tool-policies.

A group override beats a user override, which beats a World override, which beats the workspace default. The group is the one the session acts for, and its overrides apply to every call in the session. Hidden is a ceiling: a tool the workspace hides stays hidden everywhere, a tool a World hides stays hidden there for every user, and a tool a group hides stays hidden in its sessions for every member. A turned-off integration denies every call.