POST
Register a passkey

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Body

application/json
token
string
required
credential
object
required

The PublicKeyCredential, as JSON with base64url byte fields.

name
string
required
Required string length: 1 - 64

Response

Registered.

passkey
object
required
recovery_codes
string[] | null
required

Only when the account had none; shown once.