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"]
Example response
The response is of type object.
object
Was this page helpful?