# API tokens with roles

- Canonical: https://jestor.si/en/tokens-de-api-com-funcoes-permissoes-22
- Language: en
- Type: Improvement
- Published: 2026-11-18
- Other language: https://jestor.si/pt/tokens-de-api-com-funcoes-permissoes-22

Each integration only reaches what it needs, which lowers the risk if a token leaks.

### What's new
Every API token now has a role that sets what it can read and change. You pick the role when you create or edit the token, the same way you do for users. Existing tokens keep working, with an empty role, until you set one.

### How to use it
1. In the left sidebar, open **Automation** and, in the **API** group, click **Token** (or press Ctrl+K and search for **API Token**).
2. Create a new token or open an existing one.
3. In the **Role** field, pick the role with the right access for that integration.
4. Save and use the token in your integration.

**Where it is:** left sidebar > **Automation** > **API** > **Token** > **Role** field.

**Who it's for:** anyone maintaining integrations with Jestor who wants to control what each one can do.

[Documentation](https://docs.jestor.com/docs/api-and-tokens)

## Images

- novidade-22-capa: https://files.jestor.com/d1218146a01e46479389e5d0356b0b1d/k55xgvntmq0yxib52inut/novidade-22-capa__8f15544e64a587f267f4b4ac1b1cf447.webp
- 02a-create-token-modal: https://files.jestor.com/d1218146a01e46479389e5d0356b0b1d/k55xgvntmq0yxib52inut/02a-create-token-modal__917607833f3b5c6ae02e50e6f0f27750.png

- Documentation: https://docs.jestor.com/docs/api-and-tokens
