Skip to content

Publish E2EE key bundle

POST
/api/keys
curl --request POST \
--url http://localhost:3001/api/keys \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "keyBundle": {} }'

Publishes end-to-end encryption key bundle to mesh DHT for secure messaging

Key bundle with identity, signed pre-key, and one-time pre-keys

Media typeapplication/json
object
keyBundle
object
Examplegenerated
{
"keyBundle": {}
}

OK

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Bad Request

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Unauthorized

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Forbidden

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Internal Server Error

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Service Unavailable

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}