cURL
curl --request GET \ --url https://localhost:5000/messages/{identifier} \ --header 'Authorization: Bearer <token>'
{ "success": true, "messages": [ { "sender": "<string>", "chat": "<string>", "message": "<string>", "_id": "<string>", "read_by": [ "<string>" ], "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } ], "chat": { "members": [ "<string>" ], "_id": "<string>", "last_message": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Get messages between current user and another user
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Username or user ID
Messages between users
true
Show child attributes