Chat
List all chat messages by Chat ID
List all the chat messages associated with the chat_id.
Refer to the Message object to find more details about the message object
.
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token> is your apiKey
generated in Periskope API settings.
Headers
x-phone
string
requiredOrganisation phone number(with country code) and without any spaces or special characters.
e.g. 9190043XXXXX
Path Parameters
chat_id
string
requiredChat ID for which the action is to be performed
e.g.
For groups - 12054386805XXX@g.us
For individual chats - 9198765XXXXX@c.us
Query Parameters
offset
integer
Starting index of the list sorted based on timestamp
Default - 0
limit
number
Number of objects per request after offset.
Maximum - 2000
, Default - 1000
Response
200 - application/json
count
integer
messages
object[]
Refer to the Message object to find more details about the message object
.
Was this page helpful?