Skip to content
Menu
Trust & control · Vault · POST /v2/vault

Credentials the model never sees

Store a login once and write only a placeholder — {{vault:shop/password}} — in an interact goal or prompt. The value is resolved at the moment the browser types it: never sent to the model, never written to logs, the run log, responses or error messages.

Endpoint
POST /v2/vault
Mode
Synchronous (an account setting)
Credits
0 — storing and using refs is free
Also
GET /v2/vault (refs and labels, never values) · DELETE /v2/vault/{ref} · GET /v2/vault/providers

What it's for

Log in during a goal

"Sign in with {{vault:shop/username}} and {{vault:shop/password}}, then return my last order" — the model plans with the placeholders, the browser types the real values.

Two-factor codes

Store the TOTP seed with kind: totp and {{vault:shop/totp}} types a fresh one-time code (RFC 6238) every time.

Keep secrets out of prompts and logs

Nothing to redact afterwards: the secret never enters the prompt, the run log, a screenshot or a response.

How it works

  1. Store

    POST /v2/vault encrypts the value at rest (AES-256-GCM, bound to your API key) and returns the ref's metadata — never the value. There is no endpoint that reads a value back.

  2. Reference

    Write {{vault:ref}} in an interact goal or prompt. The model, the run log and every response only ever see the placeholder.

  3. Resolve at typing time

    The value is resolved just before the browser types it; screenshots pause after it is typed. A ref that cannot be resolved types nothing.

  4. Bind to sites

    With domains, a ref is typed only on those sites and their subdomains — a foreign page cannot ask for your password.

Request parameters

Full docs →
FieldType DefaultDescription
refrequiredstring—1–128 characters of A–Z a–z 0–9 _ . : / -; used as {{vault:<ref>}}.
valuerequiredstring—The secret, 4–4096 characters. Never returned.
kindstring"secret"secret or totp (the value is a base32 seed or an otpauth://totp/ URI). A ref ending in /totp, /otp, /2fa or /mfa defaults to totp.
labelstring—A name you recognise, up to 200 characters.
domainsstring[]—Up to 20 host names; the ref is typed only there.

Unknown fields do not fail the request — they are listed in the response warning, as are values that were clamped to the engine's limits.

Example request

bash
# store a secret once (the value is never returned)
curl -X POST https://crawl.echolotnews.com/v2/vault \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "shop/password", "value": "example-secret-1234", "label": "Shop login", "domains": ["books.toscrape.com"]}'

# list your refs — labels and placeholders, never values
curl https://crawl.echolotnews.com/v2/vault \
  -H "Authorization: Bearer YOUR_API_KEY"

# remove it
curl -X DELETE https://crawl.echolotnews.com/v2/vault/shop/password \
  -H "Authorization: Bearer YOUR_API_KEY"
python · requests
import requests

API = "https://crawl.echolotnews.com"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}

r = requests.post(f"{API}/v2/vault", headers=HEADERS, timeout=30, json={
    "ref": "shop/password", "value": "example-secret-1234",
    "label": "Shop login", "domains": ["books.toscrape.com"]})
r.raise_for_status()
print(r.json()["data"]["placeholder"])   # {{vault:shop/password}}

for item in requests.get(f"{API}/v2/vault", headers=HEADERS, timeout=30).json()["data"]:
    print(item["ref"], item["kind"], item["domains"])

requests.delete(f"{API}/v2/vault/shop/password", headers=HEADERS, timeout=30)
javascript · fetch
const API = "https://crawl.echolotnews.com";
const headers = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" };

const res = await fetch(`${API}/v2/vault`, {
  method: "POST",
  headers,
  body: JSON.stringify({ ref: "shop/password", value: "example-secret-1234",
    label: "Shop login", domains: ["books.toscrape.com"] }),
});
console.log((await res.json()).data.placeholder);

const list = await (await fetch(`${API}/v2/vault`, { headers })).json();
list.data.forEach((i) => console.log(i.ref, i.kind, i.domains));

await fetch(`${API}/v2/vault/shop/password`, { method: "DELETE", headers });
mcp
# There is no MCP tool for storing secrets, on purpose: MCP arguments are model
# context, and a secret must never be there. Store refs over REST (see the other
# tabs), then use only the placeholder in engine_interact goals and prompts:
claude mcp add --transport http echolot https://crawl.echolotnews.com/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"
#    "On books.toscrape.com, sign in with {{vault:shop/username}} and
#     {{vault:shop/password}}, then tell me my last order"

Example response

json · trimmed
{
  "success": true,
  "created": true,
  "data": {
    "ref": "shop/password",
    "placeholder": "{{vault:shop/password}}",
    "label": "Shop login",
    "provider": "local",
    "kind": "secret",
    "locator": {},
    "domains": ["books.toscrape.com"],
    "hasValue": true,
    "createdAt": "2026-10-07T09:12:44Z",
    "updatedAt": "2026-10-07T09:12:44Z",
    "lastUsedAt": null
  }
}

Response fields

FieldTypeMeaning
data.placeholderstringWhat you write in a goal or prompt.
data.hasValuebooleanA value is stored — the value itself is never returned.
data.lastUsedAtstring | nullWhen the browser last typed it.
WhatCredits
Storing, listing and deleting refs0
Typing a ref in a browser run0 — the run's browser minutes and tokens as usual

Start with 500 free credits

No card required. Every endpoint, REST and MCP.