Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your apiKey generated in Periskope API settings.

Headers

x-phone
string
required

Organisation phone number(with country code) and without any spaces or special characters.

e.g. 9190043XXXXX

Path Parameters

chat_id
string
required

Chat 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.