Send chat message
Relays a pre-signed chat envelope to the node the recipient is registered on. The endpoint never signs on the caller's behalf.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://ldn.core.test.network/chat/send" \ -H "Content-Type: application/json" \ -d '{ "id": "f2a3b4c5d6e7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3", "from": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2", "to": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2", "message": "Hello, world!", "timestamp": 1709500120000000000, "signature": "string" }'{
"ok": true
}{
"error": "invalid signature"
}{
"error": "invalid signature"
}