Register a passkey unlocker + its signed add(passkey member) statement
POST
/v1/account/passkeys
const url = 'https://app.skillpouch.net/v1/account/passkeys';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"response":{"additionalProperty":"example"},"label":"example","statement":{"statement":"example","signature":"example"},"key_envelopes":[]}'};
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://app.skillpouch.net/v1/account/passkeys \ --header 'Content-Type: application/json' \ --data '{ "response": { "additionalProperty": "example" }, "label": "example", "statement": { "statement": "example", "signature": "example" }, "key_envelopes": [] }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
response
required
object
key
additional properties
label
string
statement
required
object
statement
required
string
signature
required
string
key_envelopes
Array<object>
object
pouch_id
required
string format: uuid
member_id
required
string format: uuid
key_gen
required
integer
hpke_enc
required
string
ciphertext
required
string
created_by_member
required
string format: uuid
signature
required
string
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
ok
required
boolean
data
required
meta
required
object
request_id
required
string
next_cursor
string | null
Example
{ "ok": true}