API reference

Workspace challenges

Verify a user of a client app from a Master or MSP workspace, through the workspace's verification app.

A workspace challenge is created on a Master or MSP workspace for a user in one of its client apps. The challenge belongs to the workspace's verification app, so delivery, templates and the custom domain come from one place. The verify page shows the MSP's name, logo and color.

Authentication#

Send a workspace key and a second credential:

Headershttp
Authorization:   Bearer scworks_...X-Authorization: Bearer scm2m_...

X-Authorization carries an M2M token of an app in the workspace the key identifies, or the JWT of a member of that workspace. The workspace in the URL must be the one the key belongs to.

StatusWhen
401Authorization is missing or is not a workspace key. X-Authorization is missing, or its M2M token or JWT is invalid or expired.
403The key does not belong to the workspace in the URL. The M2M token belongs to an app in another workspace. The JWT user is not a member. The M2M token lacks the scope (insufficient_scope).
403 integrator_workspace_requiredThe workspace is not a Master or MSP workspace.
404Workspace not found.
422 verification_app_not_configuredThe workspace has no verification app, directly or from a workspace above it.

Create a workspace challenge#

Creates the challenge and starts delivery. Scute resolves the verification app by walking up from the workspace in the URL.

POST/v1/workspaces/:workspace_id/challengesWorkspace key + M2M token
workspace_idstringrequired
Path. UUID or slug of the Master or MSP workspace.
msp_idstringrequired
The MSP directly under this workspace: its msp_... ID, its workspace UUID or its slug.
msp_client_app_idstringrequired
The client app, in a client workspace under that MSP. app_... ID or UUID.
user_idstring
A user that exists in the client app. The app user ID or the Scute user ID. Send this, the email and phone pair, or user.
emailstring
With phone, finds or creates the user in the client app. Both are required when user_id and user are absent.
phonestring
With email. Stored on the user only when the user has no phone yet.
userobject
Inline user: external_id, email, phone, first_name, last_name (or name), entra (upn, oid, tid). Matched on external_id, then email, then phone. At least one of external_id, email, phone is required, and a new user needs email or phone. A blank email or phone on an existing user is filled in; a set one is never overwritten. A supplied name replaces the stored name.
purposestring
See Verification. Default verify_identity.
methodstring
See Verification. Default magic_link.
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. Without it Scute sends by SMS when the user has a phone and SMS is enabled, else by email.
metadataobject
Stored on the challenge, returned in webhooks and in the challenge object. ticket_id, contact_id, contact_name, company_id and contact_email are copied into the scute_token. redirect_url sets where the person goes after verifying. The msp key is reserved: Scute writes it.
templateobject
Message text for this challenge only: sms, body, subject. See Templates.
callback_urlstring
Scute calls this URL when the challenge is completed or denied.
intentstring
Your name for the action being verified. Returned in the scute_token.
intent_fieldsobject
Fields that go with the intent.
initiator_typestring
Who started it, recorded on the challenge.
initiator_idstring
ID of the initiator.
psa_ticketobject
A PSA ticket that gets an internal note with the outcome: ticket_id with connection_id or provider. Without either, the client's only PSA connection is used.
Requestbash
curl -X POST https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/challenges \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{    "msp_id": "msp_a4b2c1KQ7nVx9LpRsT2u",    "msp_client_app_id": "app_3mxZRrzWxhPZ08dXvqq6",    "user": { "external_id": "c_abc123", "email": "jane@acme.com", "phone": "+15551234567" },    "method": "sms_otp",    "metadata": { "ticket_id": "TKT-4821", "contact_name": "Jane Doe" }  }'
Response 201json
{  "challenge": {    "id": "48da3b64-413f-48f3-bd22-40443fc0019d",    "verification_id": "48da3b64-413f-48f3-bd22-40443fc0019d",    "app_id": "app_51c30388vR9p2Lk7QwM4",    "app_user_id": "81c579f8-0cfa-40b6-829a-3a4c3f56ca81",    "token": "ch_mKEx9xTcM9xxW-8q63Jl7OKW-wjamecE",    "short_url": "https://verify.example.com?token=aB3dE5fG",    "status": "pending",    "purpose": "verify_identity",    "method": "sms_otp",    "channel": "sms",    "verification_type": "otp",    "identifier": "+15551234567",    "recipient": { "id": "123b909c-8b87-4e62-b0ab-06f353e5475f", "name": "Jane Doe", "email": "jane@acme.com", "phone": "+15551234567" },    "metadata": {      "ticket_id": "TKT-4821",      "contact_name": "Jane Doe",      "msp": {        "id": "msp_a4b2c1KQ7nVx9LpRsT2u",        "workspace_id": "5b1f0c9e-2a7d-4c3b-9e41-7d2f6a8b9c10",        "name": "Acme MSP",        "logo_url": null,        "primary_color": null,        "msp_client_app_id": "app_3mxZRrzWxhPZ08dXvqq6",        "msp_client_workspace_id": "c4d2e8a1-6f3b-4a59-8b7e-1e9d0c2f3a44"      }    },    "entra_number": null,    "entra_phase": null,    "attempts": [],    "remaining_attempts": 3,    "max_attempts": 3,    "time_remaining": 599,    "delivery_required": true,    "callback_url": null,    "expires_at": "2026-11-19T14:10:00.000Z",    "verified_at": null,    "completed_at": null,    "created_at": "2026-11-19T14:00:00.000Z"  }}

