POST
/
{tenant_id}
/
login
/
initialize
curl --request POST \
  --url https://passkeys.hanko.io/{tenant_id}/login/initialize \
  --header 'Content-Type: application/json' \
  --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"
}

Path Parameters

tenant_id
string
required

UUID of the tenant

Required string length: 36

Body

application/json
Body for login/initialize
user_id
string

optional - when provided the API Key needs to be sent to the server too.

Response

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