Retrieve Thread History
Learn how to retrieve history of a particular chat room
Get messages of a chat room
POST
https://api.iflychat.com/api/1.1/threads/get
This endpoint allows you to get history of a chat room programmatically
Request Body
start_timestamp
string
The start timestamp (in milliseconds) of the range between which you want the thread history (optional)
end_timestamp
string
The end timestamp (in milliseconds) of the range between which you want the thread history (optional)
limit
string
The number of results to be returned (optional)
timezone_offset
string
The difference in milliseconds between UTC and your local time. The value should negative if the local timezone is behind UTC and positive if it is ahead. For example, if your time zone is UTC+5:30 hours (Indian Standard Time), the value would be 19800000(5.5x60x60x1000). The default value is 0 (optional)
room_id
string
This can be a string or an array. The string will contain the id of the room whose thread history you want to retrieve and the array will contain the id of the rooms whose thread history you want to retrieve.
api_key
string
The private API key of your website
Curl Command
This the sample curl command required to make HTTP request:
Last updated