Scopes and repository access
Every tool requires one of three access levels. The levels are hierarchical:admin includes write, and write includes read.
The Access column in the Tool reference shows the scope each tool needs.
How far a credential reaches depends on how you signed in:
- OAuth tokens are granted to your user within an organization and carry full access to that organization.
- API keys can additionally be scoped to specific repositories. Tool calls targeting any other repository are rejected. This is the way to give an agent least-privilege access. See Authentication for key management.
Errors
A missing or invalid credential returns401 Unauthorized with a WWW-Authenticate header pointing back at the metadata, so a client can re-discover and re-authenticate:
error.trace_id — quote it when reporting an issue.
