---
title: "Get a thread"
method: GET
path: "/api/v4/posts/{post_id}/thread"
tags: ["posts"]
---

# Get a thread

`GET /api/v4/posts/{post_id}/thread`

Get a post and the rest of the posts in the same thread.
##### Permissions
Must have `read_channel` permission for the channel the post is in or if the channel is public, have the `read_public_channels` permission for the team.

## Path parameters

- `post_id` string, required

## Query parameters

- `perPage` integer
- `fromPost` string
- `fromCreateAt` integer
- `direction` string
- `skipFetchThreads` boolean
- `collapsedThreads` boolean
- `collapsedThreadsExtended` boolean

## Response `200`

Post list retrieval successful

- 38cb7293PostList
  - `order` string[]
  - `posts` object
  - `next_post_id` string — The ID of next post. Not omitted when empty or not relevant.
  - `prev_post_id` string — The ID of previous post. Not omitted when empty or not relevant.
  - `has_next` boolean — Whether there are more items after this page.

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `403` — Do not have appropriate permissions

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
