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:
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.
| Status | When |
|---|---|
| 401 | Authorization is missing or is not a workspace key. X-Authorization is missing, or its M2M token or JWT is invalid or expired. |
| 403 | The 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_required | The workspace is not a Master or MSP workspace. |
| 404 | Workspace not found. |
| 422 verification_app_not_configured | The 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.
/v1/workspaces/:workspace_id/challengesWorkspace key + M2M tokencurl -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" } }'{ "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.
| Status | error_code | When |
|---|---|---|
| 400 | identifier_required, invalid_email, invalid_phone, invalid_user_payload | The user could not be resolved from the body. |
| 400 | invalid_request | An invalid value, for example an unsupported delivery_channel or mode. |
| 404 | msp_not_found | msp_id is not an MSP directly under this workspace. |
| 404 | msp_client_app_not_found | The app is not in a client workspace under that MSP. |
| 404 | user_not_found_in_msp_client_app | user_id is not a user of the client app. |
| 409 | identity_conflict | The identifiers in user match different users, or the email or phone belongs to a user with another external_id. Scute does not merge users. |
| 422 | entra_identity_required | entra_push with a user object that has no entra block, for a user with no synced Entra identity. |
| 422 | entra_not_configured, entra_credentials_missing | entra_push for a client with no enabled Entra connection or no usable Entra app credentials. |
| 422 | psa_ticket_invalid, psa_ticket_ambiguous | The 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.
/v1/workspaces/:workspace_id/challenges/:idWorkspace key + M2M tokencurl 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"{ "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.
/v1/workspaces/:workspace_id/challenges/:id/verifyWorkspace key + M2M tokencurl -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" }'{ "status": "completed", "challenge": { "id": "48da3b64-413f-48f3-bd22-40443fc0019d", "status": "verified" }}A wrong code returns 422:
{ "error": "Invalid code", "error_code": "verification_code_invalid", "remaining_attempts": 2, "challenge": { "id": "48da3b64-413f-48f3-bd22-40443fc0019d", "status": "pending" }}| Status | error_code | When |
|---|---|---|
| 404 | challenge_not_found | No such challenge on the verification app. |
| 422 | challenge_not_verifiable_here | Another method, or the purpose authenticate, mfa or change_identifier. |
| 422 | code_required | code is blank. |
| 422 | verification_code_invalid | The 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.
/v1/workspaces/:workspace_id/challenges/:id/duo-passcodeWorkspace key + M2M tokencurl -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" }'{ "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_result | Meaning |
|---|---|
| verified | Duo accepted it. The challenge is completed. |
| incorrect | Duo refused it. attempts_left says how many tries remain. |
| failed | The challenge failed (third incorrect passcode, or Duo could not be reached). error says why. |
| not_pending | The challenge is no longer pending. |
| invalid | Not a passcode-mode Duo challenge, or passcode is blank. |
404 with challenge_not_found when no such challenge belongs to the verification app.