Skip to main content
The Agent Volumes Registry API uses registry-local, resource-scoped bearer tokens for protected write operations. Tokens are opaque to clients — the bibliotheca derives authorization decisions from its own local state based on the token subject, the requested action, and the target resource. Token issuance is not standardized in v0.1; consult your bibliotheca’s documentation for how to obtain a token.

Which operations require authentication

Passing the token

Include the bearer token in the Authorization header on every authenticated request.
The token value is an opaque string. Do not parse or decode it — treat it as a credential you pass verbatim.

Token format

Bearer tokens are:
  • Opaque — clients must not parse or decode the token value
  • Registry-local — tokens issued by one bibliotheca are not valid on another
  • Resource-scoped — a token may be authorized for a specific scope, volume, or release; the bibliotheca enforces the scope boundary

Error responses

If the token is missing, malformed, unknown, expired, or revoked, the bibliotheca returns 401 Unauthorized:
If the token is valid but the caller lacks the needed permission for the requested action or resource, the bibliotheca returns 403 Forbidden:
A 401 means authentication failed — the token itself is the problem. A 403 means authentication succeeded but the token lacks permission for this specific operation or resource.

Authenticated request example

The following example creates a release upload intent for a scoped volume:
Token issuance — how you register, log in, or generate API tokens — is bibliotheca-local and is not standardized in Agent Volumes v0.1.