This API is used to fetch thread message information for a specific threadId under a app and sync all the devices of a specific user.

Request

The app threads request is specified as follows:

Request Body

ParameterTypeMandatoryDescription
appidStringYesSpecifies the application ID.
useridStringYesSpecifies the user ID.
startIntergerNoSpecifies the integer value where the record pointer should start in the app threads. A maximum of 100 threads can be returned (if available).

Request Headers

The following table describes the request headers:

Request HeaderDescription
secretKeySecret key generated in backend application.
content-typeApplication/JSON

Request Body

The following table describes the elements in the request URL:

ParameterTypeMandatoryDescription
appidStringYesSpecifies the app ID.
useridStringYesSpecifies the user ID associated with the app.
##Response Example
{
	"total": 1,
	"code": "0",
	"count": 1,
	"messages": [
		{
			"payload_type": "sentByUser",
			"extras": {},
			"media": [],
			"thread":{
						"id": "5acb5fa7e4b04b585f09434d_0_f3f3cac48f810645875f97466b36993b522167ea"
				}
			"message": "Test2",
			"userId": "WwopGfVlcgKxbI2egTiT/Q==/Z8WPLM",
			"tid": "RDF5856B2-5197-4956-9809-CE68C9A446B9",
			"created_on": "2018-04-20T06:18:54.058Z",
			"appid": "R209113055",
			"read_at": "",
			"delivered_at": "",
			"status": "submited"
		}
	],
	"description": "success"
}
Language