Get a post
Retrieve a single feedback post by ID. The response includes a descriptionHtml field with the rendered HTML.
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: attachments, comments (top-level only), comments.replies (full nested tree), voters.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://app.fdback.io/api/v1/posts/string"{
"data": {
"id": "string",
"title": "string",
"description": {},
"descriptionHtml": "string",
"postTypeId": "string",
"statusId": "string",
"votesCount": 0,
"commentsCount": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"tags": [
{
"id": "string",
"name": "string",
"color": "string"
}
],
"attachments": [
{
"id": "string",
"name": "string",
"size": 0,
"type": "string",
"url": "string"
}
],
"comments": [
{
"id": "string",
"content": "string",
"postId": "string",
"parentId": "string",
"userId": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
],
"voters": [
{
"id": "string",
"name": "string",
"email": "string",
"image": "string"
}
]
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "Missing required field: title",
"status": 400
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key.",
"status": 401
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Post not found.",
"status": 404
}
}{
"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 |
|---|---|
attachments | Include file attachments |
comments | Include top-level comments (no nested replies) |
comments.replies | Include comments with the full nested reply tree |
voters | Include the list of users who voted |
GET /posts/{id}?include=attachments;comments.replies;votersUnknown values are silently ignored.
Example:
GET /posts/{id}?include=attachments;comments.replies