GET
/
messages
/
last
Get last messages
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
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Last messages from each chat

success
boolean
Example:

true

chats
object[]