> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sublay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch Comment

> Get a single comment by ID

Returns a single comment by its Sublay UUID.

> [!NOTE]
>
> If the comment author is block-edged with the signed-in caller, in either
> direction, this returns `404` with `comment/not-found` — identical to a
> comment that does not exist. An embedded `parentComment` is nulled under the
> same rule. Requires the `moderation` bundle.

## Path Parameters

**commentId** `string` *required*

The UUID of the comment to fetch.

## Query Parameters

**include** `string`

Comma-separated list of associations to include. Valid values: `user`, `entity`, `space`, `parent`, `grants` (the [reputation-grant summary](https://docs.sublay.io/v7/data-models/reputation-grant.md#grantsummary)).

### Space-scoped reputation

This endpoint has a space in context, so it accepts the opt-in reputation params. They add a `spaceReputation` field to the populated author `user`, alongside the always-present `reputation` total. Requires the `reputation` bundle. See the [Reputation data model](https://docs.sublay.io/v7/data-models/reputation.md) for the full contract.

**spaceReputationId** `string`

Opt-in. Adds a `spaceReputation` number to each returned user,
scoped to a single space. Requires the `reputation` bundle.
The `reputation` total is always present regardless;
`spaceReputation` only appears when you pass this. See the
[Reputation data model](https://docs.sublay.io/v7/data-models/reputation.md) for the
full contract.

Accepts a space **`<uuid>`** (that
space's bucket), **`none`** (the
project-general, space-less bucket), or
**`context`** (the space derived from the
request context — resolved per-row on lists, or the single space on
member/team/conversation surfaces).

The empty string is rejected (400). The legacy `general` / `null` aliases
are rejected (400). Missing buckets read as `0`.
**spaceReputationDescendants** `boolean`

When `true`, `spaceReputation` is the
**subtree sum** — the named space plus all of its
descendant spaces (the root space's own bucket included).
Ignored unless `spaceReputationId` is a space
`<uuid>`.

## Response

Returns a `200 OK` with the following shape:

```json theme={null}
{
  "comment": { ...Comment }
}
```

The `comment` field is a [Comment](https://docs.sublay.io/v7/data-models/comment.md) object. If the comment has been removed (user-deleted or moderation-removed) and the viewer is not the author, identifying fields (`userId`, `user`, `content`, `gif`, `mentions`, `attachments`) are nulled out as a Reddit-style placeholder.

> [!NOTE]
>
> This endpoint **nests the record under a `comment` key**, unlike every other read surface, which returns the record bare. So a requested grants summary lives at `comment.grants` — see [GrantSummary](https://docs.sublay.io/v7/data-models/reputation-grant.md#grantsummary).

## Error Responses

> [accordion] Not Found — 404
>
> ```json theme={null}
> { "error": "Comment not found", "code": "comment/not-found" }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.