Create a comment
Add a comment to a feedback post. Supports nested comments via parentId.
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
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://app.fdback.io/api/v1/posts/string/comments" \ -H "Content-Type: application/json" \ -d '{ "content": "string" }'{
"data": {
"id": "string",
"content": "string",
"postId": "string",
"parentId": "string",
"userId": "string",
"createdAt": "2019-08-24T14:15:22Z"
},
"test": true
}{
"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
}
}