---
title: "Comment threads on a page"
method: GET
path: "/api/pages/{id}/comments"
tags: ["comments"]
---

# Comment threads on a page

`GET /api/pages/{id}/comments`

## Request

- Base URL: `https://telawiki.com`
- URL: `https://telawiki.com/api/pages/{id}/comments`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `tela_session`

**`editor+` even to read** — a viewer gets 403, not an empty list. Roots come back oldest first with their replies bucketed underneath.

## Query parameters

- `include_resolved` 'true'

## Response `200`

Threads.

- object
  - `threads` CommentThread[], required
    - `root` Comment, required
      - `id` integer, required
      - `page_id` integer, required
      - `parent_id` integer, nullable, required: Null on a root comment.
      - `author_id` integer, required
      - `author_username` string, required
      - `body` string, required
      - `anchor_prefix` string: Root comments only — the text before the quoted span.
      - `anchor_exact` string: Root comments only — the quoted span.
      - `anchor_suffix` string: Root comments only — the text after the quoted span.
      - `resolved` boolean, required
      - `resolved_at` string
      - `resolved_by` integer
      - `resolved_by_username` string
      - `created_at` string, required: `YYYY-MM-DD HH:MM:SS` in UTC.
      - `updated_at` string, required: `YYYY-MM-DD HH:MM:SS` in UTC.
    - `replies` Comment[], required
      - `id` integer, required
      - `page_id` integer, required
      - `parent_id` integer, nullable, required: Null on a root comment.
      - `author_id` integer, required
      - `author_username` string, required
      - `body` string, required
      - `anchor_prefix` string: Root comments only — the text before the quoted span.
      - `anchor_exact` string: Root comments only — the quoted span.
      - `anchor_suffix` string: Root comments only — the text after the quoted span.
      - `resolved` boolean, required
      - `resolved_at` string
      - `resolved_by` integer
      - `resolved_by_username` string
      - `created_at` string, required: `YYYY-MM-DD HH:MM:SS` in UTC.
      - `updated_at` string, required: `YYYY-MM-DD HH:MM:SS` in UTC.

## Other responses

- `400`: `invalid_id` — a path parameter was not a positive integer.
- `403`: `forbidden` (no access, or the role is too low), `viewer_no_write`, `api_key_scope` (the token's scope forbids this method), or `api_key_space_scope` (the token is pinned to another space).
- `500`: `internal` — server error.

---

[API](https://skmtc.dev/telawiki/apis/tela-rest-api.md) · [All operations](https://skmtc.dev/telawiki/apis/tela-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/telawiki/apis/tela-rest-api/revisions/f316f31f6fcb?raw)
