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

apiKey
string
required

Secret API key

Path Parameters

tenant_id
string
required

Tenant ID

Body

application/json
user_id
string
required

Response

200 - application/json
publicKey
object
mediation
enum<string>
Available options:
optional,
required,
silent