Skip to main content
GET
/
conversations
/
{id}
/
messages
List messages
curl --request GET \
  --url https://api.managem.co.uk/conversations/{id}/messages \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "conversationId": "<string>",
    "sender": {
      "id": "<string>",
      "username": "<string>",
      "reviews": 123,
      "rating": 123,
      "score": 123,
      "sales": 123,
      "purchases": 123,
      "joined": "2023-11-07T05:31:56Z",
      "avatar": "<string>",
      "cover": "<string>",
      "profile": "<string>"
    },
    "body": "<string>",
    "createdAt": "<string>",
    "viewedAt": "<string>",
    "attachments": [
      {
        "id": "<string>",
        "imageId": "<string>",
        "url": "<string>"
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Conversation ID

Query Parameters

page
string

Page number, defaults to 1

size
string

Number of messages per page, defaults to 20

Response

List of messages

id
string
required

Unique identifier for the message

conversationId
string
required

Conversation this message belongs to

sender
object
required

User that sent the message

body
string
required

Content of the message

createdAt
string | null

Timestamp when the message was created

viewedAt
string | null

Timestamp when the message was viewed

attachments
object[]

Images attached to the message