POST

https://passkeys.hanko.io

/
{tenant_id}
/
registration
/
initialize
curl --request POST \
  --url https://passkeys.hanko.io/{tenant_id}/registration/initialize \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <apikey>' \
  --data '{
  "user_id": "<string>",
  "username": "<string>",
  "icon": "<string>",
  "display_name": "<string>"
}'
{
  "publicKey": {
    "rp": {
      "id": "<string>",
      "name": "<string>",
      "icon": "<string>"
    },
    "user": {
      "id": "<string>",
      "displayName": "<string>",
      "name": "<string>",
      "icon": "<string>"
    },
    "challenge": "<string>",
    "pubKeyCredParams": [
      {
        "type": "<string>",
        "alg": 123
      }
    ],
    "timeout": 123,
    "excludeCredentials": [
      {
        "type": "<string>",
        "id": "<string>",
        "transports": [
          "<string>"
        ]
      }
    ],
    "authenticatorSelection": {
      "authenticatorAttachement": "<string>",
      "requireResidentKey": true,
      "residentKey": "<string>",
      "userVerification": "<string>"
    },
    "attestation": "<string>",
    "extensions": [
      {}
    ]
  }
}

Headers

apiKey
string
required

Secret API key

Path Parameters

tenant_id
string
required

UUID of the tenant

Body

application/json
user_id
string
required
username
string
required
icon
string | null
display_name
string | null

Response

200 - application/json
publicKey
object
required