A property is a named secret or key pair stored in Scute for an app's agents. A secret's value and a key pair's private key are encrypted at rest and never returned by the management API. An agent's tool reads a secret, or asks Scute to sign with a key, using its task token at the moment it needs it. Keep the value out of the model's context.
A property can be used only:
- while it is enabled and not expired,
- by an agent on its agents list,
- with a live task token of that agent,
- and, when the property names a permission, when the task may do that permission right now.
Every use is written to the decision log (as the permission property:use on property:<name>) and recorded as an audit event. The value never is.
Create a secret#
/v1/apps/:app_id/propertiesApp keycurl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/properties \ -H "Authorization: Bearer $SCUTE_APP_SECRET" \ -H "Content-Type: application/json" \ -d '{ "name": "stripe-key", "kind": "secret", "value": "STRIPE_SECRET_VALUE", "agents": ["billing-assistant"], "permission": "invoice:refund" }'Scute answers 201 with the property, without its value:
{ "name": "stripe-key", "kind": "secret", "agents": ["billing-assistant"], "permission": "invoice:refund", "disabled": false, "created_at": "2026-11-19T10:00:00Z", "updated_at": "2026-11-19T10:00:00Z"}Read a secret from a tool#
/v1/auth/:app_id/agent/properties/:nameTask tokencurl https://api.scute.io/v1/auth/$SCUTE_APP_ID/agent/properties/stripe-key \ -H "Authorization: Bearer $TASK_TOKEN"{ "name": "stripe-key", "value": "STRIPE_SECRET_VALUE" }When the property's permission needs verification or approval, the read answers 403 with the check's own answer in details (including a say line) until it carries the proof, the same as a check: ?challenge=, ?approval= (or ?approval_id=) and ?session_id=.
| Status | error_code | When |
|---|---|---|
| 404 | not_found | No property with that name |
| 422 | wrong_kind | It is a key pair, not a secret |
| 403 | property_disabled | It is turned off |
| 403 | property_expired | Past expires_at |
| 403 | agent_not_listed | The agent is not on its agents list |
| 403 | task_not_permitted | The task cannot do the property's permission |
| 403 | a decision reason | The permission needs verification or approval first; see details |
| 401 | invalid_task_token | The token is missing, expired or revoked |
Manage properties#
/v1/apps/:app_id/propertiesApp key/v1/apps/:app_id/properties/:nameApp key/v1/apps/:app_id/properties/:nameApp keyTakes description, agents, permission, expires_at and disabled (true turns it off, false back on). Name and kind cannot change.
/v1/apps/:app_id/properties/:name/rotateApp keyFor a secret, send the new value (required). It replaces the old one at once and sets rotated_at. For key pairs see Key pairs.
/v1/apps/:app_id/properties/:nameApp keyAnswers 204.
From the dashboard, writes need an owner or admin of the workspace. Every change is recorded as an audit event (app.property.created, updated, rotated, deleted) without the value.
Validation errors#
A 422 lists every problem in errors, each with field, code and message. error_code and field are the first one. Codes are the field and the problem, for example name_taken, name_invalid, value_blank, value_too_long and kind_invalid.