cURL
curl --request POST \ --url https://passkeys.hanko.io/{tenant_id}/transaction/initialize \ --header 'Content-Type: application/json' \ --header 'apiKey: <apikey>' \ --data ' { "user_id": "<string>", "transaction_id": "<string>", "transaction_data": {} } '
{ "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" }
Initializes a new transaction for an existing user
Secret API key
32
UUID of the tenant
36
["1f496bcd-49da-4839-a02f-7ce681ccb488"]
Needs to be a tenant-wide unique identifier
128
Example response
Show child attributes
public-key
ble
hybrid
internal
nfc
usb
discouraged
preferred
required
optional
silent
Was this page helpful?