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, or from a credit token — call credits_trial for free credit if you have neither.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"namespace": "<namespace>",
"key": "<key>",
"namespace_token": "<namespace_token>"
},
"name": "vault_retrieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Item key | |
| namespace | Yes | Isolation scope | |
| credit_token | No | Optional. A credit token from credits_trial or /credits/buy. Supplying it pays for this call from that balance, so no x402 payment or wallet is needed. | |
| 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 |