Skip to main content
GET
/
messages
Get messages
curl --request GET \
  --url https://api.gleap.io/v3/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>'
[
  {
    "_id": "507f1f77bcf86cd799439015",
    "id": "507f1f77bcf86cd799439015",
    "ticket": "507f1f77bcf86cd799439011",
    "comment": {
      "type": "doc",
      "content": [
        {
          "type": "paragraph",
          "content": [
            {
              "type": "text",
              "text": "This is a sample message content."
            }
          ]
        }
      ]
    },
    "type": "COMMENT",
    "bot": false,
    "user": {
      "_id": "507f1f77bcf86cd799439012",
      "email": "support@example.com",
      "firstName": "John",
      "lastName": "Doe"
    },
    "session": {
      "_id": "507f1f77bcf86cd799439013",
      "email": "user@example.com"
    },
    "createdAt": "2024-01-15T10:30:00.000Z",
    "updatedAt": "2024-01-15T10:30:00.000Z",
    "index": 0
  },
  {
    "_id": "507f1f77bcf86cd799439016",
    "id": "507f1f77bcf86cd799439016",
    "ticket": "507f1f77bcf86cd799439011",
    "comment": {
      "type": "doc",
      "content": [
        {
          "type": "paragraph",
          "content": [
            {
              "type": "text",
              "text": "Thank you for the update!"
            }
          ]
        }
      ]
    },
    "type": "COMMENT",
    "bot": false,
    "user": {
      "_id": "507f1f77bcf86cd799439017",
      "email": "user@example.com",
      "firstName": "Jane",
      "lastName": "Smith"
    },
    "session": {
      "_id": "507f1f77bcf86cd799439013",
      "email": "user@example.com"
    },
    "createdAt": "2024-01-15T11:00:00.000Z",
    "updatedAt": "2024-01-15T11:00:00.000Z",
    "index": 1
  }
]

Authorizations

Authorization
string
header
required

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

Headers

project
string
required

Response

200 - application/json

Ok

The response is of type any[].