PeerServ
Facilitates general secure peer-to-peer message exchanges between parties.
Learn more on GitHub
For a UI that can interact with PeerServ, go here.
Endpoint Documentation
post /sendMessage
Use this route to send a message to a recipient's message box.
Parameters
{ "message": { "recipient": "028d37b941208cd6b8a4c28288eda5f2f16c2b3ab0fcb6d13c18b47fe37b971fc1", "messageBox": "payment_inbox", "messageId": "xyz123", "body": "{}" } }
Example Response
{ "status": "success" }
post /listMessages
Use this route to list messages from your messageBox.
Parameters
- messageBox: The name of the messageBox you would like to list messages from.
Example Response
{ "status": "success", "messages": [ { "messageId": "3301", "body": "{}", "sender": "028d37b941208cd6b8a4c28288eda5f2f16c2b3ab0fcb6d13c18b47fe37b971fc1" } ] }
post /acknowledgeMessage
Use this route to acknowledge a message has been received
Parameters
{ "messageIds": [ "3301" ] }
Example Response
{ "status": "success" }
Built with love in 2023 by the Babbage Team