API Keys
API keys let scripts and CI use the REST API. Create one under Account settings → API Keys.
- A key starts with
zv_pat_and is shown only once. Treat it like a password. - Each key has permissions and can be limited to some projects. Give a key only what its job needs.
- No key can change your account (email, password, keys), create other keys, or touch billing or team members.
- Choose an expiry of 30, 90 or 365 days, or none. The list shows when each key was last used; delete keys you no longer need.
curl -H "Authorization: Bearer $ZENAVO_API_KEY" https://zenavo.app/api/projectsPermissions
| Permission | Can | Cannot | Acts as |
|---|---|---|---|
| Read only | See projects, services, deployments, jobs, logs, servers and usage | See configuration values (environment variables, connection details), change anything | Viewer, at most |
| Deploy | Also deploy, roll back, restart and resume services, edit a project's configuration (including environment variables), upload source, add a generated domain, make a backup | Open a shell or run commands, read or change files and database rows, download or restore backups, create, delete, move or stop projects, change servers or firewalls | Member, at most |
| Full access | Everything an API key can do, with your own role | Billing, inviting or removing members, creating, deleting or transferring teams | Your role |
A key never has more than your role in a team: a Deploy key of a viewer is still a viewer. Keys made before permissions existed have Full access, as before. A request the key's permission does not allow answers 403.
Logs may contain whatever your services print. If a service prints secrets, a Read only key can see them.
Limit a key to some projects
Choose Only some projects and tick the projects. The key then sees nothing else: project and job lists show only those projects, other projects answer 404, and anything outside a project (servers, team settings, members) answers 403. It also cannot delete, clone, move or transfer its projects, even with Full access. This is the safest choice for an AI agent (see AI Agents) or a CI job.
A project limit is checked on every request together with your role, so if you leave the team, the key loses the project too.
CLI sign-in
The CLI's zenavo auth login creates a key for the CLI without copying one by hand. The terminal shows a code; open /device in the console, type the code and approve. Check that the device name and network are yours: approve only codes you just requested yourself. Approving is recorded in your security activity. The key is named CLI on <hostname>, expires after 90 days and appears in this list.
The approval page shows the permission the CLI asked for. You can approve it with less (Read only instead of Deploy, say) and limit it to some projects; you can never give it more than it asked for. Older CLIs that do not ask for a permission get Full access.