Browse documentation
Replace a key's value
Gives the key a new value; the previous value is destroyed. A key keeps its kind, and a traded or signed key its recipe unless one is sent. Requires env_vars:write.
/agents/{agentId}/keys/{name}/valueAuthorization
AuthorizationBearer <token>Path parameters
agentIdstringrequired- format
"uuid"
namestringrequired- pattern
"^[A-Z][A-Z0-9_]*$"
Headers
Salambo-ClientstringWhich published Salambo client sent the request, as cli/<version> or
sdk/<version>. The CLI and SDK send it on every request; a request
without it, or with a value in another shape, is served as usual.
The API refuses a CLI below its minimum supported version with 426.
- maxLength
100
Bodyrequired
kindstringrequired- enum
["fixed","traded","signed"]
valuestring- minLength
1- writeOnly
true
refreshTokenstring- minLength
1- writeOnly
true
clientSecretstring- minLength
1- writeOnly
true
privateKeystring- minLength
1- writeOnly
true
recipeobjectHow the broker trades or signs the key: token URL (HTTPS, public), form fields, headers, JWT claims and response mapping. Holds no secret; a field points at the key's value with { "from": "refresh_token" }.
Additional properties are allowed.
Response
The key, without its value
idstringrequired- format
"uuid"
objectstringrequired- const
"agent_key"
namestringrequiredkindstringrequired- enum
["fixed","traded","signed"]
allowed_hostsarrayrequiredShow nested schema
git_scopesarrayrequiredThe hosts, and optionally repository owners, git uses this key for.
Show nested schema
hoststringrequiredownerstring | nullrequiredstatusstringrequired- enum
["active","needs_new_token"]
value_updated_atintegerrequiredlast_used_atinteger | nullrequiredcreated_atintegerrequiredupdated_atintegerrequired