Agents

Properties

Named secrets and key pairs an app keeps in Scute for its agents' tools, used with a task token and never shown to the model.

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#

POST/v1/apps/:app_id/propertiesApp key
namestringrequired
Lowercase letters, digits, -, _ and ., starting with a letter or digit, up to 63 characters. Unique in the app.
kindstringrequired
secret or keypair. For key pairs see Key pairs.
valuestringrequired
The secret. Up to 16384 characters. Required for secret.
descriptionstring
What it is for.
agentsstring[]
Slugs of the agents that may use it. Empty means none.
permissionstring
A permission slug the task must be allowed, at the moment of use, for example invoice:refund.
expires_atstring
ISO 8601 time after which it can no longer be used.
curl -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#

GET/v1/auth/:app_id/agent/properties/:nameTask token
curl 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=.

Statuserror_codeWhen
404not_foundNo property with that name
422wrong_kindIt is a key pair, not a secret
403property_disabledIt is turned off
403property_expiredPast expires_at
403agent_not_listedThe agent is not on its agents list
403task_not_permittedThe task cannot do the property's permission
403a decision reasonThe permission needs verification or approval first; see details
401invalid_task_tokenThe token is missing, expired or revoked

Manage properties#

GET/v1/apps/:app_id/propertiesApp key
GET/v1/apps/:app_id/properties/:nameApp key
PATCH/v1/apps/:app_id/properties/:nameApp key

Takes description, agents, permission, expires_at and disabled (true turns it off, false back on). Name and kind cannot change.

POST/v1/apps/:app_id/properties/:name/rotateApp key

For a secret, send the new value (required). It replaces the old one at once and sets rotated_at. For key pairs see Key pairs.

DELETE/v1/apps/:app_id/properties/:nameApp key

Answers 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.