Skip to main content

Synopsis

Each access token carries named scopes. An API request fails when the token lacks the required scope. Some scope groups use read, write, and admin levels. A higher level includes every lower level in the same group.

Example with output

Copy <WORKSPACE_ID> from agentsfleet workspace list. Replace the fake token with a tenant API key from Settings → API Keys.
A valid key without fleet:read returns this scope error. The fake token above fails authentication instead.

Options

agentsfleet approvals uses these scopes. Listing needs approval:read; approving or denying needs approval:resolve. Operator tokens may carry runner:*, platform-key:*, platform-library:*, model:*, or workspace:any. Tenant integrations do not need these scopes.

Errors

UZ-AUTH-022: Insufficient scope

The token lacks the scope named in detail. Create a new key with that scope, then retry the request. Do not add unrelated scopes. A narrower key limits the effect of a leaked key.