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
32
Tenant ID
Example response
The response is of type object
.
Was this page helpful?