The example shows a subset of the fields. app_id is the verification app that owns the challenge, not the client app. Use it, with token, on the app challenge endpoints.

channel is derived from method: email_otp and magic_link report email, sms_otp reports sms, entra_push, push and duo report push. For a magic link sent by SMS, the channel you forced is in metadata.delivery_channel.

There is no hourly per-person limit on this route.

Statuserror_codeWhen
400identifier_required, invalid_email, invalid_phone, invalid_user_payloadThe user could not be resolved from the body.
400invalid_requestAn invalid value, for example an unsupported delivery_channel or mode.
404msp_not_foundmsp_id is not an MSP directly under this workspace.
404msp_client_app_not_foundThe app is not in a client workspace under that MSP.
404user_not_found_in_msp_client_appuser_id is not a user of the client app.
409identity_conflictThe identifiers in user match different users, or the email or phone belongs to a user with another external_id. Scute does not merge users.
422entra_identity_requiredentra_push with a user object that has no entra block, for a user with no synced Entra identity.
422entra_not_configured, entra_credentials_missingentra_push for a client with no enabled Entra connection or no usable Entra app credentials.
422psa_ticket_invalid, psa_ticket_ambiguousThe PSA ticket reference does not resolve for this client, or the client has several PSA connections and none was named.

A duo challenge for a client with no Duo connection, or for a person with no Duo username, also returns 422.

Get a workspace challenge#

Returns a challenge by its ID. The challenge must belong to this workspace's verification app.

GET/v1/workspaces/:workspace_id/challenges/:idWorkspace key + M2M token
workspace_idstringrequired
Path. UUID or slug of the Master or MSP workspace.
idstringrequired
Path. The challenge id (UUID), not the token.
Requestbash
curl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/challenges/48da3b64-413f-48f3-bd22-40443fc0019d \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "challenge": {    "id": "48da3b64-413f-48f3-bd22-40443fc0019d",    "token": "ch_mKEx9xTcM9xxW-8q63Jl7OKW-wjamecE",    "status": "verified",    "purpose": "verify_identity",    "method": "sms_otp",    "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. For entra_push, poll entra_phase and entra_number here.

404 with challenge_not_found when no challenge with that ID belongs to the verification app.

Submit a code#

Completes an sms_otp or email_otp challenge with the code the person reads out. Only for the purposes verify_identity, step_up, verify_contact and custom. The result is the verification, never a session.

POST/v1/workspaces/:workspace_id/challenges/:id/verifyWorkspace key + M2M token
idstringrequired
Path. The challenge id.
codestringrequired
The code the person received.
Requestbash
curl -X POST https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/challenges/48da3b64-413f-48f3-bd22-40443fc0019d/verify \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{ "code": "482913" }'
Response 200json
{  "status": "completed",  "challenge": { "id": "48da3b64-413f-48f3-bd22-40443fc0019d", "status": "verified" }}

A wrong code returns 422:

Response 422json
{  "error": "Invalid code",  "error_code": "verification_code_invalid",  "remaining_attempts": 2,  "challenge": { "id": "48da3b64-413f-48f3-bd22-40443fc0019d", "status": "pending" }}
Statuserror_codeWhen
404challenge_not_foundNo such challenge on the verification app.
422challenge_not_verifiable_hereAnother method, or the purpose authenticate, mfa or change_identifier.
422code_requiredcode is blank.
422verification_code_invalidThe code is wrong. remaining_attempts says how many tries are left.

Submit a Duo passcode#

For a duo challenge created with mode: "passcode": submits the passcode the person reads from Duo Mobile or a hardware token. Scute checks it with the client's Duo Auth API. Three incorrect passcodes fail the challenge.

POST/v1/workspaces/:workspace_id/challenges/:id/duo-passcodeWorkspace key + M2M token
idstringrequired
Path. The challenge id.
passcodestringrequired
The Duo passcode.
Requestbash
curl -X POST https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/challenges/48da3b64-413f-48f3-bd22-40443fc0019d/duo-passcode \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{ "passcode": "123456" }'
Response 200json
{  "challenge": { "id": "48da3b64-413f-48f3-bd22-40443fc0019d", "status": "pending" },  "passcode_result": "incorrect",  "attempts_left": 2}

The status is 200 whatever the passcode outcome. Read passcode_result:

passcode_resultMeaning
verifiedDuo accepted it. The challenge is completed.
incorrectDuo refused it. attempts_left says how many tries remain.
failedThe challenge failed (third incorrect passcode, or Duo could not be reached). error says why.
not_pendingThe challenge is no longer pending.
invalidNot a passcode-mode Duo challenge, or passcode is blank.

404 with challenge_not_found when no such challenge belongs to the verification app.