Batch set secrets
PreviewEncrypts and stores multiple secrets in a single request. Existing secrets with the same name are overwritten.
/v1/sessions/{session_id}/storage/secretsSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Session ID
Request Bodyrequired
Section titled “Request Bodyrequired”Batch secret set request
object
Optional bindings keyed by secret name. A bound secret is write-only:
the agent’s shell sees $NAME as a placeholder, and the platform puts
the value on requests to the bound URL only. A name set without a
binding becomes an ordinary secret again.
object
Where a bound secret may be sent, and how.
object
https://host[:port][/path-prefix] the value may be sent to.
Map of secret names to values. Names are case-sensitive; values are stored encrypted
and never returned by list/read endpoints. Existing keys are overwritten.
Example: {"OPENAI_API_KEY": "sk-...", "GITHUB_TOKEN": "ghp_..."}.
object
Responses
200Secrets stored
Secrets stored
Batch secret set response
object
Number of secrets stored
Example generated
{ "count": 1}400Bad request (encryption not configured or invalid input)
Bad request (encryption not configured or invalid input)
404Session not found
Session not found
500Internal server error
Internal server error