Finish passkey registration
/auth/passkey/registration/verify
Request Body
The PublicKeyCredential returned by navigator.credentials.create(), JSON-serialized (base64url). Extra fields the browser adds (clientExtensionResults, authenticatorAttachment) are accepted and ignored.
3 properties
base64url. Max 64 KB.
base64url. Max 64 KB.
Transport hints reported by the authenticator. Max 16 entries of 64 characters each.
["internal","hybrid"]base64url credential ID. Max 64 KB.
base64url credential ID. Max 64 KB.
Always public-key. Max 64 characters.
public-keyOptional label for the credential. Trimmed; blank becomes null.
MacBook Touch IDResponse Body
A registered WebAuthn credential, sanitized for display. Credential material (credential_id, public_key) is never returned.
Whether the credential is currently synced into a backup (the WebAuthn BS flag). Refreshed on every sign-in.
trueISO-8601 UTC timestamp of registration.
2026-07-01T11:03:20.000ZmultiDevice for a synced passkey (iCloud Keychain, Google Password Manager); singleDevice for a device-bound one (a security key, or a platform authenticator that does not sync).
multiDevicesingleDevicemultiDevicenull
The unique ID of the passkey. Use this to rename or delete it.
1ba1f401-7183-47c5-9e39-e8e257e3c795ISO-8601 UTC timestamp of the last successful sign-in with this passkey; null if it has never been used.
2026-07-23T09:12:44.000ZUser-supplied label, or null when the passkey was registered without one.
MacBook Touch IDtruecurl -X POST 'https://api.truto.one/auth/passkey/registration/verify' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json' \
-d '{
"response": {},
"name": "MacBook Touch ID"
}'const body = {
"response": {},
"name": "MacBook Touch ID"
};
const response = await fetch('https://api.truto.one/auth/passkey/registration/verify', {
method: 'POST',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/auth/passkey/registration/verify"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
payload = {
"response": {},
"name": "MacBook Touch ID"
}
response = requests.post(url, headers=headers, params=params, json=payload)
print(response.json())