Skip to main content

Overview

The vault client 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. Access the vault client via client.vault.

Store

Store an encrypted credential in the vault. Upserts on the principal_id + service combination.

StoreCredentialParams

StoreCredentialResponse


List

List credential metadata. Raw tokens are never returned by this endpoint.

ListVaultCredentialsParams

ListVaultCredentialsResponse


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. This endpoint uses the grant token (not the API key) as the Bearer token, allowing agents to retrieve stored credentials at runtime without exposing the developer’s API key.

Parameters

ExchangeCredentialResponse

Last modified on April 5, 2026