Returns one level of a comment thread, cursor-paginated:
entityId → the entity’s top-level comments.
parentCommentId → that comment’s direct replies.
Send exactly one of the two: neither or both returns 400 comment/invalid-query. A replies fetch takes parentCommentId alone, since the parent decides the entity.Each request can also bring a few levels of replies nested inside every returned comment (replyDepth, replyLimit), each with its own “load more” cursor — so a threaded view can render its first screen with a single request.To list a user’s comments across entities, use Fetch Comments by User instead.Authentication is optional. When there is a viewer — the signed-in user, or the user a service key names in actingUserId — comments by users they are block-edged with are marked or shown as placeholders (see Blocked authors).
For previews (for example, the best comment under an entity in a feed), use include=topComments on the entity fetch instead — it returns real content only. Thread fetches include placeholders.
Query Parameters
Acting user
string
Service key only: the user to list as. The page is exactly what that user’s own access token would get: the blocked-author rules below apply to them, a moderator-removed comment of theirs is shown in full, and moderation details (moderationReason, moderatedById, moderatedByType) appear only where that user may see them. Leave it out for the anonymous view, with no moderation details. A user token always acts as its own user and must not send it, and neither may a request with no credentials (400 comment/acting-user-not-allowed).
Thread
string
Return this entity’s top-level comments. Send this or parentCommentId, not both.
string
Return the direct replies of this comment. Send this or entityId, not both.
Pagination
number
default:"10"
How many comments to return at the level being fetched (top-level comments for entityId, direct replies for parentCommentId). A whole number of at least 1 — 0, a negative number or a non-integer value returns 400 comment/invalid-query. Values above 100 are treated as 100.
string
Continue after the last comment of a previous response. Leave it out on the first request (an empty cursor is treated the same way), then pass pagination.nextCursor from the previous response. The cursor must be used with the same sortBy, sortDir and sortByReaction it was created under. See Cursors.
Sorting
string
default:"createdAt"
Sort for the level being fetched. One of:
createdAt — by creation time.
top — by the raw count of one reaction (sortByReaction, default upvote). Nothing is subtracted — a comment with 10 upvotes and 8 downvotes ranks above one with 5 upvotes.
controversial — many up/down votes with a close split. Comments with no up/down votes sort last (under desc).
Ties are broken by creation time, then by ID, in the same direction — so ties are newest-first under desc and oldest-first under asc.
string
default:"desc"
asc or desc (either case). Applies to createdAt and top. Not accepted with "controversial", which ranks one way only (most controversial first): sending it returns 400 comment/invalid-query.
string
default:"upvote"
With sortBy=top only: the reaction to rank by. One of upvote, downvote, like, love, wow, sad, angry, funny. Sending it with any other sortBy returns 400.
For time order, use createdAt with sortDir.
Nested replies
number
default:"0"
How many levels of replies to nest under each returned comment, from 0 (none) to 5.
number
default:"3"
How many replies per comment in the nested levels only. Must be at least 1 — to nest nothing, use replyDepth=0. Values above 100 are treated as 100.
string
Sort for the nested levels: createdAt, top or controversial. Defaults to the level’s sortBy.
string
asc or desc (either case) for the nested levels. Defaults to the level’s sortDir. Not accepted when the nested sort is controversial (replySortBy=controversial, or sortBy=controversial without replySortBy): a controversial level always ranks most controversial first.
string
The reaction the nested levels rank by. Only accepted when the nested sort is top (replySortBy=top, or sortBy=top without replySortBy) — otherwise 400. Defaults to sortByReaction when the level is also sorted by top, else upvote. When replySortBy is omitted, all three reply-sort params follow the level’s sort.
The params come in pairs: limit and sortBy/sortDir/sortByReaction describe the level you’re asking for; replyLimit and replySortBy/replySortDir/replySortByReaction describe what’s nested underneath. A parentCommentId request is a request for replies, so to get replies oldest-first there, send sortBy=createdAt&sortDir=asc.
Request size limit
Before running any query, the server computes the most comments a request could return:
using the values after limit and replyLimit are capped at 100. Requests above 500 are rejected with 400 comment/reply-budget-exceeded — they are never silently trimmed. For example, limit=10&replyDepth=2&replyLimit=3 can return up to 10 × 13 = 130 comments, while limit=10&replyDepth=5&replyLimit=2 (10 × 63 = 630) is rejected.
Optional associations
string
Associations to include, as a comma-separated value (include=user,grants) or repeated params, applied at every level (nested replies included). Values:
user — the comment author, with the avatar file URLs
files — the comment’s images and files, in upload order, images with their variants. A placeholder (a deleted, removed or unavailable comment) has files: []. Requires the files-images bundle
Matching ignores case. Every comment in a thread belongs to the entity you asked for, so entity, space and parent aren’t available here: they return 400 comment/unsupported-param (see Unsupported parameters). Any other unknown value returns 400 comment/invalid-query.
Space-scoped reputation
This endpoint has a space in context, so it accepts the opt-in reputation params. They add a spaceReputation field to each populated author user (at every level), alongside the always-present reputation total. Requires the reputation bundle. See the Reputation data model for the full contract.
The comments at the requested level, in sort order. Each item is a Comment.
string | null
Pass this as cursor to get the next batch. null when there’s nothing more.
boolean
Whether more comments exist after this batch. Exact — use it (not repliesCount) to decide whether to show a “load more” button.
Nested replies
With replyDepth above 0, each comment carries a replies field with the same envelope as the top level: { data, pagination }. A nested replies.pagination.nextCursor continues that comment’s replies — see Cursors.
Comments at the last nested level have no replies field — their replies weren’t fetched. replies: { data: [] } means they were fetched and there are none.
With replyDepth=0 (the default), no comment carries replies.
Placeholders and flagged comments get nested replies like any other comment, so other people’s replies under them stay in place.
Counts
repliesCount is the number of direct replies a comment has, for display. It counts every reply the thread contains — including deleted, removed and unavailable ones, which appear as placeholders — so it’s the same number for every viewer and always matches what paging through the replies returns. Drive buttons from hasMore.
Deleted and removed comments
Deleted and moderator-removed comments stay in the thread as placeholders, so the replies under them aren’t lost. A placeholder keeps its position, id, parentCommentId, timestamps, reactionCounts and repliesCount, with the author and content blanked. A moderator-removed comment is shown in full to its own author. See Placeholders.
Blocked authors
Every comment carries two flags, isAuthorBlocked and isUnavailable. Both are always present, and always false when the caller isn’t signed in or the moderation bundle isn’t installed. Otherwise:
The caller and the comment’s author
The comment is returned
Flags
The caller blocked the author
in full
isAuthorBlocked: true — your app decides whether to collapse it, offer “show anyway”, or hide it
The author blocked the caller (or both blocked each other)
as a placeholder
isUnavailable: true
No block
as usual
both false
isUnavailable is deliberately neutral: it means the comment exists but can’t be shown to this caller, without saying why. Replying to or reacting to an isUnavailable comment is refused, so hide those controls.When the entity’s author has blocked the caller, the whole thread is unavailable to them: a request with that entityId, or with the parentCommentId of any comment on that entity, returns an empty page — exactly what an entity that doesn’t exist returns.
Reading
A thread follows its entity’s space. When the entity is in a space the caller can’t read (see who can read content), a request with that entityId, or with the parentCommentId of any comment on that entity, returns the same empty page. A service key without actingUserId reads as a signed-out caller, so threads on entities in members-only and private spaces come back empty; name a member in actingUserId to read them.
Cursors
A cursor is an opaque string. It records the sort it was created under and the last comment you received, and the next request continues right after that comment. Comments posted in the meantime don’t shift what you get.
Send the same sortBy, sortDir and sortByReaction with a cursor as the request that returned it. A different sort returns 400 comment/cursor-sort-mismatch; to change the sort, start over without a cursor.
A cursor doesn’t record which entity or comment it came from. Sending it with a different entityId or parentCommentId just continues from the same sort position there.
Continuing nested replies: a replies.pagination.nextCursor was created under the reply sort. Continue it with a parentCommentId request for that comment, sending the reply sort as sortBy / sortDir / sortByReaction (for a controversial reply sort, leave sortDir out):
GET /v8/:projectId/comments?parentCommentId=c1&cursor=<replies.pagination.nextCursor>&sortBy=<replySortBy>&sortDir=<replySortDir>
Vote-ranked sorts can shift: under top and controversial, a comment whose votes change between two requests can move past the cursor — it may be skipped (it shows up on refresh) or appear twice (de-duplicate by id). createdAt is exact.
Unsupported parameters
These parameters return 400 with code comment/unsupported-param, a param field naming the parameter, and an error message pointing to the replacement:
Sent
Use instead
page
Cursor pagination: leave cursor out on the first request, then pass pagination.nextCursor.
Every comment in a thread belongs to the entity you requested. Supported values: user, grants, files.
include=parent
Top-level comments have no parent, and replies all share the one you requested. Available on GET /users/:userId/comments and the single-comment fetches.
sortBy=new
sortBy=createdAt (newest first by default).
sortBy=old
sortBy=createdAt&sortDir=asc.
Other unknown query parameters are ignored.
Error Responses
Checks run in this order; the first failing check is returned.
Comments bundle not installed — 403
Returned on a project without the comments bundle, ahead of the checks below. The body has no error field: it carries the code, the missing tables, and a link to the project’s Database page in the dashboard, where the bundle is installed. See Bundles.
{ "error": "This endpoint needs tables that aren't installed in this project (Comments). Install their bundle from the dashboard.", "code": "database/tables-not-available", "missingTables": ["Comments"], "bundleId": "comments", "dashboardUrl": "https://<dashboard>/<projectId>/database"}
Unsupported parameter — 400
{ "error": "`page` isn't supported on this endpoint. Comments use cursor pagination: leave `cursor` out on the first request, then pass `pagination.nextCursor` from the previous response to get the next batch.", "code": "comment/unsupported-param", "param": "page"}
{ "error": "`parentId` isn't supported in v8. To list a comment's replies, send `parentCommentId`.", "code": "comment/unsupported-param", "param": "parentId"}
Invalid query — 400
Returned with code comment/invalid-query for invalid values — for example neither or both of entityId and parentCommentId, a malformed id, an unknown include value, sortByReaction without sortBy=top, replySortByReaction when the nested sort isn’t top, limit below 1 or not a whole number, replyDepth above 5, or replyLimit below 1. error names the first problem found:
{ "error": "Send `entityId` (an entity's top-level comments) or `parentCommentId` (a comment's replies), not both. To list a user's comments, use `GET /users/:userId/comments`.", "code": "comment/invalid-query"}
{ "error": "This request could return up to 630 comments (max 500). Lower `limit`, `replyLimit` or `replyDepth`.", "code": "comment/reply-budget-exceeded", "maxRows": 500, "requestedRows": 630}
Invalid cursor — 400
{ "error": "Invalid `cursor`. Pass `pagination.nextCursor` from a previous response unchanged, or leave `cursor` out to start from the beginning.", "code": "comment/invalid-cursor"}
Cursor from a different sort — 400
{ "error": "This `cursor` was created under a different sort. Send the same `sortBy`, `sortDir` and `sortByReaction` as the request that returned it, or leave `cursor` out to start from the beginning.", "code": "comment/cursor-sort-mismatch"}
Acting User Not Allowed — 400
A user token, or a request with no credentials, sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
{ "error": "actingUserId is only accepted with a service key. A user's own token always acts as that user.", "code": "comment/acting-user-not-allowed" }
User Not Found — 404
Returned when a service key names an actingUserId that isn’t a user in this project.
{ "error": "No user with this actingUserId exists in this project.", "code": "comment/user-not-found" }
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Sublay Documentation","colors":{"primary":"#D22F55","light":"#F06789","dark":"#9E1E3E"},"logo":{"light":"https://mintcdn.com/replyke/v1bBipIMITFr7df3/logo/wordmark-dark.png?fit=max\u0026auto=format\u0026n=v1bBipIMITFr7df3\u0026q=85\u0026s=b95cabb32c98884aa4bca294b07238cc","dark":"https://mintcdn.com/replyke/v1bBipIMITFr7df3/logo/wordmark-light.png?fit=max\u0026auto=format\u0026n=v1bBipIMITFr7df3\u0026q=85\u0026s=871e10ec08b164c26f260e845b44c5c5"},"favicon":"https://mintcdn.com/replyke/v1bBipIMITFr7df3/favicon.svg?fit=max\u0026auto=format\u0026n=v1bBipIMITFr7df3\u0026q=85\u0026s=4988ad1acfb2c3909d214fd1ea72e5d8","api":{"playground":{"display":"none"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.sublay.io"}},"navbar":{"links":[{"href":"https://dash.sublay.io","label":"Dashboard"}]},"footer":{"socials":{"github":"https://github.com/sublay-io"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"replyke","hasAudioNarration":false,"actualSubdomain":"replyke","customDomains":["docs.sublay.io"],"gitSource":{"type":"github","owner":"sublay-io","repo":"monorepo","deployBranch":"v8","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0c04a2f26c07143e91bd0b","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":522},{"language":"default","tag":"Hooks Reference","count":487},{"language":"default","tag":"SDK Reference","count":145},{"language":"default","tag":"Components","count":92},{"language":"default","tag":"Modules","count":84},{"language":"default","tag":"Spaces","count":68},{"language":"default","tag":"Data Models","count":55},{"language":"default","tag":"Models","count":55},{"language":"default","tag":"Workspaces","count":50},{"language":"default","tag":"JS SDK","count":44}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"v8/api-reference/comments/fetch-many-comments","slug":"/v8/api-reference/comments/fetch-many-comments","pageMetadata":{"title":"Fetch Many Comments","api":"GET /v8/:projectId/comments","description":"Get a comment thread: an entity's top-level comments, or a comment's replies, with optional nested replies","href":"/v8/api-reference/comments/fetch-many-comments"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Get a comment thread: an entity’s top-level comments, or a comment’s replies, with optional nested replies\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const SpaceReputationParams=({variant=`context`,field=`path`,rest=false})=>{const _components={a:`a`,..._provideComponents()},{Expandable,ParamField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);const isUser=variant===`user`;if(rest){return _jsxs(_Fragment,{children:[_jsxs(ParamField,{[field]:`spaceReputationId`,type:`string`,children:[`Opt-in. Adds a `,_jsx(`code`,{children:`spaceReputation`}),` number to each returned user, scoped to a single space. Requires the `,_jsx(`code`,{children:`reputation`}),` bundle. The `,_jsx(`code`,{children:`reputation`}),` total is always present regardless;`,` `,_jsx(`code`,{children:`spaceReputation`}),` only appears when you pass this. See the`,` `,_jsx(_components.a,{href:`/v8/data-models/reputation`,children:`Reputation data model`}),` for the full contract. Only spaces the viewer can read count: a space they can't read reads`,` `,_jsx(`code`,{children:`0`}),` (see`,` `,_jsx(_components.a,{href:`/v8/data-models/reputation#who-sees-space-reputation`,children:`Who sees space reputation`}),`).`,isUser?_jsxs(_Fragment,{children:[` `,`Accepts a space `,_jsx(`strong`,{children:_jsx(`code`,{children:`\u003cuuid>`})}),` (that space's bucket) or `,_jsx(`strong`,{children:_jsx(`code`,{children:`none`})}),` (the project-general, space-less bucket). `,_jsx(`code`,{children:`context`}),` is rejected (400) on this endpoint — there is no space context to derive.`]}):_jsxs(_Fragment,{children:[` `,`Accepts a space `,_jsx(`strong`,{children:_jsx(`code`,{children:`\u003cuuid>`})}),` (that space's bucket), `,_jsx(`strong`,{children:_jsx(`code`,{children:`none`})}),` (the project-general, space-less bucket), or`,` `,_jsx(`strong`,{children:_jsx(`code`,{children:`context`})}),` (the space derived from the request context — resolved per-row on lists, or the single space on member/team/conversation surfaces).`]}),` `,`In the query, an empty value is the same as leaving it out; in a body, an empty string is rejected (400). The legacy `,_jsx(`code`,{children:`general`}),` / `,_jsx(`code`,{children:`null`}),` aliases are rejected (400). Missing buckets read as `,_jsx(`code`,{children:`0`}),`.`]}),_jsxs(ParamField,{[field]:`spaceReputationDescendants`,type:`boolean`,children:[`When `,_jsx(`code`,{children:`true`}),`, `,_jsx(`code`,{children:`spaceReputation`}),` is the`,` `,_jsx(`strong`,{children:`subtree sum`}),` — the named space plus all of its descendant spaces (the root space's own bucket included), counting only the spaces the viewer can read. Ignored unless `,_jsx(`code`,{children:`spaceReputationId`}),` is a space`,` `,_jsx(`code`,{children:`\u003cuuid>`}),`.`]})]})}return _jsx(_Fragment,{children:_jsxs(ParamField,{[field]:`spaceReputation`,type:`object`,children:[`Opt-in. Adds a `,_jsx(`code`,{children:`spaceReputation`}),` number to each returned user, scoped to a single space. Requires the `,_jsx(`code`,{children:`reputation`}),` bundle. The `,_jsx(`code`,{children:`reputation`}),` total is always present regardless;`,` `,_jsx(`code`,{children:`spaceReputation`}),` is purely additive and only appears when you pass this object. It's sent as the API's flat`,` `,_jsx(`code`,{children:`spaceReputationId`}),` / `,_jsx(`code`,{children:`spaceReputationDescendants`}),` `,`params. See the`,` `,_jsx(_components.a,{href:`/v8/data-models/reputation`,children:`Reputation data model`}),` for the full contract. Only spaces the viewer can read count: a space they can't read reads `,_jsx(`code`,{children:`0`}),` (see`,` `,_jsx(_components.a,{href:`/v8/data-models/reputation#who-sees-space-reputation`,children:`Who sees space reputation`}),`).`,_jsxs(Expandable,{title:`spaceReputation`,children:[isUser?_jsxs(ParamField,{name:`spaceId`,type:`string | \"none\"`,required:true,children:[`Which bucket to read. A space `,_jsx(`strong`,{children:_jsx(`code`,{children:`\u003cuuid>`})}),` reads that space's bucket; `,_jsx(`strong`,{children:_jsx(`code`,{children:`\"none\"`})}),` reads the project-general (space-less) bucket.`,` `,_jsxs(`strong`,{children:[_jsx(`code`,{children:`\"context\"`}),` is rejected (400)`]}),` on this endpoint — there is no space context to derive. The empty string and the legacy `,_jsx(`code`,{children:`general`}),` / `,_jsx(`code`,{children:`null`}),` aliases are also rejected. Missing buckets read as `,_jsx(`code`,{children:`0`}),`.`]}):_jsxs(ParamField,{name:`spaceId`,type:`string | \"none\" | \"context\"`,required:true,children:[`Which bucket to read. One of: a space `,_jsx(`strong`,{children:_jsx(`code`,{children:`\u003cuuid>`})}),` `,`(that space's bucket), `,_jsx(`strong`,{children:_jsx(`code`,{children:`\"none\"`})}),` (the project-general, space-less bucket), or`,` `,_jsx(`strong`,{children:_jsx(`code`,{children:`\"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 and the legacy`,` `,_jsx(`code`,{children:`general`}),` / `,_jsx(`code`,{children:`null`}),` aliases are rejected (400). Missing buckets read as `,_jsx(`code`,{children:`0`}),`.`]}),_jsxs(ParamField,{name:`includeDescendants`,type:`boolean`,children:[`Only honored when `,_jsx(`code`,{children:`spaceId`}),` is an explicit space `,_jsx(`code`,{children:`\u003cuuid>`}),`. When `,_jsx(`code`,{children:`true`}),`, `,_jsx(`code`,{children:`spaceReputation`}),` is the`,` `,_jsx(`strong`,{children:`subtree sum`}),` — the named space plus all of its descendant spaces (the root space's own bucket included), counting only the spaces the viewer can read. Ignored for`,` `,_jsx(`code`,{children:`\"none\"`}),`; not allowed with `,_jsx(`code`,{children:`\"context\"`}),`.`]})]})]})})};function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Heading,Note,ParamField,ResponseField,Table,Tip,_MdxComponentBoundary}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Returns one level of a comment thread, cursor-paginated:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`entityId`})}),` → the entity’s `,_jsx(_components.strong,{children:`top-level`}),` comments.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`parentCommentId`})}),` → that comment’s `,_jsx(_components.strong,{children:`direct replies`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Send exactly one of the two: neither or both returns `,_jsx(_components.code,{children:`400 comment/invalid-query`}),`. A replies fetch takes `,_jsx(_components.code,{children:`parentCommentId`}),` alone, since the parent decides the entity.`]}),`\n`,_jsxs(_components.p,{children:[`Each request can also bring a few levels of replies nested inside every returned comment (`,_jsx(_components.code,{children:`replyDepth`}),`, `,_jsx(_components.code,{children:`replyLimit`}),`), each with its own “load more” cursor — so a threaded view can render its first screen with a single request.`]}),`\n`,_jsxs(_components.p,{children:[`To list a user’s comments across entities, use `,_jsx(_components.a,{href:`/v8/api-reference/users/fetch-comments-by-user-id`,children:`Fetch Comments by User`}),` instead.`]}),`\n`,_jsxs(_components.p,{children:[`Authentication is optional. When there is a viewer — the signed-in user, or the user a service key names in `,_jsx(_components.code,{children:`actingUserId`}),` — comments by users they are `,_jsx(_components.a,{href:`/v8/sdk/moderation/overview#blocking`,children:`block-edged`}),` with are marked or shown as placeholders (see `,_jsx(_components.a,{href:`#blocked-authors`,children:`Blocked authors`}),`).`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`For previews (for example, the best comment under an entity in a feed), use `,_jsx(_components.code,{children:`include=topComments`}),` on the entity fetch instead — it returns real content only. Thread fetches include placeholders.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(Heading,{level:`3`,id:`acting-user`,children:`Acting user`}),`\n`,_jsx(ParamField,{query:`actingUserId`,type:`string`,id:`param-acting-user-id`,children:_jsxs(_components.p,{children:[`Service key only: the user to list as. The page is exactly what that user’s own access token would get: the `,_jsx(_components.a,{href:`#blocked-authors`,children:`blocked-author rules`}),` below apply to them, a moderator-removed comment of theirs is shown in full, and moderation details (`,_jsx(_components.code,{children:`moderationReason`}),`, `,_jsx(_components.code,{children:`moderatedById`}),`, `,_jsx(_components.code,{children:`moderatedByType`}),`) appear only where that user may see them. Leave it out for the anonymous view, with no moderation details. A user token always acts as its own user and must not send it, and neither may a request with no credentials (`,_jsx(_components.code,{children:`400 comment/acting-user-not-allowed`}),`).`]})}),`\n`,_jsx(Heading,{level:`3`,id:`thread`,children:`Thread`}),`\n`,_jsx(ParamField,{query:`entityId`,type:`string`,id:`param-entity-id`,children:_jsxs(_components.p,{children:[`Return this entity’s top-level comments. Send this or `,_jsx(_components.code,{children:`parentCommentId`}),`, not both.`]})}),`\n`,_jsx(ParamField,{query:`parentCommentId`,type:`string`,id:`param-parent-comment-id`,children:_jsxs(_components.p,{children:[`Return the direct replies of this comment. Send this or `,_jsx(_components.code,{children:`entityId`}),`, not both.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`pagination`,children:`Pagination`}),`\n`,_jsx(ParamField,{query:`limit`,type:`number`,default:`10`,id:`param-limit`,children:_jsxs(_components.p,{children:[`How many comments to return `,_jsx(_components.strong,{children:`at the level being fetched`}),` (top-level comments for `,_jsx(_components.code,{children:`entityId`}),`, direct replies for `,_jsx(_components.code,{children:`parentCommentId`}),`). A whole number of at least `,_jsx(_components.code,{children:`1`}),` — `,_jsx(_components.code,{children:`0`}),`, a negative number or a non-integer value returns `,_jsx(_components.code,{children:`400 comment/invalid-query`}),`. Values above `,_jsx(_components.code,{children:`100`}),` are treated as `,_jsx(_components.code,{children:`100`}),`.`]})}),`\n`,_jsx(ParamField,{query:`cursor`,type:`string`,id:`param-cursor`,children:_jsxs(_components.p,{children:[`Continue after the last comment of a previous response. Leave it out on the first request (an empty `,_jsx(_components.code,{children:`cursor`}),` is treated the same way), then pass `,_jsx(_components.code,{children:`pagination.nextCursor`}),` from the previous response. The cursor must be used with the same `,_jsx(_components.code,{children:`sortBy`}),`, `,_jsx(_components.code,{children:`sortDir`}),` and `,_jsx(_components.code,{children:`sortByReaction`}),` it was created under. See `,_jsx(_components.a,{href:`#cursors`,children:`Cursors`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`sorting`,children:`Sorting`}),`\n`,_jsxs(ParamField,{query:`sortBy`,type:`string`,default:`createdAt`,id:`param-sort-by`,children:[_jsx(_components.p,{children:`Sort for the level being fetched. One of:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`createdAt`}),` — by creation time.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`top`}),` — by the raw count of one reaction (`,_jsx(_components.code,{children:`sortByReaction`}),`, default `,_jsx(_components.code,{children:`upvote`}),`). Nothing is subtracted — a comment with 10 upvotes and 8 downvotes ranks above one with 5 upvotes.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`controversial`}),` — many up/down votes with a close split. Comments with no up/down votes sort last (under `,_jsx(_components.code,{children:`desc`}),`).`]}),`\n`]}),_jsxs(_components.p,{children:[`Ties are broken by creation time, then by ID, in the same direction — so ties are newest-first under `,_jsx(_components.code,{children:`desc`}),` and oldest-first under `,_jsx(_components.code,{children:`asc`}),`.`]})]}),`\n`,_jsx(ParamField,{query:`sortDir`,type:`string`,default:`desc`,id:`param-sort-dir`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`asc`}),` or `,_jsx(_components.code,{children:`desc`}),` (either case). Applies to `,_jsx(_components.code,{children:`createdAt`}),` and `,_jsx(_components.code,{children:`top`}),`. Not accepted with `,_jsx(_components.code,{children:`\"controversial\"`}),`, which ranks one way only (most controversial first): sending it returns `,_jsx(_components.code,{children:`400 comment/invalid-query`}),`.`]})}),`\n`,_jsx(ParamField,{query:`sortByReaction`,type:`string`,default:`upvote`,id:`param-sort-by-reaction`,children:_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`sortBy=top`}),` only: the reaction to rank by. One of `,_jsx(_components.code,{children:`upvote`}),`, `,_jsx(_components.code,{children:`downvote`}),`, `,_jsx(_components.code,{children:`like`}),`, `,_jsx(_components.code,{children:`love`}),`, `,_jsx(_components.code,{children:`wow`}),`, `,_jsx(_components.code,{children:`sad`}),`, `,_jsx(_components.code,{children:`angry`}),`, `,_jsx(_components.code,{children:`funny`}),`. Sending it with any other `,_jsx(_components.code,{children:`sortBy`}),` returns `,_jsx(_components.code,{children:`400`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`For time order, use `,_jsx(_components.code,{children:`createdAt`}),` with `,_jsx(_components.code,{children:`sortDir`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`nested-replies`,children:`Nested replies`}),`\n`,_jsx(ParamField,{query:`replyDepth`,type:`number`,default:`0`,id:`param-reply-depth`,children:_jsxs(_components.p,{children:[`How many levels of replies to nest under each returned comment, from `,_jsx(_components.code,{children:`0`}),` (none) to `,_jsx(_components.code,{children:`5`}),`.`]})}),`\n`,_jsx(ParamField,{query:`replyLimit`,type:`number`,default:`3`,id:`param-reply-limit`,children:_jsxs(_components.p,{children:[`How many replies per comment `,_jsx(_components.strong,{children:`in the nested levels only`}),`. Must be at least `,_jsx(_components.code,{children:`1`}),` — to nest nothing, use `,_jsx(_components.code,{children:`replyDepth=0`}),`. Values above `,_jsx(_components.code,{children:`100`}),` are treated as `,_jsx(_components.code,{children:`100`}),`.`]})}),`\n`,_jsx(ParamField,{query:`replySortBy`,type:`string`,id:`param-reply-sort-by`,children:_jsxs(_components.p,{children:[`Sort for the nested levels: `,_jsx(_components.code,{children:`createdAt`}),`, `,_jsx(_components.code,{children:`top`}),` or `,_jsx(_components.code,{children:`controversial`}),`. Defaults to the level’s `,_jsx(_components.code,{children:`sortBy`}),`.`]})}),`\n`,_jsx(ParamField,{query:`replySortDir`,type:`string`,id:`param-reply-sort-dir`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`asc`}),` or `,_jsx(_components.code,{children:`desc`}),` (either case) for the nested levels. Defaults to the level’s `,_jsx(_components.code,{children:`sortDir`}),`. Not accepted when the nested sort is `,_jsx(_components.code,{children:`controversial`}),` (`,_jsx(_components.code,{children:`replySortBy=controversial`}),`, or `,_jsx(_components.code,{children:`sortBy=controversial`}),` without `,_jsx(_components.code,{children:`replySortBy`}),`): a `,_jsx(_components.code,{children:`controversial`}),` level always ranks most controversial first.`]})}),`\n`,_jsx(ParamField,{query:`replySortByReaction`,type:`string`,id:`param-reply-sort-by-reaction`,children:_jsxs(_components.p,{children:[`The reaction the nested levels rank by. Only accepted when the nested sort is `,_jsx(_components.code,{children:`top`}),` (`,_jsx(_components.code,{children:`replySortBy=top`}),`, or `,_jsx(_components.code,{children:`sortBy=top`}),` without `,_jsx(_components.code,{children:`replySortBy`}),`) — otherwise `,_jsx(_components.code,{children:`400`}),`. Defaults to `,_jsx(_components.code,{children:`sortByReaction`}),` when the level is also sorted by `,_jsx(_components.code,{children:`top`}),`, else `,_jsx(_components.code,{children:`upvote`}),`. When `,_jsx(_components.code,{children:`replySortBy`}),` is omitted, all three reply-sort params follow the level’s sort.`]})}),`\n`,_jsxs(_components.p,{children:[`The params come in pairs: `,_jsx(_components.code,{children:`limit`}),` and `,_jsx(_components.code,{children:`sortBy`}),`/`,_jsx(_components.code,{children:`sortDir`}),`/`,_jsx(_components.code,{children:`sortByReaction`}),` describe the level you’re asking for; `,_jsx(_components.code,{children:`replyLimit`}),` and `,_jsx(_components.code,{children:`replySortBy`}),`/`,_jsx(_components.code,{children:`replySortDir`}),`/`,_jsx(_components.code,{children:`replySortByReaction`}),` describe what’s nested underneath. A `,_jsx(_components.code,{children:`parentCommentId`}),` request is a request for replies, so to get replies oldest-first there, send `,_jsx(_components.code,{children:`sortBy=createdAt\u0026sortDir=asc`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`request-size-limit`,children:`Request size limit`}),`\n`,_jsx(_components.p,{children:`Before running any query, the server computes the most comments a request could return:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`limit × (1 + replyLimit + replyLimit² + … + replyLimit^replyDepth)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`using the values after `,_jsx(_components.code,{children:`limit`}),` and `,_jsx(_components.code,{children:`replyLimit`}),` are capped at 100. Requests above `,_jsx(_components.strong,{children:`500`}),` are rejected with `,_jsx(_components.code,{children:`400 comment/reply-budget-exceeded`}),` — they are never silently trimmed. For example, `,_jsx(_components.code,{children:`limit=10\u0026replyDepth=2\u0026replyLimit=3`}),` can return up to 10 × 13 = 130 comments, while `,_jsx(_components.code,{children:`limit=10\u0026replyDepth=5\u0026replyLimit=2`}),` (10 × 63 = 630) is rejected.`]}),`\n`,_jsx(Heading,{level:`3`,id:`optional-associations`,children:`Optional associations`}),`\n`,_jsxs(ParamField,{query:`include`,type:`string`,id:`param-include`,children:[_jsxs(_components.p,{children:[`Associations to include, as a comma-separated value (`,_jsx(_components.code,{children:`include=user,grants`}),`) or repeated params, applied at every level (nested replies included). Values:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`user`}),` — the comment author, with the avatar file URLs`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`grants`}),` — the `,_jsx(_components.a,{href:`/v8/data-models/reputation-grant#grantsummary`,children:`reputation-grant summary`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`files`}),` — the comment’s images and files, in upload order, images with their variants. A placeholder (a deleted, removed or unavailable comment) has `,_jsx(_components.code,{children:`files: []`}),`. Requires the `,_jsx(_components.code,{children:`files-images`}),` bundle`]}),`\n`]}),_jsxs(_components.p,{children:[`Matching ignores case. Every comment in a thread belongs to the entity you asked for, so `,_jsx(_components.code,{children:`entity`}),`, `,_jsx(_components.code,{children:`space`}),` and `,_jsx(_components.code,{children:`parent`}),` aren’t available here: they return `,_jsx(_components.code,{children:`400 comment/unsupported-param`}),` (see `,_jsx(_components.a,{href:`#unsupported-parameters`,children:`Unsupported parameters`}),`). Any other unknown value returns `,_jsx(_components.code,{children:`400 comment/invalid-query`}),`.`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`space-scoped-reputation`,children:`Space-scoped reputation`}),`\n`,_jsxs(_components.p,{children:[`This endpoint has a space in context, so it accepts the opt-in reputation params. They add a `,_jsx(_components.code,{children:`spaceReputation`}),` field to each populated author `,_jsx(_components.code,{children:`user`}),` (at every level), alongside the always-present `,_jsx(_components.code,{children:`reputation`}),` total. Requires the `,_jsx(_components.code,{children:`reputation`}),` bundle. See the `,_jsx(_components.a,{href:`/v8/data-models/reputation`,children:`Reputation data model`}),` for the full contract.`]}),`\n`,_jsx(_MdxComponentBoundary,{name:`SpaceReputationParams`,children:_jsx(SpaceReputationParams,{variant:`context`,field:`query`,rest:true})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`28`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`28`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"parentCommentId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"repliesCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"isAuthorBlocked\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"isUnavailable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"replies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"r1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"parentCommentId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"repliesCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"isAuthorBlocked\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"isUnavailable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"replies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"r1a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"parentCommentId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"r1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"repliesCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pagination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"nextCursor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"hasMore\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pagination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"nextCursor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eyJ2Ijox…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"hasMore\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pagination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"nextCursor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eyJ2Ijox…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"hasMore\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(ResponseField,{name:`data`,type:`Comment[]`,id:`param-data`,children:_jsxs(_components.p,{children:[`The comments at the requested level, in sort order. Each item is a `,_jsx(_components.a,{href:`/v8/data-models/comment`,children:`Comment`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`pagination.nextCursor`,type:`string | null`,id:`param-pagination-next-cursor`,children:_jsxs(_components.p,{children:[`Pass this as `,_jsx(_components.code,{children:`cursor`}),` to get the next batch. `,_jsx(_components.code,{children:`null`}),` when there’s nothing more.`]})}),`\n`,_jsx(ResponseField,{name:`pagination.hasMore`,type:`boolean`,id:`param-pagination-has-more`,children:_jsxs(_components.p,{children:[`Whether more comments exist after this batch. Exact — use it (not `,_jsx(_components.code,{children:`repliesCount`}),`) to decide whether to show a “load more” button.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`nested-replies-2`,children:`Nested replies`}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`replyDepth`}),` above `,_jsx(_components.code,{children:`0`}),`, each comment carries a `,_jsx(_components.code,{children:`replies`}),` field with the `,_jsx(_components.strong,{children:`same envelope`}),` as the top level: `,_jsx(_components.code,{children:`{ data, pagination }`}),`. A nested `,_jsx(_components.code,{children:`replies.pagination.nextCursor`}),` continues that comment’s replies — see `,_jsx(_components.a,{href:`#cursors`,children:`Cursors`}),`.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Comments at the last nested level have `,_jsxs(_components.strong,{children:[`no `,_jsx(_components.code,{children:`replies`}),` field`]}),` — their replies weren’t fetched. `,_jsx(_components.code,{children:`replies: { data: [] }`}),` means they were fetched and there are none.`]}),`\n`,_jsxs(_components.li,{children:[`With `,_jsx(_components.code,{children:`replyDepth=0`}),` (the default), no comment carries `,_jsx(_components.code,{children:`replies`}),`.`]}),`\n`,_jsx(_components.li,{children:`Placeholders and flagged comments get nested replies like any other comment, so other people’s replies under them stay in place.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`counts`,children:`Counts`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`repliesCount`}),` is the number of direct replies a comment has, for display. It counts every reply the thread contains — including deleted, removed and unavailable ones, which appear as placeholders — so it’s the same number for every viewer and always matches what paging through the replies returns. Drive buttons from `,_jsx(_components.code,{children:`hasMore`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`deleted-and-removed-comments`,children:`Deleted and removed comments`}),`\n`,_jsxs(_components.p,{children:[`Deleted and moderator-removed comments stay in the thread as `,_jsx(_components.strong,{children:`placeholders`}),`, so the replies under them aren’t lost. A placeholder keeps its position, `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`parentCommentId`}),`, timestamps, `,_jsx(_components.code,{children:`reactionCounts`}),` and `,_jsx(_components.code,{children:`repliesCount`}),`, with the author and content blanked. A moderator-removed comment is shown in full to its own author. See `,_jsx(_components.a,{href:`/v8/data-models/comment#placeholders`,children:`Placeholders`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`blocked-authors`,children:`Blocked authors`}),`\n`,_jsxs(_components.p,{children:[`Every comment carries two flags, `,_jsx(_components.code,{children:`isAuthorBlocked`}),` and `,_jsx(_components.code,{children:`isUnavailable`}),`. Both are always present, and always `,_jsx(_components.code,{children:`false`}),` when the caller isn’t signed in or the `,_jsx(_components.code,{children:`moderation`}),` bundle isn’t installed. Otherwise:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`The caller and the comment’s author`}),_jsx(_components.th,{children:`The comment is returned`}),_jsx(_components.th,{children:`Flags`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The caller blocked the author`}),_jsx(_components.td,{children:`in full`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`isAuthorBlocked: true`}),` — your app decides whether to collapse it, offer “show anyway”, or hide it`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The author blocked the caller (or both blocked each other)`}),_jsx(_components.td,{children:`as a placeholder`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`isUnavailable: true`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`No block`}),_jsx(_components.td,{children:`as usual`}),_jsxs(_components.td,{children:[`both `,_jsx(_components.code,{children:`false`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`isUnavailable`}),` is deliberately neutral: it means the comment exists but can’t be shown to this caller, without saying why. Replying to or reacting to an `,_jsx(_components.code,{children:`isUnavailable`}),` comment is refused, so hide those controls.`]}),`\n`,_jsxs(_components.p,{children:[`When the `,_jsx(_components.strong,{children:`entity’s`}),` author has blocked the caller, the whole thread is unavailable to them: a request with that `,_jsx(_components.code,{children:`entityId`}),`, or with the `,_jsx(_components.code,{children:`parentCommentId`}),` of any comment on that entity, returns an empty page — exactly what an entity that doesn’t exist returns.`]}),`\n`,_jsx(Heading,{level:`2`,id:`reading`,children:`Reading`}),`\n`,_jsxs(_components.p,{children:[`A thread follows its entity’s space. When the entity is in a space the caller can’t read (see `,_jsx(_components.a,{href:`/v8/data-models/space#who-can-read-content`,children:`who can read content`}),`), a request with that `,_jsx(_components.code,{children:`entityId`}),`, or with the `,_jsx(_components.code,{children:`parentCommentId`}),` of any comment on that entity, returns the same empty page. A service key without `,_jsx(_components.code,{children:`actingUserId`}),` reads as a signed-out caller, so threads on entities in members-only and private spaces come back empty; name a member in `,_jsx(_components.code,{children:`actingUserId`}),` to read them.`]}),`\n`,_jsx(Heading,{level:`2`,id:`cursors`,children:`Cursors`}),`\n`,_jsx(_components.p,{children:`A cursor is an opaque string. It records the sort it was created under and the last comment you received, and the next request continues right after that comment. Comments posted in the meantime don’t shift what you get.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Send the same `,_jsx(_components.code,{children:`sortBy`}),`, `,_jsx(_components.code,{children:`sortDir`}),` and `,_jsx(_components.code,{children:`sortByReaction`}),` with a cursor as the request that returned it. A different sort returns `,_jsx(_components.code,{children:`400 comment/cursor-sort-mismatch`}),`; to change the sort, start over without a cursor.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`A cursor doesn’t record which entity or comment it came from. Sending it with a different `,_jsx(_components.code,{children:`entityId`}),` or `,_jsx(_components.code,{children:`parentCommentId`}),` just continues from the same sort position there.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Continuing nested replies:`}),` a `,_jsx(_components.code,{children:`replies.pagination.nextCursor`}),` was created under the `,_jsx(_components.strong,{children:`reply`}),` sort. Continue it with a `,_jsx(_components.code,{children:`parentCommentId`}),` request for that comment, sending the reply sort as `,_jsx(_components.code,{children:`sortBy`}),` / `,_jsx(_components.code,{children:`sortDir`}),` / `,_jsx(_components.code,{children:`sortByReaction`}),` (for a `,_jsx(_components.code,{children:`controversial`}),` reply sort, leave `,_jsx(_components.code,{children:`sortDir`}),` out):`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /v8/:projectId/comments?parentCommentId=c1\u0026cursor=\u003creplies.pagination.nextCursor>\u0026sortBy=\u003creplySortBy>\u0026sortDir=\u003creplySortDir>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`The SDK’s `,_jsx(_components.a,{href:`/v8/hooks/comments/use-replies`,children:_jsx(_components.code,{children:`useReplies`})}),` does this for you.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Vote-ranked sorts can shift:`}),` under `,_jsx(_components.code,{children:`top`}),` and `,_jsx(_components.code,{children:`controversial`}),`, a comment whose votes change between two requests can move past the cursor — it may be skipped (it shows up on refresh) or appear twice (de-duplicate by `,_jsx(_components.code,{children:`id`}),`). `,_jsx(_components.code,{children:`createdAt`}),` is exact.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`unsupported-parameters`,children:`Unsupported parameters`}),`\n`,_jsxs(_components.p,{children:[`These parameters return `,_jsx(_components.code,{children:`400`}),` with code `,_jsx(_components.code,{children:`comment/unsupported-param`}),`, a `,_jsx(_components.code,{children:`param`}),` field naming the parameter, and an `,_jsx(_components.code,{children:`error`}),` message pointing to the replacement:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Sent`}),_jsx(_components.th,{children:`Use instead`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`page`})}),_jsxs(_components.td,{children:[`Cursor pagination: leave `,_jsx(_components.code,{children:`cursor`}),` out on the first request, then pass `,_jsx(_components.code,{children:`pagination.nextCursor`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`parentId`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`parentCommentId`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`userId`})}),_jsxs(_components.td,{children:[_jsx(_components.a,{href:`/v8/api-reference/users/fetch-comments-by-user-id`,children:_jsx(_components.code,{children:`GET /users/:userId/comments`})}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`blockedFilter`})}),_jsxs(_components.td,{children:[`Threads always include comments by users the caller blocked, marked `,_jsx(_components.code,{children:`isAuthorBlocked: true`}),`. `,_jsx(_components.code,{children:`blockedFilter`}),` is available on `,_jsx(_components.a,{href:`/v8/api-reference/users/fetch-comments-by-user-id`,children:_jsx(_components.code,{children:`GET /users/:userId/comments`})}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sourceId`})}),_jsxs(_components.td,{children:[`A thread already belongs to one entity. To filter a user’s comments by source, use `,_jsx(_components.a,{href:`/v8/api-reference/users/fetch-comments-by-user-id`,children:_jsx(_components.code,{children:`GET /users/:userId/comments?sourceId=…`})}),`.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`include=entity`}),`, `,_jsx(_components.code,{children:`include=space`})]}),_jsxs(_components.td,{children:[`Every comment in a thread belongs to the entity you requested. Supported values: `,_jsx(_components.code,{children:`user`}),`, `,_jsx(_components.code,{children:`grants`}),`, `,_jsx(_components.code,{children:`files`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`include=parent`})}),_jsxs(_components.td,{children:[`Top-level comments have no parent, and replies all share the one you requested. Available on `,_jsx(_components.a,{href:`/v8/api-reference/users/fetch-comments-by-user-id`,children:_jsx(_components.code,{children:`GET /users/:userId/comments`})}),` and the single-comment fetches.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sortBy=new`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`sortBy=createdAt`}),` (newest first by default).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sortBy=old`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`sortBy=createdAt\u0026sortDir=asc`}),`.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Other unknown query parameters are ignored.`}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsx(_components.p,{children:`Checks run in this order; the first failing check is returned.`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Comments bundle not installed — 403`,id:`comments-bundle-not-installed-403`,children:[_jsxs(_components.p,{children:[`Returned on a project without the `,_jsx(_components.code,{children:`comments`}),` bundle, ahead of the checks below. The body has no `,_jsx(_components.code,{children:`error`}),` field: it carries the `,_jsx(_components.code,{children:`code`}),`, the missing tables, and a link to the project’s Database page in the dashboard, where the bundle is installed. See `,_jsx(_components.a,{href:`/v8/bundles`,children:`Bundles`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This endpoint needs tables that aren't installed in this project (Comments). Install their bundle from the dashboard.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"database/tables-not-available\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"missingTables\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Comments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bundleId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dashboardUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://\u003cdashboard>/\u003cprojectId>/database\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Accordion,{title:`Unsupported parameter — 400`,id:`unsupported-parameter-400`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"`page` isn\\'t supported on this endpoint. Comments use cursor pagination: leave `cursor` out on the first request, then pass `pagination.nextCursor` from the previous response to get the next batch.\"'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comment/unsupported-param\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"param\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"page\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"\\\"`parentId` isn't supported in v8. To list a comment's replies, send `parentCommentId`.\\\"\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comment/unsupported-param\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"param\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"parentId\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Accordion,{title:`Invalid query — 400`,id:`invalid-query-400`,children:[_jsxs(_components.p,{children:[`Returned with code `,_jsx(_components.code,{children:`comment/invalid-query`}),` for invalid values — for example neither or both of `,_jsx(_components.code,{children:`entityId`}),` and `,_jsx(_components.code,{children:`parentCommentId`}),`, a malformed id, an unknown `,_jsx(_components.code,{children:`include`}),` value, `,_jsx(_components.code,{children:`sortByReaction`}),` without `,_jsx(_components.code,{children:`sortBy=top`}),`, `,_jsx(_components.code,{children:`replySortByReaction`}),` when the nested sort isn’t `,_jsx(_components.code,{children:`top`}),`, `,_jsx(_components.code,{children:`limit`}),` below `,_jsx(_components.code,{children:`1`}),` or not a whole number, `,_jsx(_components.code,{children:`replyDepth`}),` above `,_jsx(_components.code,{children:`5`}),`, or `,_jsx(_components.code,{children:`replyLimit`}),` below `,_jsx(_components.code,{children:`1`}),`. `,_jsx(_components.code,{children:`error`}),` names the first problem found:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"\\\"Send `entityId` (an entity's top-level comments) or `parentCommentId` (a comment's replies), not both. To list a user's comments, use `GET /users/:userId/comments`.\\\"\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comment/invalid-query\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"include: Unknown include `replies`. Allowed: user, grants, files.\"'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comment/invalid-query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]}),_jsx(Accordion,{title:`Request too large — 400`,id:`request-too-large-400`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"This request could return up to 630 comments (max 500). Lower `limit`, `replyLimit` or `replyDepth`.\"'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comment/reply-budget-exceeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maxRows\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestedRows\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`630`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsx(Accordion,{title:`Invalid cursor — 400`,id:`invalid-cursor-400`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"Invalid `cursor`. Pass `pagination.nextCursor` from a previous response unchanged, or leave `cursor` out to start from the beginning.\"'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comment/invalid-cursor\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsx(Accordion,{title:`Cursor from a different sort — 400`,id:`cursor-from-a-different-sort-400`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"This `cursor` was created under a different sort. Send the same `sortBy`, `sortDir` and `sortByReaction` as the request that returned it, or leave `cursor` out to start from the beginning.\"'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comment/cursor-sort-mismatch\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsxs(Accordion,{title:`Acting User Not Allowed — 400`,id:`acting-user-not-allowed-400`,children:[_jsxs(_components.p,{children:[`A user token, or a request with no credentials, sent `,_jsx(_components.code,{children:`actingUserId`}),`, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"actingUserId is only accepted with a service key. A user's own token always acts as that user.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comment/acting-user-not-allowed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]}),_jsxs(Accordion,{title:`User Not Found — 404`,id:`user-not-found-404`,children:[_jsxs(_components.p,{children:[`Returned when a service key names an `,_jsx(_components.code,{children:`actingUserId`}),` that isn’t a user in this project.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No user with this actingUserId exists in this project.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comment/user-not-found\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`see-also`,children:`See Also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/v8/data-models/comment`,children:`Comment data model`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/v8/api-reference/users/fetch-comments-by-user-id`,children:`Fetch Comments by User`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/v8/hooks/comments/use-replies`,children:_jsx(_components.code,{children:`useReplies`})}),` and `,_jsx(_components.a,{href:`/v8/sdk/comments/comment-section`,children:`Comment Section`})]}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/v8/hooks/comments/use-fetch-many-comments`,children:_jsx(_components.code,{children:`useFetchManyComments`})})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{SpaceReputationParams,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Fetch Many Comments","api":"GET /v8/:projectId/comments","description":"Get a comment thread: an entity's top-level comments, or a comment's replies, with optional nested replies","href":"/v8/api-reference/comments/fetch-many-comments"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[157,5850,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"Query Parameters","slug":"query-parameters","depth":2,"children":[{"title":"Acting user","slug":"acting-user","depth":3,"children":[]},{"title":"Thread","slug":"thread","depth":3,"children":[]},{"title":"Pagination","slug":"pagination","depth":3,"children":[]},{"title":"Sorting","slug":"sorting","depth":3,"children":[]},{"title":"Nested replies","slug":"nested-replies","depth":3,"children":[]},{"title":"Request size limit","slug":"request-size-limit","depth":4,"children":[]},{"title":"Optional associations","slug":"optional-associations","depth":3,"children":[]},{"title":"Space-scoped reputation","slug":"space-scoped-reputation","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Nested replies","slug":"nested-replies-2","depth":3,"children":[]},{"title":"Counts","slug":"counts","depth":3,"children":[]},{"title":"Deleted and removed comments","slug":"deleted-and-removed-comments","depth":3,"children":[]},{"title":"Blocked authors","slug":"blocked-authors","depth":3,"children":[]}]},{"title":"Reading","slug":"reading","depth":2,"children":[]},{"title":"Cursors","slug":"cursors","depth":2,"children":[]},{"title":"Unsupported parameters","slug":"unsupported-parameters","depth":2,"children":[]},{"title":"Error Responses","slug":"error-responses","depth":2,"children":[]},{"title":"See Also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Fetch Many Comments","path":"/v8/:projectId/comments","servers":[{"url":"https://api.sublay.io"}],"method":"get","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{"actingUserId":{"schema":[{"type":"string","description":"Service key only: the user to list as. The page is exactly what that user’s own access token would get: the blocked-author rules below apply to them, a moderator-removed comment of theirs is shown in full, and moderation details ( `moderationReason` , `moderatedById` , `moderatedByType` ) appear only where that user may see them. Leave it out for the anonymous view, with no moderation details. A user token always acts as its own user and must not send it, and neither may a request with no credentials ( `400 comment/acting-user-not-allowed` )."}]},"entityId":{"schema":[{"type":"string","description":"Return this entity’s top-level comments. Send this or `parentCommentId` , not both."}]},"parentCommentId":{"schema":[{"type":"string","description":"Return the direct replies of this comment. Send this or `entityId` , not both."}]},"limit":{"schema":[{"type":"number","description":"How many comments to return at the level being fetched (top-level comments for `entityId` , direct replies for `parentCommentId` ). A whole number of at least `1` — `0` , a negative number or a non-integer value returns `400 comment/invalid-query` . Values above `100` are treated as `100` ."}]},"cursor":{"schema":[{"type":"string","description":"Continue after the last comment of a previous response. Leave it out on the first request (an empty `cursor` is treated the same way), then pass `pagination.nextCursor` from the previous response. The cursor must be used with the same `sortBy` , `sortDir` and `sortByReaction` it was created under. See Cursors ."}]},"sortBy":{"schema":[{"type":"string","description":"Sort for the level being fetched. One of: `createdAt` — by creation time. `top` — by the raw count of one reaction ( `sortByReaction` , default `upvote` ). Nothing is subtracted — a comment with 10 upvotes and 8 downvotes ranks above one with 5 upvotes. `controversial` — many up/down votes with a close split. Comments with no up/down votes sort last (under `desc` ). Ties are broken by creation time, then by ID, in the same direction — so ties are newest-first under `desc` and oldest-first under `asc` ."}]},"sortDir":{"schema":[{"type":"string","description":"`asc` or `desc` (either case). Applies to `createdAt` and `top` . Not accepted with `\"controversial\"` , which ranks one way only (most controversial first): sending it returns `400 comment/invalid-query` ."}]},"sortByReaction":{"schema":[{"type":"string","description":"With `sortBy=top` only: the reaction to rank by. One of `upvote` , `downvote` , `like` , `love` , `wow` , `sad` , `angry` , `funny` . Sending it with any other `sortBy` returns `400` ."}]},"replyDepth":{"schema":[{"type":"number","description":"How many levels of replies to nest under each returned comment, from `0` (none) to `5` ."}]},"replyLimit":{"schema":[{"type":"number","description":"How many replies per comment in the nested levels only . Must be at least `1` — to nest nothing, use `replyDepth=0` . Values above `100` are treated as `100` ."}]},"replySortBy":{"schema":[{"type":"string","description":"Sort for the nested levels: `createdAt` , `top` or `controversial` . Defaults to the level’s `sortBy` ."}]},"replySortDir":{"schema":[{"type":"string","description":"`asc` or `desc` (either case) for the nested levels. Defaults to the level’s `sortDir` . Not accepted when the nested sort is `controversial` ( `replySortBy=controversial` , or `sortBy=controversial` without `replySortBy` ): a `controversial` level always ranks most controversial first."}]},"replySortByReaction":{"schema":[{"type":"string","description":"The reaction the nested levels rank by. Only accepted when the nested sort is `top` ( `replySortBy=top` , or `sortBy=top` without `replySortBy` ) — otherwise `400` . Defaults to `sortByReaction` when the level is also sorted by `top` , else `upvote` . When `replySortBy` is omitted, all three reply-sort params follow the level’s sort."}]},"include":{"schema":[{"type":"string","description":"Associations to include, as a comma-separated value ( `include=user,grants` ) or repeated params, applied at every level (nested replies included). Values: `user` — the comment author, with the avatar file URLs `grants` — the reputation-grant summary `files` — the comment’s images and files, in upload order, images with their variants. A placeholder (a deleted, removed or unavailable comment) has `files: []` . Requires the `files-images` bundle Matching ignores case. Every comment in a thread belongs to the entity you asked for, so `entity` , `space` and `parent` aren’t available here: they return `400 comment/unsupported-param` (see Unsupported parameters ). Any other unknown value returns `400 comment/invalid-query` ."}]}},"header":{},"cookie":{},"path":{}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"data":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"The comments at the requested level, in sort order. Each item is a Comment ."}],"pagination.nextCursor":[{"type":"object","properties":{},"description":"Pass this as `cursor` to get the next batch. `null` when there’s nothing more."}],"pagination.hasMore":[{"type":"boolean","description":"Whether more comments exist after this batch. Exact — use it (not `repliesCount` ) to decide whether to show a “load more” button."}]}}],"examples":{"example":{"value":{"data":[{}],"pagination.nextCursor":{},"pagination.hasMore":true}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"replyke","siteName":"Sublay Documentation","title":"Fetch Many Comments - Sublay Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"8.0.0":{"href":"/v8/api-reference/comments/fetch-many-comments","matchLevel":0},"7.0.0":{"href":"/v7/api-reference/comments/fetch-many-comments","matchLevel":1},"6.0.0":{"href":"/v6/api-reference/comments/fetch-many-comments","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T13:03:49.466Z","originalFileLocation":"v8/api-reference/comments/fetch-many-comments.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Get a comment thread: an entity\u0026#x27;s top-level comments, or a comment\u0026#x27;s replies, with optional nested replies\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sublay Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Fetch Many Comments - Sublay Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get a comment thread: an entity\u0026#x27;s top-level comments, or a comment\u0026#x27;s replies, with optional nested replies\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sublay Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sublay.io/v8/api-reference/comments/fetch-many-comments\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://replyke.mintlify.site/_mintlify/api/og/v2?division=Comment+Endpoints\u0026amp;title=Fetch+Many+Comments\u0026amp;description=Get+a+comment+thread%3A+an+entity%27s+top-level+comments%2C+or+a+comment%27s+replies%2C+with+optional+nested+replies\u0026amp;theme=1f560c5aaf3e1f0507c7e36a\u0026amp;signature=0ccd74f48b71a7bd6ef98fb795af0866b485fd659cf1b3723acdca165a190fab\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Fetch Many Comments - Sublay Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get a comment thread: an entity\u0026#x27;s top-level comments, or a comment\u0026#x27;s replies, with optional nested replies\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://replyke.mintlify.site/_mintlify/api/og/v2?division=Comment+Endpoints\u0026amp;title=Fetch+Many+Comments\u0026amp;description=Get+a+comment+thread%3A+an+entity%27s+top-level+comments%2C+or+a+comment%27s+replies%2C+with+optional+nested+replies\u0026amp;theme=1f560c5aaf3e1f0507c7e36a\u0026amp;signature=0ccd74f48b71a7bd6ef98fb795af0866b485fd659cf1b3723acdca165a190fab\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sublay Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D22F55\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sublay.io/v8/api-reference/comments/fetch-many-comments\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v8/api-reference/comments/fetch-many-comments.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sublay.io/#organization\",\"name\":\"Sublay Documentation\",\"url\":\"https://docs.sublay.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/replyke/v1bBipIMITFr7df3/logo/wordmark-dark.png?fit=max\u0026auto=format\u0026n=v1bBipIMITFr7df3\u0026q=85\u0026s=b95cabb32c98884aa4bca294b07238cc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sublay.io#website\",\"name\":\"Sublay Documentation\",\"url\":\"https://docs.sublay.io\",\"publisher\":{\"@id\":\"https://docs.sublay.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sublay.io/v8/api-reference/comments/fetch-many-comments#webpage\",\"url\":\"https://docs.sublay.io/v8/api-reference/comments/fetch-many-comments\",\"name\":\"Fetch Many Comments\",\"description\":\"Get a comment thread: an entity's top-level comments, or a comment's replies, with optional nested replies\",\"dateModified\":\"2026-11-24T13:03:49.466Z\",\"isPartOf\":{\"@id\":\"https://docs.sublay.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sublay.io/v8/api-reference/comments/fetch-many-comments#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sublay.io/v8/api-reference/comments/fetch-many-comments#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Comment Endpoints\",\"item\":\"https://docs.sublay.io/v8/api-reference/comments/create-comment\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fetch Many Comments\",\"item\":\"https://docs.sublay.io/v8/api-reference/comments/fetch-many-comments\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sublay.io/v8/api-reference/comments/fetch-many-comments#apireference\",\"headline\":\"Fetch Many Comments\",\"name\":\"Fetch Many Comments\",\"description\":\"Get a comment thread: an entity's top-level comments, or a comment's replies, with optional nested replies\",\"url\":\"https://docs.sublay.io/v8/api-reference/comments/fetch-many-comments\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sublay.io/v8/api-reference/comments/fetch-many-comments#webpage\"},\"dateModified\":\"2026-11-24T13:03:49.466Z\",\"publisher\":{\"@id\":\"https://docs.sublay.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sublay.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sublay Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Sublay Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v8/api-reference/comments/fetch-many-comments.md","siteName":"Sublay Documentation","nav":{"global":null,"versions":[{"version":"8.0.0","tag":"Beta","tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/v8"}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/v8/sdk/getting-started"}]},{"tab":"Hooks Reference","pages":[{"title":"Hooks Reference","href":"/v8/hooks/overview"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Getting Started","href":"/v8/api-reference/getting-started"},{"title":"Authentication","href":"/v8/api-reference/authentication"}]},{"group":"Auth Endpoints","pages":[{"title":"Sign Up","api":"POST /v8/:projectId/auth/sign-up","href":"/v8/api-reference/auth/sign-up"},{"title":"Sign In","api":"POST /v8/:projectId/auth/sign-in","href":"/v8/api-reference/auth/sign-in"},{"title":"Sign Out","api":"POST /v8/:projectId/auth/sign-out","href":"/v8/api-reference/auth/sign-out"},{"title":"Change Password","api":"POST /v8/:projectId/auth/change-password","href":"/v8/api-reference/auth/change-password"},{"title":"Set Password","api":"POST /v8/:projectId/auth/set-password","href":"/v8/api-reference/auth/set-password"},{"title":"Request Access Token","api":"POST /v8/:projectId/auth/request-new-access-token","href":"/v8/api-reference/auth/request-access-token"},{"title":"Verify External User","api":"POST /v8/:projectId/auth/verify-external-user","href":"/v8/api-reference/auth/verify-external-user"},{"title":"Request Password Reset","api":"POST /v8/:projectId/auth/request-password-reset","href":"/v8/api-reference/auth/request-password-reset"},{"title":"Reset Password","api":"POST /v8/:projectId/auth/reset-password","href":"/v8/api-reference/auth/reset-password"},{"title":"Send Verification Email","api":"POST /v8/:projectId/auth/send-verification-email","href":"/v8/api-reference/auth/send-verification-email"},{"title":"Verify Email","api":"POST /v8/:projectId/auth/verify-email","href":"/v8/api-reference/auth/verify-email"},{"title":"Verify Email Link","api":"GET /v8/:projectId/auth/verify-email-link","href":"/v8/api-reference/auth/verify-email-link"},{"title":"Request Account Deletion","api":"POST /v8/:projectId/auth/request-account-deletion","href":"/v8/api-reference/auth/request-account-deletion"},{"title":"Confirm Account Deletion","api":"POST /v8/:projectId/auth/confirm-account-deletion","href":"/v8/api-reference/auth/confirm-account-deletion"}]},{"group":"OAuth Endpoints","pages":[{"title":"Authorize OAuth","api":"POST /v8/:projectId/oauth/authorize","href":"/v8/api-reference/oauth/authorize"},{"title":"Link OAuth Provider","api":"POST /v8/:projectId/oauth/link","href":"/v8/api-reference/oauth/link"},{"title":"List OAuth Identities","api":"GET /v8/:projectId/oauth/identities","href":"/v8/api-reference/oauth/list-identities"},{"title":"Unlink OAuth Identity","api":"DELETE /v8/:projectId/oauth/identities/:identityId","href":"/v8/api-reference/oauth/unlink-identity"}]},{"group":"User Endpoints","pages":[{"title":"Fetch User","api":"GET /v8/:projectId/users/:userId","href":"/v8/api-reference/users/fetch-user"},{"title":"Fetch User by Foreign ID","api":"GET /v8/:projectId/users/by-foreign-id","href":"/v8/api-reference/users/fetch-user-by-foreign-id"},{"title":"Fetch or Create User by Foreign ID","api":"POST /v8/:projectId/users/by-foreign-id","href":"/v8/api-reference/users/fetch-or-create-user-by-foreign-id"},{"title":"Fetch User by Username","api":"GET /v8/:projectId/users/by-username","href":"/v8/api-reference/users/fetch-user-by-username"},{"title":"Fetch User Suggestions","api":"GET /v8/:projectId/users/suggestions","href":"/v8/api-reference/users/fetch-user-suggestions"},{"title":"Fetch Comments by User","api":"GET /v8/:projectId/users/:userId/comments","href":"/v8/api-reference/users/fetch-comments-by-user-id"},{"title":"Check Username Availability","api":"GET /v8/:projectId/users/check-username","href":"/v8/api-reference/users/check-username-availability"},{"title":"Update User","api":"PATCH /v8/:projectId/users/:userId","href":"/v8/api-reference/users/update-user"},{"title":"Delete User","api":"DELETE /v8/:projectId/users/:userId","href":"/v8/api-reference/users/delete-user"}]},{"group":"User Follow Operations","pages":[{"title":"Follow User","api":"POST /v8/:projectId/users/:userId/follow","href":"/v8/api-reference/users/follows/follow-user"},{"title":"Get Follow Status","api":"GET /v8/:projectId/users/:userId/follow","href":"/v8/api-reference/users/follows/get-follow-status"},{"title":"Get Followers","api":"GET /v8/:projectId/users/:userId/followers","href":"/v8/api-reference/users/follows/get-followers"},{"title":"Get Followers Count","api":"GET /v8/:projectId/users/:userId/followers-count","href":"/v8/api-reference/users/follows/get-followers-count"},{"title":"Get Following","api":"GET /v8/:projectId/users/:userId/following","href":"/v8/api-reference/users/follows/get-following"},{"title":"Get Following Count","api":"GET /v8/:projectId/users/:userId/following-count","href":"/v8/api-reference/users/follows/get-following-count"},{"title":"Unfollow User","api":"DELETE /v8/:projectId/users/:userId/follow","href":"/v8/api-reference/users/follows/unfollow-user"}]},{"group":"User Connection Operations","pages":[{"title":"Request Connection","api":"POST /v8/:projectId/users/:userId/connection","href":"/v8/api-reference/users/connections/request-connection"},{"title":"Get Connection Status","api":"GET /v8/:projectId/users/:userId/connection","href":"/v8/api-reference/users/connections/get-connection-status"},{"title":"Get Connections","api":"GET /v8/:projectId/users/:userId/connections","href":"/v8/api-reference/users/connections/get-connections"},{"title":"Get Connections Count","api":"GET /v8/:projectId/users/:userId/connections-count","href":"/v8/api-reference/users/connections/get-connections-count"},{"title":"Remove Connection","api":"DELETE /v8/:projectId/users/:userId/connection","href":"/v8/api-reference/users/connections/remove-connection"}]},{"group":"User Block Operations","pages":[{"title":"Block User","api":"POST /v8/:projectId/users/:userId/block","href":"/v8/api-reference/users/blocks/block-user"},{"title":"Unblock User","api":"DELETE /v8/:projectId/users/:userId/block","href":"/v8/api-reference/users/blocks/unblock-user"},{"title":"Get Block Status","api":"GET /v8/:projectId/users/:userId/block","href":"/v8/api-reference/users/blocks/get-block-status"},{"title":"Fetch Blocked Users","api":"GET /v8/:projectId/blocks","href":"/v8/api-reference/blocks/fetch-blocks"}]},{"group":"Follow Endpoints","pages":[{"title":"Fetch Following","api":"GET /v8/:projectId/follows/following","href":"/v8/api-reference/follows/fetch-following"},{"title":"Fetch Followers","api":"GET /v8/:projectId/follows/followers","href":"/v8/api-reference/follows/fetch-followers"},{"title":"Fetch Following Count","api":"GET /v8/:projectId/follows/following-count","href":"/v8/api-reference/follows/fetch-following-count"},{"title":"Fetch Followers Count","api":"GET /v8/:projectId/follows/followers-count","href":"/v8/api-reference/follows/fetch-followers-count"},{"title":"Delete Follow","api":"DELETE /v8/:projectId/follows/:followId","href":"/v8/api-reference/follows/delete-follow"}]},{"group":"Connection Endpoints","pages":[{"title":"Fetch Connections","api":"GET /v8/:projectId/connections","href":"/v8/api-reference/connections/fetch-connections"},{"title":"Fetch Connections Count","api":"GET /v8/:projectId/connections/connections-count","href":"/v8/api-reference/connections/fetch-connections-count"},{"title":"Fetch Sent Pending Connections","api":"GET /v8/:projectId/connections/pending/sent","href":"/v8/api-reference/connections/fetch-sent-pending"},{"title":"Fetch Received Pending Connections","api":"GET /v8/:projectId/connections/pending/received","href":"/v8/api-reference/connections/fetch-received-pending"},{"title":"Accept Connection","api":"POST /v8/:projectId/connections/:connectionId/accept","href":"/v8/api-reference/connections/accept-connection"},{"title":"Decline Connection","api":"POST /v8/:projectId/connections/:connectionId/decline","href":"/v8/api-reference/connections/decline-connection"},{"title":"Remove Connection","api":"DELETE /v8/:projectId/connections/:connectionId","href":"/v8/api-reference/connections/remove-connection"}]},{"group":"Entity Endpoints","pages":[{"title":"Create Entity","api":"POST /v8/:projectId/entities","href":"/v8/api-reference/entities/create-entity"},{"title":"Fetch Entity","api":"GET /v8/:projectId/entities/:entityId","href":"/v8/api-reference/entities/fetch-entity"},{"title":"Fetch Entity by Foreign ID","api":"GET /v8/:projectId/entities/by-foreign-id","href":"/v8/api-reference/entities/fetch-entity-by-foreign-id"},{"title":"Fetch Entity by Short ID","api":"GET /v8/:projectId/entities/by-short-id","href":"/v8/api-reference/entities/fetch-entity-by-short-id"},{"title":"Fetch Many Entities","api":"GET /v8/:projectId/entities","href":"/v8/api-reference/entities/fetch-many-entities"},{"title":"Fetch Drafts","api":"GET /v8/:projectId/entities/drafts","href":"/v8/api-reference/entities/fetch-drafts"},{"title":"Publish Entity","api":"POST /v8/:projectId/entities/:entityId/publish","href":"/v8/api-reference/entities/publish-entity"},{"title":"Update Entity","api":"PATCH /v8/:projectId/entities/:entityId","href":"/v8/api-reference/entities/update-entity"},{"title":"Increment Entity Views","api":"POST /v8/:projectId/entities/:entityId/increment-views","href":"/v8/api-reference/entities/increment-entity-views"},{"title":"Delete Entity","api":"DELETE /v8/:projectId/entities/:entityId","href":"/v8/api-reference/entities/delete-entity"},{"title":"Add Entity Reaction","api":"POST /v8/:projectId/entities/:entityId/reactions","href":"/v8/api-reference/entities/add-reaction"},{"title":"Remove Entity Reaction","api":"DELETE /v8/:projectId/entities/:entityId/reactions","href":"/v8/api-reference/entities/remove-reaction"},{"title":"Fetch Entity Reactions","api":"GET /v8/:projectId/entities/:entityId/reactions","href":"/v8/api-reference/entities/fetch-reactions"},{"title":"Get User Reaction","api":"GET /v8/:projectId/entities/:entityId/reactions/me","href":"/v8/api-reference/entities/get-user-reaction"}]},{"group":"Comment Endpoints","pages":[{"title":"Create Comment","api":"POST /v8/:projectId/comments","href":"/v8/api-reference/comments/create-comment"},{"title":"Fetch Comment","api":"GET /v8/:projectId/comments/:commentId","href":"/v8/api-reference/comments/fetch-comment"},{"title":"Fetch Comment by Foreign ID","api":"GET /v8/:projectId/comments/by-foreign-id","description":"Get a comment by its foreign ID","href":"/v8/api-reference/comments/fetch-comment-by-foreign-id"},{"title":"Fetch Many Comments","api":"GET /v8/:projectId/comments","href":"/v8/api-reference/comments/fetch-many-comments"},{"title":"Update Comment","api":"PATCH /v8/:projectId/comments/:commentId","description":"Edit a comment's content and/or metadata","href":"/v8/api-reference/comments/update-comment"},{"title":"Delete Comment","api":"DELETE /v8/:projectId/comments/:commentId","href":"/v8/api-reference/comments/delete-comment"},{"title":"Add Comment Reaction","api":"POST /v8/:projectId/comments/:commentId/reactions","href":"/v8/api-reference/comments/add-reaction"},{"title":"Remove Comment Reaction","api":"DELETE /v8/:projectId/comments/:commentId/reactions","href":"/v8/api-reference/comments/remove-reaction"},{"title":"Fetch Comment Reactions","api":"GET /v8/:projectId/comments/:commentId/reactions","href":"/v8/api-reference/comments/fetch-reactions"},{"title":"Get User Reaction","api":"GET /v8/:projectId/comments/:commentId/reactions/me","href":"/v8/api-reference/comments/get-user-reaction"}]},{"group":"Chat — Conversations","pages":[{"title":"List Conversations","api":"GET /v8/:projectId/chat/conversations","href":"/v8/api-reference/chat/conversations/list-conversations"},{"title":"Create Group Conversation","api":"POST /v8/:projectId/chat/conversations","href":"/v8/api-reference/chat/conversations/create-group"},{"title":"Create Direct Conversation","api":"POST /v8/:projectId/chat/conversations/direct","href":"/v8/api-reference/chat/conversations/create-direct"},{"title":"Get Unread Count","api":"GET /v8/:projectId/chat/conversations/unread-count","href":"/v8/api-reference/chat/conversations/unread-count"},{"title":"Fetch Conversation","api":"GET /v8/:projectId/chat/conversations/:conversationId","href":"/v8/api-reference/chat/conversations/fetch-conversation"},{"title":"Fetch Conversation Preview","api":"GET /v8/:projectId/chat/conversations/:conversationId/preview","href":"/v8/api-reference/chat/conversations/fetch-conversation-preview"},{"title":"Update Conversation","api":"PATCH /v8/:projectId/chat/conversations/:conversationId","href":"/v8/api-reference/chat/conversations/update-conversation"},{"title":"Delete Conversation","api":"DELETE /v8/:projectId/chat/conversations/:conversationId","href":"/v8/api-reference/chat/conversations/delete-conversation"},{"title":"Mute Conversation","api":"POST /v8/:projectId/chat/conversations/:conversationId/mute","href":"/v8/api-reference/chat/conversations/mute-conversation"}]},{"group":"Chat — Members","pages":[{"title":"List Members","api":"GET /v8/:projectId/chat/conversations/:conversationId/members","href":"/v8/api-reference/chat/members/list-members"},{"title":"Add Member","api":"POST /v8/:projectId/chat/conversations/:conversationId/members","href":"/v8/api-reference/chat/members/add-member"},{"title":"Remove Member","api":"DELETE /v8/:projectId/chat/conversations/:conversationId/members/:userId","href":"/v8/api-reference/chat/members/remove-member"},{"title":"Check My Membership","api":"GET /v8/:projectId/chat/conversations/:conversationId/members/me","href":"/v8/api-reference/chat/members/check-my-membership"},{"title":"Leave Conversation","api":"DELETE /v8/:projectId/chat/conversations/:conversationId/members/me","href":"/v8/api-reference/chat/members/leave-conversation"},{"title":"Update Member Role","api":"PATCH /v8/:projectId/chat/conversations/:conversationId/members/:userId/role","href":"/v8/api-reference/chat/members/update-member-role"}]},{"group":"Chat — Messages","pages":[{"title":"List Messages","api":"GET /v8/:projectId/chat/conversations/:conversationId/messages","href":"/v8/api-reference/chat/messages/list-messages"},{"title":"Send Message","api":"POST /v8/:projectId/chat/conversations/:conversationId/messages","href":"/v8/api-reference/chat/messages/send-message"},{"title":"Fetch Message","api":"GET /v8/:projectId/chat/conversations/:conversationId/messages/:messageId","href":"/v8/api-reference/chat/messages/fetch-message"},{"title":"Edit Message","api":"PATCH /v8/:projectId/chat/conversations/:conversationId/messages/:messageId","href":"/v8/api-reference/chat/messages/edit-message"},{"title":"Delete Message","api":"DELETE /v8/:projectId/chat/conversations/:conversationId/messages/:messageId","href":"/v8/api-reference/chat/messages/delete-message"},{"title":"Toggle Message Reaction","api":"POST /v8/:projectId/chat/conversations/:conversationId/messages/:messageId/reactions","href":"/v8/api-reference/chat/messages/toggle-reaction"},{"title":"Fetch Reaction Users","api":"GET /v8/:projectId/chat/conversations/:conversationId/messages/:messageId/reactions","href":"/v8/api-reference/chat/messages/fetch-reaction-users"},{"title":"Mark as Read","api":"POST /v8/:projectId/chat/conversations/:conversationId/read","href":"/v8/api-reference/chat/messages/mark-as-read"}]},{"group":"Collection Endpoints","pages":[{"title":"Fetch Root Collection","api":"GET /v8/:projectId/collections/root","href":"/v8/api-reference/collections/fetch-root"},{"title":"Create Sub-Collection","api":"POST /v8/:projectId/collections/:collectionId/sub-collections","href":"/v8/api-reference/collections/create-sub-collection"},{"title":"Fetch Sub-Collections","api":"GET /v8/:projectId/collections/:collectionId/sub-collections","href":"/v8/api-reference/collections/fetch-sub-collections"},{"title":"Fetch Collection Entities","api":"GET /v8/:projectId/collections/:collectionId/entities","href":"/v8/api-reference/collections/fetch-entities"},{"title":"Add Entity to Collection","api":"POST /v8/:projectId/collections/:collectionId/entities","href":"/v8/api-reference/collections/add-entity"},{"title":"Remove Entity from Collection","api":"DELETE /v8/:projectId/collections/:collectionId/entities/:entityId","href":"/v8/api-reference/collections/remove-entity"},{"title":"Update Collection","api":"PATCH /v8/:projectId/collections/:collectionId","href":"/v8/api-reference/collections/update-collection"},{"title":"Delete Collection","api":"DELETE /v8/:projectId/collections/:collectionId","href":"/v8/api-reference/collections/delete-collection"}]},{"group":"App Notification Endpoints","pages":[{"title":"Fetch Notifications","api":"GET /v8/:projectId/app-notifications","href":"/v8/api-reference/app-notifications/fetch-notifications"},{"title":"Count Unread Notifications","api":"GET /v8/:projectId/app-notifications/unread-count","href":"/v8/api-reference/app-notifications/unread-count"},{"title":"Mark Notification as Read","api":"POST /v8/:projectId/app-notifications/:notificationId/mark-as-read","href":"/v8/api-reference/app-notifications/mark-as-read"},{"title":"Mark All Notifications as Read","api":"POST /v8/:projectId/app-notifications/mark-all-as-read","href":"/v8/api-reference/app-notifications/mark-all-as-read"}]},{"group":"Push Notification Endpoints","pages":[{"title":"Register Device","api":"POST /v8/:projectId/push-notifications/devices","href":"/v8/api-reference/push-notifications/register-device"},{"title":"Deregister Device","api":"POST /v8/:projectId/push-notifications/devices/deregister","href":"/v8/api-reference/push-notifications/deregister-device"},{"title":"Send Push Notification","api":"POST /v8/:projectId/push-notifications/send","href":"/v8/api-reference/push-notifications/send"},{"title":"Get VAPID Public Key","api":"GET /v8/:projectId/push-notifications/vapid-public-key","href":"/v8/api-reference/push-notifications/get-vapid-public-key"},{"title":"Get Notification Preferences","api":"GET /v8/:projectId/push-notifications/preferences","href":"/v8/api-reference/push-notifications/get-preferences"},{"title":"Update Notification Preferences","api":"PUT /v8/:projectId/push-notifications/preferences","href":"/v8/api-reference/push-notifications/update-preferences"}]},{"group":"Report Endpoints","pages":[{"title":"Create Report","api":"POST /v8/:projectId/reports","href":"/v8/api-reference/reports/create-report"},{"title":"Fetch Moderated Reports","api":"GET /v8/:projectId/reports/moderated","href":"/v8/api-reference/reports/fetch-moderated-reports"}]},{"group":"Search Endpoints","pages":[{"title":"Search Content","api":"POST /v8/:projectId/search/content","href":"/v8/api-reference/search/search-content"},{"title":"Search Users","api":"POST /v8/:projectId/search/users","href":"/v8/api-reference/search/search-users"},{"title":"Search Spaces","api":"POST /v8/:projectId/search/spaces","href":"/v8/api-reference/search/search-spaces"},{"title":"Ask Content","api":"POST /v8/:projectId/search/ask","href":"/v8/api-reference/search/ask"},{"title":"Match Users","api":"POST /v8/:projectId/match/users","href":"/v8/api-reference/match/match-users"}]},{"group":"Space Endpoints","pages":[{"title":"Create Space","api":"POST /v8/:projectId/spaces","href":"/v8/api-reference/spaces/create-space"},{"title":"Fetch Spaces","api":"GET /v8/:projectId/spaces","href":"/v8/api-reference/spaces/fetch-spaces"},{"title":"Fetch Space","api":"GET /v8/:projectId/spaces/:spaceId","href":"/v8/api-reference/spaces/fetch-space"},{"title":"Fetch Space by Short ID","api":"GET /v8/:projectId/spaces/by-short-id","href":"/v8/api-reference/spaces/fetch-space-by-short-id"},{"title":"Fetch Space by Slug","api":"GET /v8/:projectId/spaces/by-slug","href":"/v8/api-reference/spaces/fetch-space-by-slug"},{"title":"Fetch My Spaces","api":"GET /v8/:projectId/spaces/mine","href":"/v8/api-reference/spaces/fetch-my-spaces"},{"title":"Fetch Mutual Spaces","api":"GET /v8/:projectId/spaces/mutual/:userId","href":"/v8/api-reference/spaces/fetch-mutual-spaces"},{"title":"Check Slug Availability","api":"GET /v8/:projectId/spaces/check-slug","href":"/v8/api-reference/spaces/check-slug"},{"title":"Update Space","api":"PATCH /v8/:projectId/spaces/:spaceId","href":"/v8/api-reference/spaces/update-space"},{"title":"Delete Space","api":"DELETE /v8/:projectId/spaces/:spaceId","href":"/v8/api-reference/spaces/delete-space"},{"title":"Fetch Space Breadcrumb","api":"GET /v8/:projectId/spaces/:spaceId/breadcrumb","href":"/v8/api-reference/spaces/fetch-breadcrumb"}]},{"group":"Space — Membership","pages":[{"title":"Join Space","api":"POST /v8/:projectId/spaces/:spaceId/join","href":"/v8/api-reference/spaces/membership/join-space"},{"title":"Leave Space","api":"DELETE /v8/:projectId/spaces/:spaceId/members/me","href":"/v8/api-reference/spaces/membership/leave-space"},{"title":"Check My Membership","api":"GET /v8/:projectId/spaces/:spaceId/members/me","href":"/v8/api-reference/spaces/membership/check-my-membership"},{"title":"List Space Members","api":"GET /v8/:projectId/spaces/:spaceId/members","href":"/v8/api-reference/spaces/membership/list-members"},{"title":"List Space Team","api":"GET /v8/:projectId/spaces/:spaceId/team","href":"/v8/api-reference/spaces/membership/list-team"},{"title":"Add Member","api":"POST /v8/:projectId/spaces/:spaceId/members","href":"/v8/api-reference/spaces/membership/add-member"},{"title":"Approve Member","api":"POST /v8/:projectId/spaces/:spaceId/members/:userId/approve","href":"/v8/api-reference/spaces/membership/approve-member"},{"title":"Decline Member","api":"POST /v8/:projectId/spaces/:spaceId/members/:userId/decline","href":"/v8/api-reference/spaces/membership/decline-member"},{"title":"Ban Member","api":"POST /v8/:projectId/spaces/:spaceId/members/:userId/ban","href":"/v8/api-reference/spaces/membership/ban-member"},{"title":"Unban Member","api":"POST /v8/:projectId/spaces/:spaceId/members/:userId/unban","href":"/v8/api-reference/spaces/membership/unban-member"},{"title":"Update Member Role","api":"PATCH /v8/:projectId/spaces/:spaceId/members/:userId/role","href":"/v8/api-reference/spaces/membership/update-member-role"}]},{"group":"Space — Rules","pages":[{"title":"List Rules","api":"GET /v8/:projectId/spaces/:spaceId/rules","href":"/v8/api-reference/spaces/rules/list-rules"},{"title":"Fetch Rule","api":"GET /v8/:projectId/spaces/:spaceId/rules/:ruleId","href":"/v8/api-reference/spaces/rules/fetch-rule"},{"title":"Create Rule","api":"POST /v8/:projectId/spaces/:spaceId/rules","href":"/v8/api-reference/spaces/rules/create-rule"},{"title":"Update Rule","api":"PATCH /v8/:projectId/spaces/:spaceId/rules/:ruleId","href":"/v8/api-reference/spaces/rules/update-rule"},{"title":"Delete Rule","api":"DELETE /v8/:projectId/spaces/:spaceId/rules/:ruleId","href":"/v8/api-reference/spaces/rules/delete-rule"},{"title":"Reorder Rules","api":"POST /v8/:projectId/spaces/:spaceId/rules/reorder","href":"/v8/api-reference/spaces/rules/reorder-rules"}]},{"group":"Space — Moderation","pages":[{"title":"Moderate Entity","api":"PATCH /v8/:projectId/spaces/:spaceId/entities/:entityId/moderation","href":"/v8/api-reference/spaces/moderation/moderate-entity"},{"title":"Moderate Comment","api":"PATCH /v8/:projectId/spaces/:spaceId/comments/:commentId/moderation","href":"/v8/api-reference/spaces/moderation/moderate-comment"},{"title":"Moderate Message","api":"PATCH /v8/:projectId/spaces/:spaceId/chat/messages/:messageId/moderation","href":"/v8/api-reference/spaces/moderation/moderate-message"},{"title":"Set Entity NSFW","api":"PATCH /v8/:projectId/spaces/:spaceId/entities/:entityId/nsfw","href":"/v8/api-reference/spaces/moderation/set-entity-nsfw"},{"title":"Handle Report","api":"PATCH /v8/:projectId/spaces/:spaceId/reports/:reportId","href":"/v8/api-reference/spaces/moderation/handle-report"}]},{"group":"Space — Chat","pages":[{"title":"Get Space Conversation","api":"GET /v8/:projectId/spaces/:spaceId/conversation","href":"/v8/api-reference/spaces/chat/get-space-conversation"}]},{"group":"Workspace Endpoints","pages":[{"title":"Create Workspace","api":"POST /v8/:projectId/workspaces","href":"/v8/api-reference/workspaces/create-workspace"},{"title":"List Workspaces","api":"GET /v8/:projectId/workspaces","href":"/v8/api-reference/workspaces/fetch-workspaces"},{"title":"Fetch Mutual Workspaces","api":"GET /v8/:projectId/workspaces/mutual/:userId","href":"/v8/api-reference/workspaces/fetch-mutual-workspaces"},{"title":"Fetch Workspace","api":"GET /v8/:projectId/workspaces/:workspaceId","href":"/v8/api-reference/workspaces/fetch-workspace"},{"title":"Update Workspace","api":"PATCH /v8/:projectId/workspaces/:workspaceId","href":"/v8/api-reference/workspaces/update-workspace"},{"title":"Flip Inherit Flag","api":"PATCH /v8/:projectId/workspaces/:workspaceId/inherit-flag","href":"/v8/api-reference/workspaces/update-inherit-flag"},{"title":"Delete Workspace","api":"DELETE /v8/:projectId/workspaces/:workspaceId","href":"/v8/api-reference/workspaces/delete-workspace"},{"title":"Transfer Ownership","api":"POST /v8/:projectId/workspaces/:workspaceId/transfer-ownership","href":"/v8/api-reference/workspaces/transfer-ownership"},{"title":"Read Authority","api":"GET /v8/:projectId/workspaces/:workspaceId/authority/me","href":"/v8/api-reference/workspaces/fetch-authority"}]},{"group":"Workspace — Membership","pages":[{"title":"List Members","api":"GET /v8/:projectId/workspaces/:workspaceId/members","href":"/v8/api-reference/workspaces/members/list-members"},{"title":"Fetch My Membership","api":"GET /v8/:projectId/workspaces/:workspaceId/members/me","href":"/v8/api-reference/workspaces/members/fetch-my-membership"},{"title":"Fetch Member Standing","api":"GET /v8/:projectId/workspaces/:workspaceId/members/:userId","href":"/v8/api-reference/workspaces/members/fetch-member-standing"},{"title":"Update Member","api":"PATCH /v8/:projectId/workspaces/:workspaceId/members/:userId","href":"/v8/api-reference/workspaces/members/update-member"},{"title":"Update My Membership","api":"PATCH /v8/:projectId/workspaces/:workspaceId/members/me","href":"/v8/api-reference/workspaces/members/update-my-membership"},{"title":"Remove Member","api":"DELETE /v8/:projectId/workspaces/:workspaceId/members/:userId","href":"/v8/api-reference/workspaces/members/remove-member"},{"title":"Leave Workspace","api":"DELETE /v8/:projectId/workspaces/:workspaceId/members/me","href":"/v8/api-reference/workspaces/members/leave-workspace"},{"title":"Remove From Subtree","api":"POST /v8/:projectId/workspaces/:workspaceId/members/:userId/remove-from-subtree","href":"/v8/api-reference/workspaces/members/remove-from-subtree"}]},{"group":"Workspace — Invitations","pages":[{"title":"Create Invite","api":"POST /v8/:projectId/workspaces/:workspaceId/invites","href":"/v8/api-reference/workspaces/invitations/create-invite"},{"title":"List Workspace Invites","api":"GET /v8/:projectId/workspaces/:workspaceId/invites","href":"/v8/api-reference/workspaces/invitations/list-invites"},{"title":"Revoke Invite","api":"POST /v8/:projectId/workspaces/:workspaceId/invites/:inviteId/revoke","href":"/v8/api-reference/workspaces/invitations/revoke-invite"},{"title":"Resend Invite","api":"POST /v8/:projectId/workspaces/:workspaceId/invites/:inviteId/resend","href":"/v8/api-reference/workspaces/invitations/resend-invite"},{"title":"Accept Invite","api":"POST /v8/:projectId/workspace-invites/:inviteId/accept","href":"/v8/api-reference/workspaces/invitations/accept-invite"},{"title":"Decline Invite","api":"POST /v8/:projectId/workspace-invites/:inviteId/decline","href":"/v8/api-reference/workspaces/invitations/decline-invite"},{"title":"List My Invites","api":"GET /v8/:projectId/workspace-invites","href":"/v8/api-reference/workspaces/invitations/list-my-invites"}]},{"group":"Event Endpoints","pages":[{"title":"Create Event","api":"POST /v8/:projectId/events","href":"/v8/api-reference/events/create-event"},{"title":"Fetch Event","api":"GET /v8/:projectId/events/:eventId","href":"/v8/api-reference/events/fetch-event"},{"title":"Fetch Many Events","api":"GET /v8/:projectId/events","href":"/v8/api-reference/events/fetch-many-events"},{"title":"Update Event","api":"PATCH /v8/:projectId/events/:eventId","href":"/v8/api-reference/events/update-event"},{"title":"Cancel Event","api":"POST /v8/:projectId/events/:eventId/cancel","href":"/v8/api-reference/events/cancel-event"},{"title":"Delete Event","api":"DELETE /v8/:projectId/events/:eventId","href":"/v8/api-reference/events/delete-event"},{"title":"Set RSVP","api":"POST /v8/:projectId/events/:eventId/rsvp","href":"/v8/api-reference/events/set-rsvp"},{"title":"Withdraw RSVP","api":"DELETE /v8/:projectId/events/:eventId/rsvp","href":"/v8/api-reference/events/withdraw-rsvp"},{"title":"Add Host","api":"POST /v8/:projectId/events/:eventId/hosts","href":"/v8/api-reference/events/add-host"},{"title":"Remove Host","api":"DELETE /v8/:projectId/events/:eventId/hosts/:userId","href":"/v8/api-reference/events/remove-host"},{"title":"Add Invite","api":"POST /v8/:projectId/events/:eventId/invites","href":"/v8/api-reference/events/add-invite"},{"title":"Remove Invite","api":"DELETE /v8/:projectId/events/:eventId/invites/:userId","href":"/v8/api-reference/events/remove-invite"},{"title":"Fetch Invitees","api":"GET /v8/:projectId/events/:eventId/invites","href":"/v8/api-reference/events/fetch-invitees"},{"title":"Fetch Event RSVPs","api":"GET /v8/:projectId/events/:eventId/rsvps","href":"/v8/api-reference/events/fetch-event-rsvps"}]},{"group":"Reputation Grant Endpoints","pages":[{"title":"Create Reputation Grant","api":"POST /v8/:projectId/reputation-grants","href":"/v8/api-reference/reputation-grants/create-reputation-grant"},{"title":"Mint Reputation Grant","api":"POST /v8/:projectId/reputation-grants/mint","href":"/v8/api-reference/reputation-grants/mint-reputation-grant"},{"title":"Fetch Many Reputation Grants","api":"GET /v8/:projectId/reputation-grants","href":"/v8/api-reference/reputation-grants/fetch-many-reputation-grants"},{"title":"Fetch User Grant History","api":"GET /dashboard/users/:userId/reputation-grants","href":"/v8/api-reference/reputation-grants/fetch-user-grant-history"}]},{"group":"Storage Endpoints","pages":[{"title":"Upload Image","api":"POST /v8/:projectId/storage/images","href":"/v8/api-reference/storage/upload-image"},{"title":"Upload File","api":"POST /v8/:projectId/storage","href":"/v8/api-reference/storage/upload-file"},{"title":"Fetch File","api":"GET /v8/:projectId/storage/:fileId","href":"/v8/api-reference/storage/fetch-file"},{"title":"Refresh File Links","api":"POST /v8/:projectId/files/links","href":"/v8/api-reference/storage/refresh-file-links"},{"title":"Delete File","api":"DELETE /v8/:projectId/storage/:fileId","href":"/v8/api-reference/storage/delete-file"}]},{"group":"Custom Tables — Rows","pages":[{"title":"Fetch Rows","api":"GET /v8/:projectId/db/:tableName","href":"/v8/api-reference/custom-tables/fetch-many-rows"},{"title":"Fetch Row","api":"GET /v8/:projectId/db/:tableName/:rowId","href":"/v8/api-reference/custom-tables/fetch-row"},{"title":"Insert Row","api":"POST /v8/:projectId/db/:tableName","href":"/v8/api-reference/custom-tables/insert-row"},{"title":"Bulk Insert Rows","api":"POST /v8/:projectId/db/:tableName/bulk","href":"/v8/api-reference/custom-tables/bulk-insert-rows"},{"title":"Update Row","api":"PATCH /v8/:projectId/db/:tableName/:rowId","href":"/v8/api-reference/custom-tables/update-row"},{"title":"Delete Row","api":"DELETE /v8/:projectId/db/:tableName/:rowId","href":"/v8/api-reference/custom-tables/delete-row"},{"title":"Bulk Delete Rows","api":"POST /v8/:projectId/db/:tableName/bulk-delete","href":"/v8/api-reference/custom-tables/bulk-delete-rows"},{"title":"Restore Row","api":"POST /v8/:projectId/db/:tableName/:rowId/restore","href":"/v8/api-reference/custom-tables/restore-row"}]},{"group":"Custom Tables — Management","pages":[{"title":"Create Table","api":"POST /v8/:projectId/db/tables","href":"/v8/api-reference/custom-tables/create-table"},{"title":"Drop Table","api":"DELETE /v8/:projectId/db/tables/:tableName","href":"/v8/api-reference/custom-tables/drop-table"},{"title":"Add Column","api":"POST /v8/:projectId/db/tables/:tableName/columns","href":"/v8/api-reference/custom-tables/add-column"},{"title":"Drop Column","api":"DELETE /v8/:projectId/db/tables/:tableName/columns/:columnName","href":"/v8/api-reference/custom-tables/drop-column"}]},{"group":"Utils","pages":[{"title":"Get URL Metadata","api":"GET /v8/:projectId/utils/get-metadata","href":"/v8/api-reference/utils/get-metadata"}]},{"group":"Crypto","pages":[{"title":"Sign Testing JWT","api":"POST /v8/:projectId/crypto/sign-testing-jwt","href":"/v8/api-reference/crypto/sign-testing-jwt"}]}]},{"tab":"Data Models","pages":[{"title":"Data Models","href":"/v8/data-models/user"}]},{"tab":"Node SDK","pages":[{"title":"Node SDK","href":"/v8/node-sdk/overview"}]},{"tab":"JS SDK","pages":[{"title":"JS SDK","href":"/v8/js-sdk/overview"}]},{"tab":"Components","pages":[{"title":"Components","href":"/v8/components/overview"}]}],"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://dash.sublay.io"}]}},{"version":"7.0.0","default":true,"pages":[{"title":"7.0.0","href":"/v7/api-reference/comments/fetch-many-comments"}]},{"version":"6.0.0","pages":[{"title":"6.0.0","href":"/v6/api-reference/comments/fetch-many-comments"}]}]},"basePath":"","title":"Fetch Many Comments - Sublay Documentation","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js"]}
commentsbundle, ahead of the checks below. The body has noerrorfield: it carries thecode, the missing tables, and a link to the project’s Database page in the dashboard, where the bundle is installed. See Bundles.