Set an agent secret
Creates or replaces one secret in the agent’s vault. The value becomes available to the agent’s sandbox as an environment variable and to any outbound proxy rule that references the key; a changed value takes effect on the agent’s next request. Values cannot be read back. Key names must be env-var-style identifiers, for example MY_API_KEY. Requires edit access to the agent and a key with the edit scope.
Authorizations
A Skydive API key, sent as Authorization: Bearer sky_live_.... Keys are scoped to a single agent and carry a use or edit scope. The full key value is shown once at creation and never again.
Path Parameters
The agent id.
The secret name. Must be an environment-variable-style identifier: letters, digits, and underscores, not starting with a digit (for example MY_API_KEY).
"OPENAI_API_KEY"
Body
The secret value.
1Response
The secret was set.
The key that was set.