See the Credential vault guide for the injection model.
The vault object
The identity the vault belongs to, or
null when it was created without one.How many credentials it holds. The metadata itself comes from
GET /v1/vaults/{id}/credentials — a vault read never embeds it.Create a vault
POST /v1/vaults — scope admin
The identity that owns the vault, by
idn_ id or by name. Defaults to null (org-wide). One that is not an identity in your organization answers 404 not_found.Add a credential
POST /v1/vaults/{id}/credentials
static_bearer or mcp_oauth. env_var is not available: it is refused with 501 feature_not_configured —
substituting it needs an egress boundary on the sandbox’s network path, and storing a secret under a
guarantee that cannot be kept is worse than refusing it. Use an MCP kind, which is injected before the
sandbox sees the value.The reference name — for
env_var, the environment variable name (e.g. PAYMENTS_API_KEY).Only read for
env_var (not available) — the one exact destination host the value would be substituted for.The one agent the token may be injected into. An id that names no agent answers
404 not_found. Omitted, any agent that declares mcp_server_url receives it. Fixed at create, like every other field: to re-bind, create a new credential and delete the old one.Optional expiry, as an RFC 3339 timestamp with an offset. It must be in the future: a past one answers
400 validation_failed. It is returned in UTC.How injection works
env_var— not available on this deployment. The design is an opaque placeholder in the sandbox with the real value substituted at the egress boundary; that boundary does not exist yet, so the route refuses the kind rather than storing a secret it cannot protect.static_bearer/mcp_oauth— injected server-side when the agent connects to the matching MCP server URL. Matching is by URL: a credential is injected when itsmcp_server_urlequals one of the agent version’smcp_servers[].url. A credential with anagent_idis injected into that agent’s sessions only. A credential for this platform’s own/v1/mcpis never injected: bound to an agent under the keyceo_<agent id>in the vault named “Orchestrator control plane”, it records that agent as your organization’s CEO (ceo_agent_id), which gets a short-lived credential for each turn holding only what the people driving it may do. An agent that came with a team bought from the marketplace cannot be the CEO: that binding answers403 forbiddenand stores nothing. Only that one agent gets it: if you bound this URL to an agent under another key or vault name, bind it again asceo_<agent id>in “Orchestrator control plane” (a company with exactly one such agent had it recorded for it when this shipped). There is no per-session credential selection.- A bound agent is an admin’s to change. Once a credential is bound to an agent,
PATCH, rollback andDELETEon that agent need theadminscope. Without it they answer403 forbidden. A session, schedule or team roster pinned to a version older than the binding runs without the credential, unless that version is still the agent’s current one or was the current one when the credential was bound.
Scopes
Writing a secret is an
admin act; listing what exists is not. That split lets an agent-facing key confirm a credential is present without ever being able to add or remove one.
Retrieve a vault
GET /v1/vaults/{id} — scope agents:read. Returns the vault object with credential_count. Metadata only, like every other read here — no secret value is reachable through this or any route.
Response
List vaults & credentials
limit and after. See Pagination.
Delete
Response
Rotating a credential
There is no update route for a credential, and that is the contract rather than an omission. Rotate by adding the new secret and then deleting the old one — two records, two ids. That keepslast_injected_at attributable to exactly one secret, so an audit can still answer which value was in use at the moment of a given call.
Back to core resources
The Phase 1 resource set.