get https://rtm.imiconnect.io/rtmsAPI/api/v1/apps/$(appid)/streams
Streams is used to route the messages from customers to one service. One stream per service limits users to hold conversations on multiple threads from the same service. So, a thread ID should be generated first, for every new thread title with a combination of message type, stream ID and thread title as shown in the below combination:
*<streamid><messagetype><thread_title>.
Request
The list stream request is specified as follows:
Request Headers
The following table describes the request headers:
Request Header | Description |
---|---|
secretKey | Secret key generated in backend application. |
content-type | Application/JSON |
Request Body
The following table describes the request parameters:
Parameter | Type | Mandatory | Description |
---|---|---|---|
appid | String | Yes | Specifies the application ID. |
##Response Example
{
"status": "success",
"streams": [
{
"id": "59197d9ee4b04a5c464d71f6",
"created_on": "2017-05-15T10:06:22.848Z",
"name": "APPUSERSTREAM"
},
{
"id": "59267828e4b0479ee69708bb",
"created_on": "2017-05-25T06:22:32.167Z",
"name": "BOT"
},
],
"code": 0
}
Request Body
The following table describes the elements in the request URL:
Parameter | Type | Mandatory | Description |
---|---|---|---|
appid | String | Yes | Specifies the app ID. |