On this page
Compatibility
Vault
Host-bound secrets for a workspace and for individual interns. Values are encrypted at rest and never returned.
A secret is released only to the exact hostnames it is bound to. Responses carry metadata — name, hosts, and an HMAC fingerprint — never the value. The fingerprint is keyed per vault, so equal fingerprints in one vault mean equal values, and the same value in two vaults is not comparable.
Workspace secrets
/vault/secretsAPI key/vault/secrets/{name}API keyListing is paginated with limit (1–100, default 50) and offset; the response carries has_more.
curl -X PUT https://api.relayrouter.org/vault/secrets/github_token \ -H "Authorization: Bearer $RELAY_API_KEY" \ -H 'content-type: application/json' \ -d '{ "value": "ghp_exampleTokenValue", "hosts": ["api.github.com"] }'{ "data": { "name": "github_token", "hosts": ["api.github.com"], "fingerprint": "sha256:9df9594d2eb5e22c5dd7c1970d838a17261ee07635334f3d51df716bddef99f7", "created_at": 1793232064, "updated_at": 1793232064 }}Secret names
Names follow OpenRouter's rule: lowercase, digits and single underscores, starting with a letter and not ending with an underscore.__ is rejected.
Intern secrets
Interns get their own scope. When a name exists in both, the intern copy wins over the workspace copy.
curl -X POST https://api.relayrouter.org/vault/interns/intern1/secrets/copy \ -H "Authorization: Bearer $RELAY_API_KEY" \ -H 'content-type: application/json' \ -d '{ "names": ["github_token"] }'