API reference

App challenges

Create, list, read, resend, deny and cancel challenges on one app.

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.

Statuserror_codeWhen
401Missing or invalid credentials.
403The key does not own this app (API key not authorized for this app).
403app_not_in_scopeThe M2M token's app is outside the app's workspace tree.
403insufficient_scopeThe M2M token lacks read (for GET) or write (other methods).
404app_not_foundNo app with that ID.
404challenge_not_foundNo challenge with that token on this app.

Create a challenge#

Creates a challenge for a user of the app and starts delivery.

POST/v1/auth/:app_id/challengesApp key or M2M token
app_idstringrequired
Path. app_... ID or UUID.
purposestring
See Verification. Default custom.
methodstring
See Verification. Default magic_link when the user has an email or phone.
app_user_idstring
An existing app user. 404 app_user_not_found when it does not exist.
user_idstring
The Scute user ID of an existing user of this app. 404 user_not_found otherwise.
identifierstring
An email or phone. Scute finds or creates the user. For sms_otp and magic_link, it is also the address the message goes to.
emailstring
Finds or creates the user by email when no user or identifier is given.
phonestring
Finds or creates the user by phone when no email is given. Stored on an email user only when the user has no phone.
namestring
Stored on a found or created user that has no name.
modestring
For entra_push: push, approve or code. For duo: push (default) or passcode.
delivery_channelstring
email or sms, forces the channel of a magic_link. Default: SMS when the user has a phone and SMS is enabled, else email.
intentstring
Your name for the action being verified.
intent_fieldsobject
Fields that go with the intent.
metadataobject
Stored on the challenge and returned in webhooks. Scute adds contact_email, contact_phone and contact_name from the user when you do not send them.
redirect_urlstring
Where the hosted verify page sends the person after verifying. Stored as metadata.redirect_url.
templateobject
Message text for this challenge only. See Templates.
callback_urlstring
Scute calls this URL when the challenge is completed or denied.
initiator_typestring
Who started it, for example user, service, ai_agent or system.
initiator_idstring
ID of the initiator.

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

Requestbash
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" }  }'
Response 201json
{  "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.

Statuserror_codeWhen
400identifier_requiredNo app_user_id, user_id, identifier, email or phone.
400invalid_identifieridentifier is not a valid email or phone.
400invalid_methodmethod is not one of the allowed values.
400invalid_requestAn invalid value, for example mode on a method it does not apply to.
404app_user_not_found, user_not_foundThe user does not exist in this app.
422sms_not_configuredThe method sends an SMS and the app has no SMS provider.

List an app's challenges#

Every challenge of the app, newest first.

GET/v1/auth/:app_id/challenges/appApp key or M2M token
purposestring
Query. Only this purpose.
challenge_methodstring
Query. Only this method.
statusstring
Query. Only this stored status: pending, completed, failed, expired, cancelled or denied.
Requestbash
curl "https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/app?status=pending" \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{  "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.

GET/v1/auth/:app_id/challenges/:tokenApp key or M2M token
app_idstringrequired
Path. The app that owns the challenge.
tokenstringrequired
Path. The challenge token (ch_...).
Requestbash
curl https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{  "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.

POST/v1/auth/:app_id/challenges/:token/resendApp key or M2M token
tokenstringrequired
Path. Token of the challenge to resend.
Requestbash
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E/resend \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{  "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.

Statuserror_codeWhen
422cannot_resendThe method delivers nothing.
422challenge_inactiveThe 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".

POST/v1/auth/:app_id/challenges/:token/denyApp key or M2M token
tokenstringrequired
Path. The challenge token.
reasonstring
Free text. Stored as metadata.denial_reason and sent to the callback as denial_reason.
Requestbash
curl -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" }'
Response 200json
{  "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.

DELETE/v1/auth/:app_id/challenges/:tokenApp key or M2M token
tokenstringrequired
Path. The challenge token.
Requestbash
curl -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.

POST/v1/auth/:app_id/challenges/:token/approveApp key or M2M token
tokenstringrequired
Path. The challenge token.
Requestbash
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E/approve \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{  "challenge": { "token": "ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E", "status": "verified" }}
Statuserror_codeWhen
403operator_not_allowedCalled by a person signed in to the dashboard.
422challenge_not_approvableThe method is completed by its own verification, not by approving.
422The 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.

POST/v1/auth/:app_id/challenges/:token/sessionApp key or M2M token
tokenstringrequired
Path. The challenge token.
Requestbash
curl -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.

Statuserror_codeWhen
403operator_not_allowedCalled by a person signed in to the dashboard.
409challenge_not_completedStill pending. Keep polling.
409session_already_issuedA session was already claimed for this challenge.
422not_a_push_challengeThe method is not entra_push or push.
422invalid_purposeThe purpose is not authenticate or mfa.
422challenge_not_approvedThe challenge ended without completing.
422no_userThe 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.