A permission that requires verification answers allow_with_step_up. The agent then starts a verification for the person its task acts for, the person completes it (reads a code back, approves a push, opens a link), and the agent passes the verification's token as challenge on the next check.
Every answer has a say line the agent can speak or write as is.
Start a verification#
/v1/auth/:app_id/agent/verificationsTask tokencurl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/agent/verifications \ -H "Authorization: Bearer $TASK_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "method": "email_otp", "permission": "invoice:refund" }'Scute answers 201:
{ "token": "CHALLENGE_TOKEN", "status": "pending", "method": "email_otp", "expires_at": "2026-11-19T10:10:00Z", "say": "I've emailed a code to s***@example.com. What's the code?"}For code methods the answer also has remaining_attempts. A task can start at most 5 verifications per hour, so a looping agent cannot flood the person.
Pass on a code#
/v1/auth/:app_id/agent/verifications/:token/codeTask tokenAnswers 200 with status: "completed" when the code is right, or 422 with error and a say line such as "That code didn't work. Want to try again?" while attempts remain.
Check a push or a link#
/v1/auth/:app_id/agent/verifications/:tokenTask tokenFor push, entra_push and magic_link, poll until status is no longer pending.
| status | Meaning |
|---|---|
| pending | Waiting for the person |
| completed | Verified |
| expired | Ran out of time |
| denied | The person declined |
| failed, cancelled | Did not go through |
Redeem the proof#
Send the completed verification's token as challenge on the check:
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/agent/check \ -H "Authorization: Bearer $TASK_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "action": "refund", "resource": "invoice:42", "challenge": "CHALLENGE_TOKEN" }'A proof counts when it belongs to the same person, completed in the last 10 minutes, and has not been used. When it was started with permission, it counts only for that permission. When the permission has a verification TTL, one proof covers it for that long; otherwise every check needs a new proof.
Conversations#
A session records one conversation or call under a task: the channel, your reference for it, and whether the person was verified in it. Sessions are what session trust and the backend's conversation lookups work on.
/v1/auth/:app_id/agent/sessionsTask token/v1/auth/:app_id/agent/sessions/:id/verifiedTask tokenMarks the session verified with a completed verification (challenge) of the person the task acts for, completed in the last 10 minutes. A verification started with session_id marks its session on its own.
/v1/auth/:app_id/agent/sessions/:id/endTask tokenEnds the session. Session trust stops applying.
Errors#
| Status | error_code | When |
|---|---|---|
| 409 | needs_human | The task acts for nobody |
| 422 | invalid_method | method is not one of the list |
| 422 | unknown_permission | No such permission |
| 403 | outside_task | The task's actions do not include permission |
| 429 | too_many_verifications | 5 verifications this hour for this task |
| 422 | challenge_invalid | On /verified: the challenge is not a fresh, completed one for this person |
| 404 | not_found | The verification or session is not this task's |