---
title: "Comment threads, open ones first (anchors resolved again against the current files)"
method: GET
path: "/builder/sessions/{sessionId}/comments"
tags: ["Builder"]
---

# Comment threads, open ones first (anchors resolved again against the current files)

`GET /builder/sessions/{sessionId}/comments`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/builder/sessions/{sessionId}/comments`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `sessionId` string, uuid, required

## Response `200`

Threads

- object
  - `items` object[], required
    - `id` string, uuid, required
    - `anchor` object, nullable, required
      - `route` string
      - `source` string, nullable: file:line:col of the JSX that renders the element
      - `keyPath` string, nullable: The content key of its text, e.g. home.hero.title
      - `role` string, nullable
      - `label` string, nullable
      - `text` string, nullable: The element's text when the comment was made
      - `section` object, nullable
        - `component` string, required
        - `index` integer, required
      - `x` number, nullable
      - `y` number, nullable
    - `anchorState` 'attached' | 'moved' | 'detached', required
    - `resolvedAt` string, nullable, required: ISO-8601 timestamp
    - `comments` object[], required
      - `id` string, uuid, required
      - `threadId` string, uuid, required
      - `author` object, required
        - `kind` 'member' | 'guest', required
        - `userId` string, uuid, nullable, required
        - `name` string, required
      - `body` string, required
      - `mentions` string[], required
      - `createdAt` string, required: ISO-8601 timestamp
      - `editedAt` string, nullable, required: ISO-8601 timestamp
      - `deleted` boolean, required
      - `mine` boolean, required
    - `createdAt` string, required: ISO-8601 timestamp
    - `updatedAt` string, required: ISO-8601 timestamp

## Other responses

- `400`: Invalid request (code invalid_request)
- `401`: Missing or invalid session/token (code unauthorized)
- `402`: Code editing and GitHub sync need a paid plan (code upgrade_required, details.feature builder.github_export), or a limit was reached
- `403`: Authenticated but not permitted (code forbidden)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: A change is running, the editor is stale (details.reason stale), a secret is in the code (secret_detected), or the draft is closed
- `501`: Not available on this server (code not_configured)

---

[API](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api.md) · [All operations](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/revisions/4d08337cdff1?raw)
