List comments
Retrieve all comments for a feedback post. By default returns flat top-level comments. Use include=replies to get the full nested reply tree.
Authorization
bearerAuth AuthorizationBearer <token>
API key with sk_live_ or sk_test_ prefix. Create keys in your workspace settings.
In: header
Path Parameters
id*string
Post ID
Query Parameters
include?string
Semicolon-separated list of related resources to include. Supported: replies.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://app.fdback.io/api/v1/posts/string/comments"{
"data": [
{
"id": "string",
"content": "string",
"postId": "string",
"parentId": "string",
"userId": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
]
}{
"error": {
"code": "BAD_REQUEST",
"message": "Missing required field: title",
"status": 400
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key.",
"status": 401
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Please try again later.",
"status": 429
}
}Query Parameters
Semicolon-separated values via the include query parameter.
| Value | Description |
|---|---|
replies | Include the full nested reply tree on each comment |
GET /posts/{id}/comments?include=repliesUnknown values are silently ignored.
Example:
GET /posts/{id}/comments?include=replies