Skip to main content

Access control

Vaults are private by default — only requests authenticated with your API key can read them. To share a vault with a client (e.g., give the caller access to their results), issue a short-lived vault access token.

Issue a vault access token

Using the access token

The client uses the access token as a Bearer token to read vault contents:

Access token permissions

Vault access tokens are read-only — they allow:
  • Reading vault metadata (GET /vaults/:id)
  • Listing and reading documents
  • Downloading files
  • Subscribing to the SSE event stream
They do not allow writing documents, uploading files, emitting events, sealing, persisting, or deleting the vault.

Typical pattern: return token in response

Issue the access token in your payment handler and return it alongside the vault ID:

Parameters