Dhruv
Dhruv Gupta

An avid traveler with a nerdy streak!

Axonify

Node.jsExpress.jsMongoDBNodeMailer

A simple API that implements public and private key architecture to send and receive messages anonymously.

Project Image

Contents


Overview


Axonify is a simple API that implements public and private key architecture to send and receive messages anonymously. The API generates a public and private key pair for each user. The public key is used to send messages to the user, and the private key is used to view the messages. The API also provides endpoints to send and view messages. You can broadcast your public key to recieve messages.

Endpoints


Getting API key

POST https://axonify.azurewebsites.net/user/new

Body(json):

ParameterTypeDescription
emailstringRequired

Response:

{"message": "Account created successflly, Please check your email for api key" }

Sending Message

  POST https://axonify.azurewebsites.net/msg/new

Body (json):

ParameterTypeDescription
sKeystringRequired , Sender's private key
rKeystringRequired , Receiver's public key
messagestringRequired , Message

Response

{message: "Message sent successfully"}

Viewing Messages

  GET https://axonify.azurewebsites.net/msg/view

Body (json):

ParameterTypeDescription
priKeystringRequired , Your private key

Response

{
  "message": "1 New Messages",
  "data": [
    {
      "msg": "hello world"
    }
  ]
}