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
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"
}Secret API key
32Tenant ID
Example response
Show child attributes
discouraged, preferred, required optional, required, silent Was this page helpful?