---
updatedAt: 2026-06-22T13:11:51.000Z
agentTools:
  projectIndex: https://integrations.luscii.com/llms.txt
---

# Get a message

Retrieves a message by its ID.

This endpoint needs to be called with an API key with sufficient permissions for the requested message.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Public API reference",
    "description": "Full list of available endpoints.",
    "version": "1.0"
  },
  "paths": {
    "/v1/messages/{messageId}": {
      "get": {
        "tags": [
          "Messages"
        ],
        "summary": "Get a message",
        "description": "Retrieves a message by its ID.",
        "operationId": "ffef9d33518a0eb5b10c545c7076b6a4",
        "parameters": [
          {
            "name": "messageId",
            "in": "path",
            "description": "Id of the message.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/uuidSchema"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response.",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Message",
                      "description": "Details of the message."
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "uuidSchema": {
        "type": "string",
        "format": "uuid",
        "example": "9890ed24-405d-4688-abcd-b7f829d75939"
      },
      "isoDateTimeSchema": {
        "description": "Date-time formatted to ISO8601. See https://www.rfc-editor.org/rfc/rfc3339#section-5.6",
        "type": "string",
        "format": "date-time",
        "example": "2024-09-17T15:45:00+02:00"
      },
      "Message": {
        "properties": {
          "id": {
            "$ref": "#/components/schemas/uuidSchema",
            "description": "Id of the message"
          },
          "sender": {
            "$ref": "#/components/schemas/messageSender"
          },
          "patient": {
            "$ref": "#/components/schemas/messagePatient"
          },
          "content": {
            "description": "The content of the message",
            "type": "string",
            "example": "This is a sample message content."
          },
          "readAt": {
            "description": "Date and time when the message was read",
            "oneOf": [
              {
                "$ref": "#/components/schemas/isoDateTimeSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "timestamp": {
            "$ref": "#/components/schemas/isoDateTimeSchema",
            "description": "Date and time when the message was sent"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "messageSender": {
        "description": "The sender of the message",
        "properties": {
          "id": {
            "description": "Id of the sender",
            "oneOf": [
              {
                "$ref": "#/components/schemas/uuidSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "firstName": {
            "description": "First name of the sender",
            "type": "string",
            "example": "Alice"
          },
          "lastName": {
            "description": "Last name of the sender",
            "type": "string",
            "example": "Baker"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "messagePatient": {
        "description": "The patient who the message is about",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/uuidSchema",
            "description": "Id of the patient"
          },
          "firstName": {
            "description": "First name of the patient",
            "type": "string",
            "example": "Alice"
          },
          "lastName": {
            "description": "Last name of the patient",
            "type": "string",
            "example": "Baker"
          }
        },
        "type": "object",
        "additionalProperties": false
      }
    },
    "responses": {
      "Forbidden": {
        "description": "Forbidden, e.g. trying to access the endpoint without authorization",
        "x-statusCode": "403"
      },
      "NotFound": {
        "description": "Resource cannot be found",
        "x-statusCode": "404"
      },
      "InternalServerError": {
        "description": "Internal server error",
        "x-statusCode": "500"
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "description": "Bearer token. Just enter the token itself without 'Bearer' keyword",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearer": []
    }
  ],
  "tags": [
    {
      "name": "Messages",
      "description": "Messages related endpoints"
    }
  ],
  "externalDocs": {
    "description": "General Public API Documentation",
    "url": "https://integrations.luscii.com/docs/public-api"
  },
  "servers": [
    {
      "url": "https://vitalsapi.luscii.com/"
    }
  ],
  "x-readme": {}
}
```