Agents

Register an agent

Create an agent in an app with a human owner and the roles that cap what it can ever do.

An agent belongs to one app. Its roles are the ceiling: no task and no person can let it do something none of its roles grant. Its owner is the Scute dashboard user who answers for it.

All calls on this page use the app key: Authorization: Bearer followed by the app's secret key. From the dashboard, writes need an owner or admin of the workspace.

Create an agent#

POST/v1/apps/:app_id/authz/agentsApp key
slugstringrequired
Lowercase letters, digits, - and _, starting with a letter or digit. Unique in the app. Every other agent endpoint names the agent by its slug.
namestring
Display name. Defaults to the slug, humanized.
descriptionstring
What the agent does. Shown to people on the consent page.
owner_user_idstring
The Scute user who owns the agent. Must be a member of the app's workspace (or of a workspace above it). Without an owner the agent reads orphaned: true.
rolesstring[]
Slugs of app roles. These are the agent's ceiling roles. An unknown slug is a 422.
team_rolestring
For agents that run operator tooling: a built-in team role or a team role of the workspace. It caps which operator actions the agent can take.
settingsobject
Safety rail settings: budget, loop and alert_channel_ids. See Safety rails.
curl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/authz/agents \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{    "slug": "billing-assistant",    "name": "Billing assistant",    "description": "Answers billing questions and issues refunds.",    "owner_user_id": "OWNER_USER_ID",    "roles": ["billing_agent"],    "settings": { "budget": { "max_actions": 200 } }  }'

Scute answers 201 with the agent:

{  "id": "9b2c...",  "slug": "billing-assistant",  "name": "Billing assistant",  "description": "Answers billing questions and issues refunds.",  "status": "active",  "owner_user_id": "OWNER_USER_ID",  "owner": { "id": "OWNER_USER_ID", "email": "owner@acme.io", "name": "Ana Owner" },  "roles": ["billing_agent"],  "settings": { "budget": { "max_actions": 200 } },  "seen_permissions": [],  "orphaned": false,  "stale": false,  "created_at": "2026-11-19T10:00:00Z"}
FieldMeaning
statusactive or suspended
suspended_reasonWhy it was suspended, when it is
seen_permissionsPermissions it has been allowed at least once (first-use review)
orphanedNo owner
staleNot used for 30 days, or never used in the 30 days since it was registered
last_used_atWhen a task was last created for it

List, read, update, delete#

GET/v1/apps/:app_id/authz/agentsApp key

Every agent of the app, by slug. Each also has unreviewed (open items in the monitors inbox) and tasks_daily (tasks started on each of the last 7 days, UTC, oldest first).

GET/v1/apps/:app_id/authz/agents/:slugApp key
PATCH/v1/apps/:app_id/authz/agents/:slugApp key

Takes the same fields as create, except slug, which cannot change. Sending roles replaces the whole list. Sending owner_user_id empty removes the owner.

DELETE/v1/apps/:app_id/authz/agents/:slugApp key

Deletes the agent with its tasks, sessions, keys, monitor items and tools. Answers 204. To stop an agent and keep its history, suspend it instead.

Agent keys#

An agent key (scak_...) is a long-lived credential for platforms that store one, such as a voice or chat platform connecting to the auth MCP server. It can only start tasks for its own agent, and those tasks act for nobody until the person in the conversation is verified.

POST/v1/apps/:app_id/authz/agents/:slug/keysApp key
namestring
A label, up to 100 characters.

The answer has the key in key. It is shown once; Scute keeps only a digest and the last four characters (hint).

curl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/authz/agents/billing-assistant/keys \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{ "name": "ElevenLabs" }'
GET/v1/apps/:app_id/authz/agents/:slug/keysApp key

Lists the keys with id, name, hint, last_used_at, revoked and created_at. Never the key itself.

DELETE/v1/apps/:app_id/authz/agents/:slug/keys/:idApp key

Revokes the key. New conversations with it are refused. Conversations already started keep their own task until it ends; suspend the agent to stop everything.

Errors#

Statuserror_codeWhen
404not_foundNo agent with that slug in the app
422invalidBad slug, unknown role, owner not in the workspace, unknown team role, or settings out of range