Chat APIs and In-app Messaging SDKs for Developers

Applozic provides Chat APIs and In-app Messaging SDKs for Android, iOS and Web apps to power cross-device, multi-platform rich messaging.
Find comprehensive guides and platform-specific Chat API documentation to get started with In-app Messaging.

Get Started    

Webhooks

Webhooks configuration guide

Configure webhook Url in Applozic dashboard. All messages will be send to the configured webhook Url in JSON format.
Login to Applozic
Go to Dashboard -> Application List -> Action -> Edit -> Webhooks

Add authentication to this post data request by configuring webhook authentication token in Applozic dashboard. This authentication token can be any random string.
Go to Dashboard -> Application List -> Action -> Edit -> Security

Note:

We recommend configuring this authentication token in Applozic dashboard as it adds authentication layer for all the API call going from Applozic to your server. This authentication token will be passed as Authentication header in the form of base64 value of authentication token.
Basic Base64Encode of authentication token
Example: Basic YWJjZGVm

Now Applozic Server POST data to the configured Url with following headers:

API URL: https://yourcompany.com/message/forward

Method Type: POST

Headers:
Content-Type: application/json
Authentication: Basic Base64Encode of authentication token

if authentication token configured in dashboard is abcdef than sample value will be:
Basic YWJjZGVm

Request Body: Posted JSON to configured URL without any attachment :

{
 "key":"message key",
 "from":"sender unique id",
 "to":"receiver unique id",       // In case of One to One Chat
  "groupId": 123456,              // In case of Group Chat
  "clientGroupId": "123456",      // In case of Group Chat
  "groupName": "applozicGroup",   // In case of Group Chat
  "conversationId": 23456,        // In case of Contextual Chat
 "message":"message content",
 "timeStamp":1457958424000,  // Long timestamp value
 "receiverConnected": true,  // Boolean value
 "receiverLastSeenAtTime": 1457958424000 //Long timestamp value
}

Sample Request Call through POSTMAN

Request Body: Posted JSON to configured Url with attachment and metadata passed in the message:

{  
  "key":"message key",
  "from":"sender userId ",
  "to":"receiver userId",             // In case of One to One Chat
  "groupId": 123456,                  // In case of Group Chat
  "clientGroupId": "123456",          // In case of Group Chat
  "groupName": "applozicGroup",       // In case of Group Chat
  "conversationId": 23456,            // In case of Contextual Chat
  "message":"message content",
  "timeStamp":1461590467000,
  "file":{  
    "name":"name of attachment image,file etc",
    "url":"attachment Url",
    "contentType":"image/gif",
    "size":28150,
    "thumbnailUrl":"attachment thumbnail Url"
  },
  "metadata":{
  "key1":"value1",
  "key2":"value2"
  }
}