API reference

Passkeys

Sign in and sign up with WebAuthn passkeys, and list, add, rename or remove a person's passkeys.

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#

POST/v1/auth/:app_id/webauthn/login/initializeNone
identifierstringrequired
The person's email or phone.
cURLbash
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/webauthn/login/initialize \  -H "Content-Type: application/json" \  -d '{"identifier": "ada@example.com"}'
Response 200 (options shortened)json
{  "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.

Statuserror_codeWhen
400invalid_identifierInvalid email or phone.
403passkeys_disabledPasskeys are off for the app.
403sso_requiredThe email's domain must sign in with SAML SSO.
405user_not_existsNo 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.
429More than 30 lookups from one IP address, or 10 for one identifier, in a minute.

Finish a passkey sign-in#

POST/v1/auth/:app_id/webauthn/login/finalizeNone

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

cURLbash
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/webauthn/login/finalize \  -H "Content-Type: application/json" \  -d @credential.json

Returns a token set with status 200, or an MFA step when the app requires one after passkeys.

Statuserror_codeWhen
403security_blockAttack protection refused the sign-in.
404session_not_foundNo live ceremony matches the challenge.
502The credential did not verify.

Sign up#

Start a passkey sign-up#

POST/v1/auth/:app_id/webauthn/register/initializeNone

Creates the person and returns registration options. The sign-up rules apply as for any sign-up.

identifierstringrequired
The new person's email or phone.
user_metaobject
Values for the app's user fields, keyed by field name.
cURLbash
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"}'
Response 200 (options shortened)json
{  "user_verification": "required",  "options": {    "challenge": "y3Jp0mJqU0hX2a9b8c7d6e5f4g3h2i1j",    "user": { "id": "0f4b9c2e7a1d", "name": "ada@example.com" }  },  "user_meta_errors": null}

Pass options to navigator.credentials.create().

Statuserror_codeWhen
400invalid_identifierInvalid email or phone.
403signup_disabledSign-up is closed. Also returned for an existing account on such an app.
409user_existsThe identifier already has an account. Use the sign-in ceremony.

Finish a passkey sign-up#

POST/v1/auth/:app_id/webauthn/register/finalizeNone

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

cURLbash
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/webauthn/register/finalize \  -H "Content-Type: application/json" \  -d @credential.json
Statuserror_codeWhen
404session_not_foundNo live ceremony matches the challenge.
502webauthn_verification_errorThe credential did not verify.
502webauthn_register_errorThe passkey could not be saved.

Manage a person's passkeys#

These routes take the person's access token.

List passkeys#

GET/v1/auth/:app_id/devicesAccess token
cURLbash
curl https://api.scute.io/v1/auth/$SCUTE_APP_ID/devices \  -H "X-Authorization: Bearer $ACCESS_TOKEN"
Response 200json
[  {    "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.

POST/v1/auth/:app_id/devices/registerAccess token

Returns { "user_verification": "required", "options": { ... } } for navigator.credentials.create().

POST/v1/auth/:app_id/devices/finalizeAccess token

Takes the credential from navigator.credentials.create() and returns the new passkey:

Response 200json
{  "id": "0193fb20-3d4e-7f5a-8b6c-7d8e9f0a1b2c",  "nickname": null,  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) ..."}
Statuserror_codeWhen
400No response in the body.
403passkeys_disabledPasskeys are off for the app.
403impersonatingThe session is a support session opened as this person.
404session_not_foundNo ceremony matches the challenge.

Rename a passkey#

PATCH/v1/auth/:app_id/devices/:idAccess token
device.nicknamestringrequired
The new name, 1 to 64 characters.
cURLbash
curl -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.

Statuserror_codeWhen
404device_not_foundNo passkey with that ID for this person.
422invalid_nicknameNickname missing or longer than 64 characters.

Remove a passkey#

DELETE/v1/auth/:app_id/devices/:idAccess token
cURLbash
curl -X DELETE https://api.scute.io/v1/auth/$SCUTE_APP_ID/devices/$DEVICE_ID \  -H "X-Authorization: Bearer $ACCESS_TOKEN"
Response 200json
{ "message": "ok", "verified": true }

Returns 404 device_not_found when the passkey is not the person's.