Retrieve an encrypted secret
vault_retrieveRetrieve a previously stored ciphertext. Requires the namespace_token. Costs $0.02 in USDC on Base, paid via the x402 protocol.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Item key | |
| namespace | Yes | Isolation scope | |
| namespace_token | Yes | One-time token issued by the first call that claimed this namespace. Required for every later call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alg | No | Algorithm label you supplied at store time | |
| key | Yes | The key that was read | |
| status | Yes | 'retrieved' | |
| receipt | No | Payment receipt | |
| namespace | No | Isolation scope | |
| ciphertext | Yes | Exactly the bytes you stored. Decrypt these yourself. | |
| created_at | No | ISO-8601 creation time | |
| expires_at | No | Expiry, or null if it never expires | |
| updated_at | No | ISO-8601 last write |