POST

https://{tenant_id}.hanko.io

/
webauthn
/
login
/
initialize
curl --request POST \
  --url https://{tenant_id}.hanko.io/webauthn/login/initialize \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"
}'
{
  "publicKey": {
    "challenge": "qgOI+0KpGnl9NOqaT6dfsYvi96R87LgpErnvePeOgSU=",
    "timeout": 60000,
    "rpId": "localhost",
    "allowCredentials": [
      {
        "type": "public-key",
        "id": "Mepptysj5ZZrTlg0qiLbsZ068OtQMeGVAikVy2n1hvvG..."
      }
    ],
    "userVerification": "required"
  }
}

Body

application/json
user_id
string

The ID of the user on whose behalf WebAuthn login should be performed

Response

200 - application/json
publicKey
object