# Keeping keys safe

A key unlocks your account data, so treat it like a password.

## Do

- Keep keys in a secret manager or an environment variable.
- Use one key per integration, so you can revoke it without affecting the others.
- Give each key the smallest scope it needs. Turn on `finance:read` only when you really need it.
- Call the API from a server. The API deliberately cannot be called from a browser, so page visitors can never read your key.

## Don't

- Don't put keys in code, repositories, or logs.
- Don't paste keys into chat, including chats with AI assistants.
- Don't store keys in spreadsheet cells.

## If a key leaks

Revoke it right away under **Settings**, then **API key**, and create a new one. A revoked key stops working immediately.
