These routes look after one user's sign-in security when they cannot do it themselves, for example after a lost phone. They take the app key (or a workspace key above the app). No recent sign-in by the user is asked for, since the caller is not the user.
The user is told by email when an admin resets their MFA, removes a method, makes new backup codes or trusts a device again. Each change is recorded as an event.
The MFA view#
The MFA routes answer with the user's MFA state:
{ "mfa_enabled": true, "enrollments": [ { "id": "0193f960-aaaa-7bbb-8ccc-000000000001", "method": "totp", "name": "Authenticator app", "verified": true, "is_default": true, "last_used_at": "2026-11-17T08:01:12Z", "created_at": "2026-10-02T14:22:00Z" } ], "backup_codes_remaining": 8, "backup_codes_total": 10}| Field | Meaning |
|---|---|
| mfa_enabled | true when the user has at least one verified method. |
| enrollments[].method | totp, sms, email, webauthn or push. |
| enrollments[].verified | false for a method the user started but did not finish setting up. |
| backup_codes_remaining | Unused backup codes. |
Errors#
Every route on this page except Stop trusting a device can return:
| Status | Error | When |
|---|---|---|
| 403 | protected_user | The user is protected from being signed in as (one of the app's protected roles, or the no_impersonation attribute), so an admin cannot change their sign-in security. |
| 404 | user_not_found | No user with that id. |
Reset MFA#
/v1/:app_id/users/:id/mfaApp keyRemoves every MFA method and backup code. If the app requires MFA, the user sets it up again at their next sign-in.
curl -X DELETE https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/mfa \ -H "Authorization: Bearer $SCUTE_APP_SECRET"Returns 200 with the MFA view.
Remove a method#
/v1/:app_id/users/:id/mfa/methods/:method_idApp keyRemoves one method, even the last one. If it was the default, the user's oldest other verified method becomes the default.
curl -X DELETE https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/mfa/methods/$METHOD_ID \ -H "Authorization: Bearer $SCUTE_APP_SECRET"Returns 200 with the MFA view.
| Status | Error | When |
|---|---|---|
| 404 | enrollment_not_found | The user has no method with that id. |
Set the default method#
/v1/:app_id/users/:id/mfa/methods/:method_id/defaultApp keycurl -X PATCH https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/mfa/methods/$METHOD_ID/default \ -H "Authorization: Bearer $SCUTE_APP_SECRET"Returns 200 with the MFA view.
| Status | Error | When |
|---|---|---|
| 404 | enrollment_not_found | The user has no method with that id. |
| 422 | unverified_method | The method is not verified. |
Make new backup codes#
/v1/:app_id/users/:id/mfa/backup_codesApp keyReplaces the user's backup codes with 10 new ones. The old unused codes stop working. The new codes are in this response only.
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/mfa/backup_codes \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "backup_codes": ["4F7A-29D0", "8B2C-7E1F"], "mfa": { "mfa_enabled": true, "enrollments": [], "backup_codes_remaining": 10, "backup_codes_total": 10 }, "message": "Give these to the person securely. They won't be shown again."}| Status | Error | When |
|---|---|---|
| 422 | method_not_allowed | Backup codes are not among the app's allowed MFA methods. |
Trust a device#
/v1/:app_id/users/:id/trusted_devices/:device_idApp keyTrusts a device the user has signed in from, for the app's device_trust_days from now. A trusted device skips the "device not trusted" sign-in check. :device_id is the id of an entry in the user's fingerprints.
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/trusted_devices/$DEVICE_ID \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "device": { "id": "0193f970-aaaa-7bbb-8ccc-000000000009", "ip_address": "203.0.113.7", "country_code": "US", "city": "Austin", "login_count": 14, "first_seen_at": "2026-09-01T12:00:00Z", "last_seen_at": "2026-11-18T09:12:44Z", "trusted": true, "trusted_at": "2026-11-19T10:00:00Z", "trust_expires_at": "2026-12-19T10:00:00Z", "label": "Chrome 131 on Mac" }}The example shows a subset of the fields.
| Status | Error | When |
|---|---|---|
| 404 | device_not_found | The user has no device with that id. |
| 422 | device_trust_off | Trusted devices are off for the app (device_trust_enabled). |
Stop trusting a device#
/v1/:app_id/users/:id/trusted_devices/:device_idApp keyThe user's next sign-in from the device gets the "device not trusted" check again. Returns 200 with { "device": ... } as above, with trusted false.
curl -X DELETE https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/trusted_devices/$DEVICE_ID \ -H "Authorization: Bearer $SCUTE_APP_SECRET"| Status | Error | When |
|---|---|---|
| 404 | No user with that id. | |
| 404 | device_not_found | The user has no device with that id. |