These endpoints act on the challenges of one app. A challenge is addressed by its token (ch_...), never by its id: an id in place of the token returns 404 challenge_not_found. To read a challenge by id from a Master or MSP workspace, use Get a workspace challenge.
Authentication#
Send one of these:
- Authorization: Bearer scapp_... with the app's key, or a workspace key of the app's workspace or a workspace above it.
- X-Authorization: Bearer scm2m_... with an M2M token of an app in the same workspace or a workspace above it.
For a challenge created as a workspace challenge, :app_id is the verification app (the challenge's app_id), not the client app.
| Status | error_code | When |
|---|---|---|
| 401 | Missing or invalid credentials. | |
| 403 | The key does not own this app (API key not authorized for this app). | |
| 403 | app_not_in_scope | The M2M token's app is outside the app's workspace tree. |
| 403 | insufficient_scope | The M2M token lacks read (for GET) or write (other methods). |
| 404 | app_not_found | No app with that ID. |
| 404 | challenge_not_found | No challenge with that token on this app. |
Create a challenge#
Creates a challenge for a user of the app and starts delivery.
/v1/auth/:app_id/challengesApp key or M2M tokenSend the signing-in person's IP address in the X-Scute-Client-IP header when the workspace enforces IP rules. It is read only on calls made with an API key or M2M token; without it the address is not checked.
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges \ -H "Authorization: Bearer $SCUTE_APP_SECRET" \ -H "Content-Type: application/json" \ -d '{ "purpose": "verify_identity", "method": "email_otp", "identifier": "jane@acme.com", "metadata": { "ticket_id": "TKT-4821" } }'{ "challenge": { "id": "0193f901-7c1d-7b3b-9a10-2f6f1c0d3b7c", "app_id": "app_51c30388vR9p2Lk7QwM4", "token": "ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E", "short_url": "https://verify.example.com/v/aB3xY9Qk", "status": "pending", "purpose": "verify_identity", "method": "email_otp", "channel": "email", "identifier": "jane@acme.com", "metadata": { "ticket_id": "TKT-4821" }, "remaining_attempts": 3, "max_attempts": 3, "time_remaining": 599, "delivery_required": true, "expires_at": "2026-11-19T14:10:00.000Z", "created_at": "2026-11-19T14:00:00.000Z" }}The example shows a subset of the challenge object. The full set of fields is the same as on Create a workspace challenge.
| Status | error_code | When |
|---|---|---|
| 400 | identifier_required | No app_user_id, user_id, identifier, email or phone. |
| 400 | invalid_identifier | identifier is not a valid email or phone. |
| 400 | invalid_method | method is not one of the allowed values. |
| 400 | invalid_request | An invalid value, for example mode on a method it does not apply to. |
| 404 | app_user_not_found, user_not_found | The user does not exist in this app. |
| 422 | sms_not_configured | The method sends an SMS and the app has no SMS provider. |
List an app's challenges#
Every challenge of the app, newest first.
/v1/auth/:app_id/challenges/appApp key or M2M tokencurl "https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/app?status=pending" \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "challenges": [ { "id": "0193f901-7c1d-7b3b-9a10-2f6f1c0d3b7c", "token": "ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E", "status": "pending", "purpose": "verify_identity", "method": "email_otp" } ]}The filter takes the stored status, so filter on completed to get challenges the objects report as verified.
Get a challenge#
Returns the current state of a challenge.
/v1/auth/:app_id/challenges/:tokenApp key or M2M tokencurl https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "challenge": { "token": "ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E", "status": "verified", "purpose": "verify_identity", "method": "email_otp", "remaining_attempts": 2, "verified_at": "2026-11-19T14:02:11.000Z", "completed_at": "2026-11-19T14:02:11.000Z" }}The response is the full challenge object; the example is abbreviated.
Resend a challenge#
Cancels the challenge and creates a new one with the same purpose, method, user, identifier, intent, intent fields, callback URL and metadata. The new challenge has a new token and a new code or link. Only for methods that deliver a message.
/v1/auth/:app_id/challenges/:token/resendApp key or M2M tokencurl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E/resend \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "challenge": { "token": "ch_8KpRsV4n2wQ9yLmZ3xYtB7cD1eF5gH6j", "status": "pending", "purpose": "verify_identity", "method": "email_otp", "expires_at": "2026-11-19T14:15:00.000Z" }}The response is the full object of the new challenge; the example is abbreviated. The challenge.resent event names the old and the new challenge.
| Status | error_code | When |
|---|---|---|
| 422 | cannot_resend | The method delivers nothing. |
| 422 | challenge_inactive | The challenge is no longer pending, or it has expired. |
Deny a challenge#
Rejects a pending challenge. A denial is recorded as the person's decision. When the challenge has a callback_url, Scute calls it with status: "denied".
/v1/auth/:app_id/challenges/:token/denyApp key or M2M tokencurl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E/deny \ -H "Authorization: Bearer $SCUTE_APP_SECRET" \ -H "Content-Type: application/json" \ -d '{ "reason": "caller could not confirm the ticket" }'{ "challenge": { "token": "ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E", "status": "denied", "purpose": "verify_identity", "method": "email_otp", "expires_at": "2026-11-19T14:10:00Z", "remaining_attempts": 3, "time_remaining": 540, "delivery_required": true }}This response uses the short challenge form: token, status, purpose, method, expires_at, remaining_attempts, time_remaining, intent (when set) and delivery_required. status here is the stored status.
422 challenge_not_pending when the challenge is already completed, failed, expired, cancelled or denied.
Cancel a challenge#
Cancels a pending challenge. Use it when the action that needed the verification was abandoned. For a rejection, use deny.
/v1/auth/:app_id/challenges/:tokenApp key or M2M tokencurl -X DELETE https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E \ -H "Authorization: Bearer $SCUTE_APP_SECRET"Returns 204 with an empty body. 422 challenge_not_pending when the challenge is not pending.
Approve a challenge#
Completes a pending challenge without a code. Only for methods that are completed by approving: magic_link, push and webauthn. Other methods are completed by their own check.
/v1/auth/:app_id/challenges/:token/approveApp key or M2M tokencurl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E/approve \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "challenge": { "token": "ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E", "status": "verified" }}| Status | error_code | When |
|---|---|---|
| 403 | operator_not_allowed | Called by a person signed in to the dashboard. |
| 422 | challenge_not_approvable | The method is completed by its own verification, not by approving. |
| 422 | The challenge is not pending. The body carries error and the challenge. |
A completed challenge also authorizes nothing in the helpdesk when it was approved: see Helpdesk actions.
Claim a session#
For an authenticate or mfa challenge with the method entra_push or push, which completes in the background: after the challenge reports verified, your server claims the person's session here. A challenge issues one session.
/v1/auth/:app_id/challenges/:token/sessionApp key or M2M tokencurl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E/session \ -H "Authorization: Bearer $SCUTE_APP_SECRET"The response holds the session tokens and challenge in the short form.
| Status | error_code | When |
|---|---|---|
| 403 | operator_not_allowed | Called by a person signed in to the dashboard. |
| 409 | challenge_not_completed | Still pending. Keep polling. |
| 409 | session_already_issued | A session was already claimed for this challenge. |
| 422 | not_a_push_challenge | The method is not entra_push or push. |
| 422 | invalid_purpose | The purpose is not authenticate or mfa. |
| 422 | challenge_not_approved | The challenge ended without completing. |
| 422 | no_user | The challenge has no user. |
To check a code your user typed into your own UI, use POST /v1/auth/:app_id/challenges/:token/verify, covered with sign-in.