cURL
curl --request POST \ --url https://passkeys.hanko.io/{tenant_id}/mfa/login/initialize \ --header 'Content-Type: application/json' \ --header 'apiKey: <apikey>' \ --data '{ "user_id": "<string>" }'
{ "publicKey": { "challenge": "<string>", "timeout": 123, "rpId": "<string>", "allowCredentials": [ { "type": "public-key", "id": "<string>", "transports": [ "ble" ] } ], "userVerification": "discouraged", "extensions": { "appid": true, "appidExclude": true, "credProps": { "rk": true } } }, "mediation": "optional" }
Initialize a login flow for MFA
Secret API key
32
Tenant ID
Example response
Show child attributes
optional
required
silent
Was this page helpful?