Getting Started
Integrations
Resources
API Reference
- Signup
- Login
- Credentials
- Transactions
- MFA
- GETWell-known JWKS
MFA
Start MFA Login
Initialize a login flow for MFA
POST
/
{tenant_id}
/
mfa
/
login
/
initialize
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"
}
Headers
Secret API key
Minimum length:
32
Path Parameters
Tenant ID
Body
application/json
Response
200
application/json
Example response
The response is of type object
.
Was this page helpful?
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"
}