---
title: "A thread's messages, newest first"
method: GET
path: "/chat/threads/{threadId}/messages"
tags: ["Chat"]
---

# A thread's messages, newest first

`GET /chat/threads/{threadId}/messages`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/chat/threads/{threadId}/messages`
- Auth: HTTP bearer

## Path parameters

- `threadId` string, uuid, required

## Query parameters

- `limit` integer
- `cursor` string

## Response `200`

OK

- object
  - `data` ChatMessage[], required
    - `id` string, uuid, required
    - `senderId` string, uuid, required
    - `body` string, nullable, required
    - `mediaAssetId` string, uuid, nullable, required
    - `unsent` boolean, required
    - `editedAt` string, nullable, required
    - `replyTo` ChatReplyPreview, nullable, required
      - `id` string, uuid, required
      - `senderId` string, uuid, required
      - `body` string, nullable, required
      - `unsent` boolean, required
    - `createdAt` string, required
  - `pagination` object, required
    - `nextCursor` string, nullable, required
    - `hasNext` boolean, required
    - `limit` integer, required
    - `totalCount` integer
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `404`: No such thread, or the caller is not a member

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
