# List a group's overrides

List the tool policy overrides a group sets for its members, across all integrations.

`GET https://api.smallworld.sh/api/v1/groups/:groupId/tool-policies`

## Parameters

| Name | Location | Type | Required | Description |
| --- | --- | --- | --- | --- |
| groupId | path | string | Yes | Your application's group ID, URL-encoded. At most 512 characters, with no surrounding whitespace or null bytes. |

## Request examples

### curl

```curl
curl --fail-with-body -X GET 'https://api.smallworld.sh/api/v1/groups/team_42/tool-policies' \
  -H "Authorization: Bearer $SMALLWORLD_API_KEY"
```

### typescript

```typescript
const response = await fetch("https://api.smallworld.sh/api/v1/groups/team_42/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();
```

### python

```python
response = requests.get(
    "https://api.smallworld.sh/api/v1/groups/team_42/tool-policies",
    headers={"Authorization": f"Bearer {api_key}"},
    timeout=30,
)
response.raise_for_status()
result = response.json()
```

## 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. hiddenInWorlds lists the Worlds (id and name) that hide the tool, where the override doesn't apply.

### 200

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. hiddenInWorlds lists the Worlds (id and name) that hide the tool, where the override doesn't apply.

```json
{
  "items": [
    {
      "integration": "github",
      "toolName": "issue_write",
      "policy": "ask",
      "effectivePolicy": "ask",
      "source": "group_override",
      "hiddenInWorlds": []
    }
  ]
}
```

### 400

invalid_request: A parameter is invalid; the message names the problem. Unknown query parameters are rejected.

#### invalid_request

A parameter is invalid; the message names the problem. Unknown query parameters are rejected.

```json
{
  "statusCode": 400,
  "code": "invalid_request",
  "message": "Unknown query parameter: color"
}
```

### 401

authentication_required: The Authorization header is missing or empty. invalid_api_key: The API key is invalid or revoked, or the header doesn't use the Bearer scheme.

#### authentication_required

The Authorization header is missing or empty.

```json
{
  "statusCode": 401,
  "code": "authentication_required",
  "message": "Authentication is required"
}
```

#### invalid_api_key

The API key is invalid or revoked, or the header doesn't use the Bearer scheme.

```json
{
  "statusCode": 401,
  "code": "invalid_api_key",
  "message": "The API key is invalid or revoked"
}
```

### 403

ip_not_allowed: The request came from an address outside the workspace's IP allowlist.

#### ip_not_allowed

The request came from an address outside the workspace's IP allowlist.

```json
{
  "statusCode": 403,
  "code": "ip_not_allowed",
  "message": "The source IP address is not allowed by this account's security settings"
}
```

### 404

group_not_found: The group does not exist in your workspace. Create groups from your backend with POST /groups.

#### group_not_found

The group does not exist in your workspace. Create groups from your backend with POST /groups.

```json
{
  "statusCode": 404,
  "code": "group_not_found",
  "message": "Group not found"
}
```

### 500

internal_error: An unexpected server error.

#### internal_error

An unexpected server error.

```json
{
  "statusCode": 500,
  "code": "internal_error",
  "message": "Internal server error"
}
```

## Notes

- Group overrides apply to every call in the group's sessions: on the group's connection, on a member's own account, and for tools without a connection, such as built-in and custom tools. They replace the member's own override while they are set. Sessions of another group, and groupless sessions, don't use them. They can also be edited in the dashboard.

- 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.

- A group's deny hides the tool in the group's sessions, and no user override shows it again. A group's allow or ask also replaces the user's own override there.
