ApiSandboxes
PUT /v1/sandboxes/{id}/secrets
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Make the attached set be exactly this. Requires the secrets:use scope — a sandbox:<id> key (the credential handed to the agent INSIDE the box) carries neither * nor secrets:*, so a sandbox can never arm itself.
Response Body
application/json
curl -X PUT "https://example.com/v1/sandboxes/string/secrets" \ -H "Content-Type: application/json" \ -d '{ "secrets": [ "string" ] }'{ "sandbox_id": "string", "epoch": 0, "leased_epoch": 0, "state": "armed", "policy_blocked": [ "string" ], "implied_egress": { "domains": [ "string" ], "rules": { "property1": [ "string" ], "property2": [ "string" ] }, "proxy": true }, "secrets": [ { "binding_id": "string", "secret_id": "string", "secret_name": "string", "alias": "string", "env_name": "string", "hosts": [ "string" ], "header": "string", "on_echo": "block", "gen": 0, "state": "armed" } ]}Empty