> ## Documentation Index
> Fetch the complete documentation index at: https://docs.federalaccess.cl/llms.txt
> Use this file to discover all available pages before exploring further.

# Scopes

> The permissions of each API key and how to choose them.

A scope is a permission on a key. Every endpoint requires one scope, and its page in the [API reference](https://docs.federalaccess.cl/en/api-reference/installation/get-installation.md) names it.

## Available scopes

| Scope | In the dashboard | Allows |
| - | - | - |
| `installation:read` | Lectura de Instalación | Read the installation's data |
| `accesses:read` | Lectura de Accesos | Read the access log |
| `members:read` | Lectura de Miembros | Read members |
| `members:write` | Escritura de Miembros | Create, update, and delete members |
| `invitations:read` | Lectura de Invitaciones | Read invitations |
| `invitations:write` | Escritura de Invitaciones | Create and cancel invitations |

Every key includes `installation:read`, even if you don't check it.

The API has no scope to change the installation. The installation's configuration only changes from the dashboard.

## Choose scopes

Give each key only the scopes its integration uses. If the key leaks, the damage stays limited to those permissions.

For example, a system that only reads the access log to compute attendance needs `accesses:read` and nothing else.

## Change a key's scopes

You choose scopes when you create the key, and you can't edit them later. To change them, create a new key with the right scopes and revoke the old one. See [Rotate a key](https://docs.federalaccess.cl/en/guides/authentication.md#rotate-a-key).

## Key without the required scope

If the key lacks the scope the endpoint requires, the API answers `403` and names the missing scope in the message:

```json theme={null}
{
  "error": {
    "code": "forbidden",
    "message": "Forbidden. The API key lacks the required scope: accesses:read.",
    "request_id": "7f3c1d2e-4b5a-4c6d-8e9f-0a1b2c3d4e5f"
  }
}
```

> [!NOTE]
>
> These requests count toward the [rate limit](https://docs.federalaccess.cl/en/guides/rate-limits.md). Fix the scopes instead of retrying.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.