Answer the sign-in challenge with a passkey
/v1/auth/mfa/challenge/webauthn/verifyAnswers the second-factor challenge with a passkey assertion response, verified against the challenge's nonce and the stored credential; the signature counter is bumped against replay. The interrupted sign-in then resumes exactly as the authenticator-app answer does, including remember and remember_device. 401 when the token or assertion is wrong. Rate-limited to 10 requests per minute.
Request body
application/json
challenge_tokenstring Required Challenge token returned by /v1/auth/login when `requires_mfa_challenge` was true.
responseobject Required The PublicKeyCredential JSON returned by `navigator.credentials.get()` — id, rawId, type, response { clientDataJSON, authenticatorData, signature, userHandle }, clientExtensionResults.
rememberboolean Optional Keep the session on this device: persist the refresh cookie across browser restarts, as the `remember` flag on `/v1/auth/login` does. Default false.
remember_deviceboolean Optional When true, remember this device so future password sign-ins from this browser skip the second factor, for as long as the shortest `trusted_device_days` across the user's Accounts allows. The response's `device_remembered` says whether a device was stored. Default false.
Responses
application/json
data *LoginResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Rate limit
Returned object
curl -X POST "https://auth.canopy-io.com/v1/auth/mfa/challenge/webauthn/verify" \ -H "Content-Type: application/json" \ -d '{ "challenge_token": "string", "response": {}, "remember": false, "remember_device": false }'
{ "data": { "mfa_enrollment_pending": false, "grace_expires_at": "2026-04-20T12:00:00.000Z", "requires_mfa_enrollment": false, "mfa_enrollment": { "enrollment_token": "string", "available_factors": [ "totp" ], "totp": { "otpauth_uri": "string", "manual_entry_key": "string" } }, "requires_account_selection": false, "requires_mfa_challenge": false, "mfa_challenge": { "challenge_token": "string", "available_factors": [ "totp" ], "expires_at": "2026-04-20T12:00:00.000Z" }, "device_remembered": false, "recovery_codes": [ "string" ], "expires_in": 0, "user": { "id": "string", "email": "string", "first_name": "string", "last_name": "string" }, "access_token": "string", "token_type": "string", "default_environment_slug": "string", "accounts": [ { "account_id": "string", "account_name": "string", "account_slug": "string", "account_role": "string", "applications": [ { "id": "string", "name": "string", "slug": "string" } ] } ], "pending_account_creation": false } }
Tell us how we can improve this guide.