Chat APIs
Get Notifications in a Chat
This endpoint retrieves a paginated list of all notifications for the specific chat_id (in descending order of timestamp)
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Please provide the number of the phone you want to call with this API in the header. The number must be in country code + number format without any characters or spaces, e.g. 919876543210; Alternatively, provide the phone_id (phone-xxxxxxxxxxxx) in the header
Path Parameters
- The unique id of the chat
- For individual chats, this would be the
country_code + number
(e.g.,918527184400
). Optionally, you can add @c.us - For groups, this would end with
@g.us
Query Parameters
- The offset value for paginating the results
- Default 0
- The maximum number of notifications to retrieve
- Default 2000
Response
200 - application/json
The total count of messages.
The starting index of the returned notifications.
An array of notification objects. Refer to the notification object here
The ending index of the returned messages.
Was this page helpful?