---
title: "POST /communication/{id}/messages"
method: POST
path: "/communication/{id}/messages"
tags: ["communication"]
---

# POST /communication/{id}/messages

`POST /communication/{id}/messages`

## Request

- Base URL: `https://api.mijnziekenhuis.be` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mijnziekenhuis.be/communication/{id}/messages`
- Auth: HTTP bearer

## Path parameters

- `id` number, required

## Request body

- CommunicationMessageDTO
  - `id` string, required: The ID of the message (UUID v4 format)
  - `hidden` boolean, required: Whether the message is hidden
  - `sender` SenderDTO, required: The sender of the message
    - `name` string, required: The name of the sender
    - `type` string, required: The type of the sender
    - `userId` number: The user ID (or Synops User id) of the sender (required for doctor/hospital/caregiver)
    - `specialisationId` number: The specialisation ID of the sender
    - `actorId` number: The actor ID (HB Actor id) of the sender (required for patient)
  - `content` string, required: The content of the message
  - `attachments` string[]: The attachments of the message
  - `receiver` ReceiverDTO, required: The receiver of the message
    - `name` string, required: The name of the receiver
    - `type` string, required: The type of the receiver
    - `userId` number: The user ID of the receiver (required for doctor/hospital/caregiver)
    - `specialisationId` number: The specialisation ID of the receiver
  - `createdAt` string, required: The date and time the message was created
  - `readStatus` ReadStatusDTO, required: The read status of the message
    - `patient` string: The timestamp when the patient read the message (or null if not read)
    - `caregiver` string: The timestamp when the caregiver read the message (or null if not read)

## Response `200`

- object

---

[API](https://skmtc.dev/mijnziekenhuis/apis/healthblocks.md) - [All operations](https://skmtc.dev/mijnziekenhuis/apis/healthblocks/llms.txt) - [OpenAPI document](https://skmtc.dev/mijnziekenhuis/apis/healthblocks/revisions/2da585b2afd2?raw)
