curl --request POST \
  --url https://passkeys.hanko.io/{tenant_id}/transaction/initialize \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <apikey>' \
  --data '{
  "transaction_data": {},
  "transaction_id": "<string>",
  "user_id": "<string>"
}'
{
  "publicKey": {
    "allowCredentials": [
      "<string>"
    ],
    "challenge": "<string>",
    "extensions": [
      {}
    ],
    "rpId": "<string>",
    "timeout": 123,
    "userVerification": "<string>"
  }
}

Headers

apiKey
string
required

Secret API key

Path Parameters

tenant_id
string
required

UUID of the tenant

Body

application/json
transaction_data
object
required
transaction_id
string
required
user_id
string
required

Response

200 - application/json
publicKey
object
required