Overview
The Vault service manages encrypted service credentials. Store upstream credentials (e.g., OAuth tokens for third-party APIs), retrieve metadata, delete credentials, and exchange Grantex grant tokens for stored service tokens at runtime.
Store
Store an encrypted credential in the vault. Upserts on PrincipalID + Service.
Parameters
Response (StoreCredentialResponse)
List
List credential metadata. Raw tokens are never returned by this endpoint.
Parameters
Response
Returns []VaultCredential. See Get below for the VaultCredential struct fields.
Get
Get credential metadata by ID. Does not return the raw token.
Parameters
VaultCredential
Delete
Delete a credential from the vault.
Parameters
Exchange
Exchange a Grantex grant token for an upstream service credential. Unlike other methods, this uses the grant token (not the API key) as the Bearer token, allowing agents to retrieve stored credentials at runtime.
Parameters
Response (ExchangeCredentialResponse)
Last modified on April 5, 2026