Skip to content
Docs
GitHub

Batch set secrets

Preview

Encrypts and stores multiple secrets in a single request. Existing secrets with the same name are overwritten.

Public APIEverruns Cloud and self-hosted Platform

PUT/v1/sessions/{session_id}/storage/secrets

See authentication for credentials and permissions.

session_id
required
string

Session ID

Media typeapplication/json

Batch secret set request

object
bindings

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
key
additional properties

Where a bound secret may be sent, and how.

object
auth
required
One of:

Authorization: Bearer <value>.

object
type
required
string
Allowed values: bearer
url
required

https://host[:port][/path-prefix] the value may be sent to.

string
secrets
required

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
key
additional properties
string

Responses

200Secrets stored

Secrets stored

Media typeapplication/json

Batch secret set response

object
count
required

Number of secrets stored

integer

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