Introduction

In order to access our API, you need to call the endpoint https://api.dialoguewise.com/. Before you can do any operation, you will need to authenticate yourself. This is done by setting the Authentication and Timestamp headers.

Authentication header

The authentication header needs to be passed in the format:

{emailHash}:{message}

emailHash is the hash of your registered email id and message contains hash of the text route and time in the format:

{route}:{time}

route is the path of the API that you are accessing and should be in lower case. time is the current UTC time in the format

dd/MM/yyyy hh:mm:ss AM/PM

The message text needs to be hashed in SHA 256 hash using your API Key.

For example, let’s say you need to get the contents. This is done by calling the /api/dialogue/getcontents API endpoint. So your message part of the header will now be

/api/dialogue/getcontents:17/04/2017 09:00:00 AM

This needs to be hashed, which would look something like:

POBUSwBo1GNKTc1AoVRXspZMIaH6BzW1La7DJyeF2bQ

Now, your Authentication header should look like this

POBUSwBo1GNKTc1AoVRXspZMIaH6BzW1La7DJyeF2bQ:XxdH4B082mBVdFC8OBB9K8o68Kh

Timestamp header

The time stamp header is the current UTC time in the format

dd/MM/yyyy hh:mm:ss AM/PM