Skip to main content
POST
/
conversations
/
{id}
/
messages
Send message
curl --request POST \
  --url https://api.managem.co.uk/conversations/{id}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>"
}
'
{
  "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

Body

application/json
body
string
required

Message body

Response

Message created

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