Passkey routes run the WebAuthn ceremonies. Each ceremony is two calls: initialize returns WebAuthn options for navigator.credentials.get() or create(), and finalize takes the browser's credential response and returns a token set.
Passkeys must be on for the app (they are by default). With passkeys off, every route on this page returns 403 passkeys_disabled.
By default a passkey sign-in counts as both factors, so no MFA step follows it. Turning off the app's "passkeys skip MFA" setting makes passkey sign-ins go through the MFA step too.
Sign in#
Start a passkey sign-in#
/v1/auth/:app_id/webauthn/login/initializeNonecurl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/webauthn/login/initialize \ -H "Content-Type: application/json" \ -d '{"identifier": "ada@example.com"}'{ "user_verification": "required", "options": { "challenge": "y3Jp0mJqU0hX2a9b8c7d6e5f4g3h2i1j", "allowCredentials": [ { "type": "public-key", "id": "AXk3mP0qR2sT4uV6wX8yZ0a1b2c3" } ] }}Pass options to navigator.credentials.get(). allowCredentials lists the person's registered passkeys.
| Status | error_code | When |
|---|---|---|
| 400 | invalid_identifier | Invalid email or phone. |
| 403 | passkeys_disabled | Passkeys are off for the app. |
| 403 | sso_required | The email's domain must sign in with SAML SSO. |
| 405 | user_not_exists | No account for the identifier. On an app with sign-up closed, the route returns options instead, so the answer does not reveal which accounts exist. |
| 429 | More than 30 lookups from one IP address, or 10 for one identifier, in a minute. |
Finish a passkey sign-in#
/v1/auth/:app_id/webauthn/login/finalizeNoneSend the credential the browser returned, as JSON (the PublicKeyCredential serialized: id, rawId, type, response with clientDataJSON, authenticatorData, signature and userHandle). Scute finds the ceremony by the challenge inside response.clientDataJSON.
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/webauthn/login/finalize \ -H "Content-Type: application/json" \ -d @credential.jsonReturns a token set with status 200, or an MFA step when the app requires one after passkeys.
| Status | error_code | When |
|---|---|---|
| 403 | security_block | Attack protection refused the sign-in. |
| 404 | session_not_found | No live ceremony matches the challenge. |
| 502 | The credential did not verify. |
Sign up#
Start a passkey sign-up#
/v1/auth/:app_id/webauthn/register/initializeNoneCreates the person and returns registration options. The sign-up rules apply as for any sign-up.
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/webauthn/register/initialize \ -H "Content-Type: application/json" \ -d '{"identifier": "ada@example.com"}'{ "user_verification": "required", "options": { "challenge": "y3Jp0mJqU0hX2a9b8c7d6e5f4g3h2i1j", "user": { "id": "0f4b9c2e7a1d", "name": "ada@example.com" } }, "user_meta_errors": null}Pass options to navigator.credentials.create().
| Status | error_code | When |
|---|---|---|
| 400 | invalid_identifier | Invalid email or phone. |
| 403 | signup_disabled | Sign-up is closed. Also returned for an existing account on such an app. |
| 409 | user_exists | The identifier already has an account. Use the sign-in ceremony. |
Finish a passkey sign-up#
/v1/auth/:app_id/webauthn/register/finalizeNoneSend the credential from navigator.credentials.create() as JSON (id, rawId, type, response with clientDataJSON and attestationObject, and authenticatorAttachment). Scute stores the passkey and returns a token set, or the next sign-in step.
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/webauthn/register/finalize \ -H "Content-Type: application/json" \ -d @credential.json| Status | error_code | When |
|---|---|---|
| 404 | session_not_found | No live ceremony matches the challenge. |
| 502 | webauthn_verification_error | The credential did not verify. |
| 502 | webauthn_register_error | The passkey could not be saved. |
Manage a person's passkeys#
These routes take the person's access token.
List passkeys#
/v1/auth/:app_id/devicesAccess tokencurl https://api.scute.io/v1/auth/$SCUTE_APP_ID/devices \ -H "X-Authorization: Bearer $ACCESS_TOKEN"[ { "id": "0193fb20-3d4e-7f5a-8b6c-7d8e9f0a1b2c", "webauthn_cred_id": "AXk3mP0qR2sT4uV6wX8yZ0a1b2c3", "public_key": "pQECAyYgASFYIK...", "nickname": "MacBook Touch ID", "sign_count": 12, "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) ...", "last_used_at": "2026-11-18T09:12:44.000Z", "last_used_ip": "203.0.113.24", "created_at": "2026-10-02T16:20:00.000Z", "updated_at": "2026-11-18T09:12:44.000Z", "type": "platform", "user_id": "0193f900-aaaa-7bbb-8ccc-eeeeeeeeeeee" }]type is the authenticator attachment the browser reported when the passkey was created. user_id is the app user's ID.
Add a passkey#
Two calls, as for sign-up, for a person who is already signed in.
/v1/auth/:app_id/devices/registerAccess tokenReturns { "user_verification": "required", "options": { ... } } for navigator.credentials.create().
/v1/auth/:app_id/devices/finalizeAccess tokenTakes the credential from navigator.credentials.create() and returns the new passkey:
{ "id": "0193fb20-3d4e-7f5a-8b6c-7d8e9f0a1b2c", "nickname": null, "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) ..."}| Status | error_code | When |
|---|---|---|
| 400 | No response in the body. | |
| 403 | passkeys_disabled | Passkeys are off for the app. |
| 403 | impersonating | The session is a support session opened as this person. |
| 404 | session_not_found | No ceremony matches the challenge. |
Rename a passkey#
/v1/auth/:app_id/devices/:idAccess tokencurl -X PATCH https://api.scute.io/v1/auth/$SCUTE_APP_ID/devices/$DEVICE_ID \ -H "X-Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"device": {"nickname": "Work laptop"}}'Returns the passkey in the list shape.
| Status | error_code | When |
|---|---|---|
| 404 | device_not_found | No passkey with that ID for this person. |
| 422 | invalid_nickname | Nickname missing or longer than 64 characters. |
Remove a passkey#
/v1/auth/:app_id/devices/:idAccess tokencurl -X DELETE https://api.scute.io/v1/auth/$SCUTE_APP_ID/devices/$DEVICE_ID \ -H "X-Authorization: Bearer $ACCESS_TOKEN"{ "message": "ok", "verified": true }Returns 404 device_not_found when the passkey is not the person's.