GET/v1/secrets
Auth: API key
The calling key's project's secret names and shapes, and for a bound secret its urls and env as POST /v1/secrets answers them. Never values.
Answer 200 · SecretList · application/json
- secretsrequiredSecretSummary[]
3 routes of the published API contract, generated from it.
Auth: API key
The calling key's project's secret names and shapes, and for a bound secret its urls and env as POST /v1/secrets answers them. Never values.
Auth: API key
Store a secret in the calling key's project (the same name may hold a different value in another project). Write-only: no route ever returns a value, and only that project's sandboxes are given it. With hosts the secret is bound to those hosts: requests a sandbox sends to the address in the answer's urls (with the request's path added) are authenticated with it, a request sent straight to the host is not, and the value stays out of the sandbox unless a run asks for it with mode: "raw". raw: "refused" means the value itself can never be given to a sandbox; allowed is the default. A sandbox given a secret bound to api.openai.com or api.anthropic.com also gets OPENAI_BASE_URL or ANTHROPIC_BASE_URL set to that address (the answer's env names each variable and its value), so those SDKs need no change. Setting a secret again keeps every binding field the request leaves out; hosts: [] removes the binding.
true is refused, false (the default) is accepted.true is refused, false (the default) is accepted.urls for a provider whose SDKs read their base URL from a variable (with the path those SDKs expect), such as OPENAI_BASE_URL for api.openai.com and ANTHROPIC_BASE_URL for api.anthropic.com. A variable the caller sets itself wins. Absent when there is none.hosts is.refused when the value itself can never be given to a sandbox, allowed (the default) otherwise. Present when hosts is.hosts is.hosts, in the same order, the address a sandbox sends that host's requests to, with the request's path added after it. Requests sent there are authenticated with the secret; a request sent straight to the host is not. For a *. host, put the name in place of the *. Present when hosts is.Auth: API key
Remove a secret.