Claim one-time pre-key
POST
/api/keys/{address}/claim
const url = 'http://localhost:3001/api/keys/example/claim';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3001/api/keys/example/claim \ --header 'Authorization: <Authorization>'Claims a one-time pre-key for establishing E2EE session (client-side tracking)
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”address
required
string
User wallet address
Responses
Section titled “Responses”OK
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}