Skip to content
POST/posts/{postId}/comments

Add a comment to a post

Create a new comment on a post. The comment is attributed to the authenticated API key holder.

Parameters

NameInTypeDescription
postIdrequiredpathstringPost ID

Request body

FieldTypeDescription
contentrequiredstringComment content
parentIdstring | nullParent comment ID for replies

Response

Comment created

FieldTypeDescription
idrequiredstringTypeID - a type-prefixed UUID
postIdrequiredstringTypeID - a type-prefixed UUID
parentIdrequiredstring | null
contentrequiredstring
authorNamerequiredstring | null
principalIdrequiredstring | null
isTeamMemberrequiredboolean
createdAtrequiredstringISO 8601 timestamp

Errors

400Validation error
401Unauthorized
404Post not found

Example request

curl \
  -X POST \
  "https://feedback.quackback.io/api/v1/posts/:postId/comments" \
  -H "Authorization: Bearer qb_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "example_content"
}'