Skip to main content
GET
/
api
/
v1
/
messages
/
{messageId}
Get message details
curl --request GET \
  --url http://localhost:{port}/api/v1/messages/{messageId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "body": "<string>",
  "fromMe": true,
  "timestamp": 123,
  "isStarred": true,
  "isPinned": true,
  "mentions": [
    "<string>"
  ],
  "groupMentions": [
    "<string>"
  ],
  "reactions": [
    {
      "reaction": "<string>",
      "senderId": "<string>",
      "timestamp": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT token authentication

Path Parameters

messageId
string
required

ID of the message to retrieve

Response

Message details retrieved successfully

id
string
required

Message ID

body
string
required

Message content

fromMe
boolean
required

Whether the message was sent by the current user

timestamp
number
required

Message timestamp

isStarred
boolean

Whether the message is starred

isPinned
boolean

Whether the message is pinned

mentions
string[]

List of users mentioned in the message

groupMentions
string[]

List of group mentions

reactions
object[]

List of reactions to the message