Skip to main content
Method reference: calls, parameters, and response fields. Managed evals attach direct secrets: their values enter the task sandbox as environment variables. Stored values are write-only through the secrets API.

Store a value

Set SERVICE_TOKEN in your process environment before running this example. A value may contain at most 190 UTF-8 bytes.

Attach it to a job

Add a secrets list to the job creation input:
Without a label, resolution chooses the default row, then the only row if exactly one exists. Multiple remaining labels produce an ambiguity error.
Job creation can store and attach a value in one request:
Optional label and as work here too. The value is stored as a secret; the job retains a reference. Restating the same identity/value is allowed. A different value under the same name/label is refused instead of silently replacing it.

Manage stored secrets

set requires name, value, and delivery; label defaults to default. A different value under an existing identity returns secret_exists. To rotate, use another label or delete and set that identity. The broader storage API also accepts delivery: "brokered", with required host/path/method scope lists. Managed eval jobs cannot attach those secrets today. Direct delivery refuses those scoping options.

Configuration and errors

This factory uses its own configuration: Python wraps those fields in ManagedSecretsClientConfig. Defaults come from EVOLVE_API_KEY and EVOLVE_DASHBOARD_URL as usual. Secret-client HTTP failures raise plain Error in TypeScript and RuntimeError in Python. They are not the hosted EvolveApiError / EvolveAPIError class.