Get E2EE key bundle
GET
/api/keys/{address}
const url = 'http://localhost:3001/api/keys/example';const options = {method: 'GET', 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 GET \ --url http://localhost:3001/api/keys/example \ --header 'Authorization: <Authorization>'Retrieves end-to-end encryption key bundle from mesh DHT with signature verification
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
keyBundle
object
address
string
ed25519PublicKey
Base64 encoded Ed25519
string
identityKey
Base64 encoded X25519
string
oneTimePreKeys
Array<object>
object
keyId
integer
publicKey
Base64 encoded
string
registrationId
integer
signedPreKey
object
keyId
integer
publicKey
Base64 encoded
string
signature
Base64 encoded
string
timestamp
integer
message
string
success
boolean
Examplegenerated
{ "keyBundle": { "address": "example", "ed25519PublicKey": "example", "identityKey": "example", "oneTimePreKeys": [ { "keyId": 1, "publicKey": "example" } ], "registrationId": 1, "signedPreKey": { "keyId": 1, "publicKey": "example", "signature": "example", "timestamp": 1 } }, "message": "example", "success": true}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Not Found
Media typeapplication/json
object
keyBundle
object
address
string
ed25519PublicKey
Base64 encoded Ed25519
string
identityKey
Base64 encoded X25519
string
oneTimePreKeys
Array<object>
object
keyId
integer
publicKey
Base64 encoded
string
registrationId
integer
signedPreKey
object
keyId
integer
publicKey
Base64 encoded
string
signature
Base64 encoded
string
timestamp
integer
message
string
success
boolean
Examplegenerated
{ "keyBundle": { "address": "example", "ed25519PublicKey": "example", "identityKey": "example", "oneTimePreKeys": [ { "keyId": 1, "publicKey": "example" } ], "registrationId": 1, "signedPreKey": { "keyId": 1, "publicKey": "example", "signature": "example", "timestamp": 1 } }, "message": "example", "success": true}Service Unavailable
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}