Start passkey registration
POST
/api/user/security/passkeys/register/start
const url = 'https://hitkeep.com/api/user/security/passkeys/register/start';const options = { method: 'POST', headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'}, body: '{"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://hitkeep.com/api/user/security/passkeys/register/start \ --header 'Content-Type: application/json' \ --cookie hk_token=<hk_token> \ --data '{ "name": "example" }'Creates passkey registration challenge and options.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
name
string
Example generated
{ "name": "example"}Responses
Section titled “ Responses ”Passkey creation options
Media type application/json
object
publicKey
object
key
additional properties
any
Example generated
{ "publicKey": {}}