Public Key
GET/pubkey
Returns an ephemeral public key used to encrypt a registration request before submitting it to /register/encrypted. Use the returned public_key to seal the payload, and pass the returned key_id alongside it.
The response also sets a session cookie. Send it back on the follow-up POST /register/encrypted — browsers do this automatically with credentials: "include"; non-browser clients must read Set-Cookie and resend it as Cookie.
Request
Responses
- 200
- 401
Ephemeral public key and key id
Unauthorized