---
title: "GET /directMessages/{chatID}"
method: GET
path: "/directMessages/{chatID}"
tags: ["messages"]
---

# GET /directMessages/{chatID}

`GET /directMessages/{chatID}`

Get the 100 most recent chat messages from a direct message conversation. Only direct messages that include at least one admin user can be accessed via the API.

## Path parameters

- `chatID` string, uuid, required

## Response `200`

Successful response

- ChatMessage[]
  - `id` string, uuid
  - `userID` string, uuid — The id of the user that created this chat message
  - `content` string — The content of the chat message
  - `images` string[] — A list of URLs pointing to any image attachments on the comment
  - `files` string[] — A list of URLs pointing to any file attachments on the comment
  - `createdAt` string, date-time

## Other responses

- `401` — API Key is missing or invalid
- `404` — Could not find requested direct message

---

[API](https://skmtc.dev/heartbeat/apis/heartbeat-api.md) · [All operations](https://skmtc.dev/heartbeat/apis/heartbeat-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/heartbeat/heartbeat-api/revisions/6c3cf537d508/schema)
