To send and receive messages with Nela, all you need to do is implement two API endpoints — Nela handles message reception, while the rest is up to you. The protocol stays out of your way:
For receiving messages ...
PUT /nela/messages/<message_ref>/handshakes/<handshake_ref>
To confirm the existence of the sender and message ...