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#
/v1/apps/:app_id/authz/agentsApp keycurl -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"}| Field | Meaning |
|---|---|
| status | active or suspended |
| suspended_reason | Why it was suspended, when it is |
| seen_permissions | Permissions it has been allowed at least once (first-use review) |
| orphaned | No owner |
| stale | Not used for 30 days, or never used in the 30 days since it was registered |
| last_used_at | When a task was last created for it |
List, read, update, delete#
/v1/apps/:app_id/authz/agentsApp keyEvery 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).
/v1/apps/:app_id/authz/agents/:slugApp key/v1/apps/:app_id/authz/agents/:slugApp keyTakes the same fields as create, except slug, which cannot change. Sending roles replaces the whole list. Sending owner_user_id empty removes the owner.
/v1/apps/:app_id/authz/agents/:slugApp keyDeletes 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.
/v1/apps/:app_id/authz/agents/:slug/keysApp keyThe 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" }'/v1/apps/:app_id/authz/agents/:slug/keysApp keyLists the keys with id, name, hint, last_used_at, revoked and created_at. Never the key itself.
/v1/apps/:app_id/authz/agents/:slug/keys/:idApp keyRevokes 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#
| Status | error_code | When |
|---|---|---|
| 404 | not_found | No agent with that slug in the app |
| 422 | invalid | Bad slug, unknown role, owner not in the workspace, unknown team role, or settings out of range |