Suggestions

close search

Conversations

URL: https://api.stringee.com/v1/chat/conversations

HTTP method: GET

Custom HTTP GET header: Name: X-STRINGEE-AUTH Value: JSON web token (JWT), see REST API Authentication

GET params:

Field Type Require Description
page int No Default page = 1
limit int No Default limit = 10; max = 100
created_from int No Timestamp in milliseconds
created_to int No Timestamp in milliseconds

Sample request

a) Get conversations with default:

GET https://api.stringee.com/v1/chat/conversations
X-STRINGEE-AUTH: json_web_token

b) Get conversations with params:

GET https://api.stringee.com/v1/chat/conversations?created_from=1602090000000&created_to=1602176400000
X-STRINGEE-AUTH: json_web_token

Sample response

{
  "r": 0,
  "message": "Load conversation(s) success",
  "data": {
    "currentPage": 1,
    "limit": 10,
    "totalPages": 18,
    "totalConversations": 173,
    "conversations": [
      {
        "answer_time": 1601974261521,
        "rating": -1,
        "answer_duration": 241,
        "ringing_duration": 7,
        "project_id": 25,
        "lastSeq": 6,
        "id": "conv-vn-1-KGOMUR0QI2-1601526977467",
        "channel_type": 1,
        "ticket_serial": 1763153,
        "resolved": 0,
        "chatStatus": 2,
        "creator": "6106465c526f38d3d2cb40877ef165dd",
        "object_type": "conversation",
        "localDbId": "25-8490138760-6106465c526f38d3d2cb40877ef165dd-LIVECHAT",
        "created": 1601974253869,
        "end_time": 1601974503110,
        "idFromUserIDs": "5929d38252b614f2fb6b282f0b681fe0",
        "lastUpdate": 1601974503102,
        "name": "QURLS0FY",
        "accountSid": "ACab9b9bcf6391c6af9fe1663c729e3a6b",
        "isGroup": true,
        "chatRole": 0,
        "avatar_url": "",
        "display_name": "",
        "linkavatar": "",
        "_version_": 1679792078883651584
      }
    ]
  }
}