cURL
curl --request GET \ --url https://localhost:5000/messages/last \ --header 'Authorization: Bearer <token>'
{ "success": true, "chats": [ { "members": [ "<string>" ], "_id": "<string>", "last_message": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "unreadCount": 123 } ] }
Get the last message from each chat for the current user
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Last messages from each chat
true
Show child attributes