Comments API reference
Comments endpoints of the Quackback REST API: paths, parameters, request fields and responses.
This is the reference for the Comments endpoints of the Quackback REST API: every endpoint, its parameters, request fields and response fields. It is generated from the API's OpenAPI description, so it matches what the API accepts.
All paths are relative to /api/v1 on your workspace's address (for example https://feedback.example.com/api/v1). Authenticate with an API key in the Authorization: Bearer qb_... header. For keys, errors, pagination and rate limits, see API overview. Every workspace also serves an interactive reference at /api/v1/docs.
Endpoints
GET /posts/{postId}/comments: List comments on a postPOST /posts/{postId}/comments: Add a comment to a postGET /comments/{commentId}: Get a commentPATCH /comments/{commentId}: Update a commentDELETE /comments/{commentId}: Delete a comment
List comments on a post
GET /api/v1/posts/{postId}/comments
Returns all comments on a post as a threaded tree with nested replies
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
| path | string | Yes | Post ID |
Response 200: returns id, postId, parentId, content, contentJson, authorName, principalId, isTeamMember, isPrivate, createdAt, reactions, replies.
Add a comment to a post
POST /api/v1/posts/{postId}/comments
Create a new comment on a post. The comment is attributed to the authenticated API key holder.
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
| path | string | Yes | Post ID |
Request body
Field | Type | Required | Description |
|---|---|---|---|
| string | Yes | Comment content |
| string, nullable | No | TypeID - a type-prefixed UUID |
| boolean | No | Mark comment as private (team-only). Defaults to false. |
Response 201: returns id, postId, parentId, content, contentJson, authorName, principalId, isTeamMember, isPrivate, createdAt.
Get a comment
GET /api/v1/comments/{commentId}
Get a single comment by ID
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
| path | string | Yes | Comment ID |
Response 200: returns id, postId, parentId, content, contentJson, authorName, authorEmail, principalId, isTeamMember, isPrivate, createdAt, deletedAt.
Update a comment
PATCH /api/v1/comments/{commentId}
Update an existing comment
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
| path | string | Yes | Comment ID |
Request body
Field | Type | Required | Description |
|---|---|---|---|
| string | Yes | Updated content |
Response 200: returns id, postId, parentId, content, contentJson, authorName, principalId, isTeamMember, isPrivate, createdAt.
Delete a comment
DELETE /api/v1/comments/{commentId}
Delete a comment by ID
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
| path | string | Yes | Comment ID |
Was this helpful?
Your feedback shapes what we write next.
