---
title: "GET /channels/{channelID}/threads"
method: GET
path: "/channels/{channelID}/threads"
tags: ["channels"]
---

# GET /channels/{channelID}/threads

`GET /channels/{channelID}/threads`

Returns an array of the 20 most recent threads in a channel

## Path parameters

- `channelID` string, uuid, required

## Response `200`

Successful response

- Thread[]
  - `id` string, uuid
  - `channelID` string, uuid — The id of the channel where this thread exists
  - `userID` string, uuid — The id of the user that created this thread
  - `content` string — The content of the thread
  - `files` string[] — A list of URLs pointing to any file attachments on the thread
  - `createdAt` string, date-time
  - `url` string — A URL pointing to this thread
  - `comments` Comment[]
    - `id` string, uuid
    - `userID` string, uuid — The id of the user that created this comment
    - `content` string — The content of the comment
    - `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
    - `children` CommentReply[] — A list of child comments. Heartbeat comments only have 2 levels of nesting, so a child comment will never have more child comments underneath
      - `id` string, uuid
      - `userID` string, uuid — The id of the user that created this comment
      - `content` string — The content of the comment
      - `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 channel id

---

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