Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
44 lines (34 loc) · 1.21 KB

File metadata and controls

44 lines (34 loc) · 1.21 KB

Get Message

Retrieves a single chat message for the message ID. You must have permission to access the room where the message is.

URL Requires Auth HTTP Method
/api/v1/chat.getMessage yes GET

Path Variables

ArgumentExampleRequiredDescription
msgId7aDSXtjMA3KPLxLjtRequiredThe ID of the message to get.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -H "Content-type:application/json" \
     http://localhost:3000/api/v1/chat.getMessage?msgId=7aDSXtjMA3KPLxLjt

Example Result

{
  "message": {
    "_id": "7aDSXtjMA3KPLxLjt",
    "rid": "GENERAL",
    "msg": "This is a test!",
    "ts": "2016-12-14T20:56:05.117Z",
    "u": {
      "_id": "y65tAmHs93aDChMWu",
      "username": "graywolf336"
    }
  },
  "success": true
}

Change Log

Version Description
0.47.0 Added