API referenceInteractions
Comment on a post
POST
Adds a comment, or a reply to a top-level comment, on a post the caller may read. Replies go one level deep. A retry with the same clientCommentId returns the comment already made with 200.
AuthorizationBearer <token>
In: header
Path Parameters
postId*string
Length
1 <= length <= 128Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/posts/post-1/comments" \ -H "Content-Type: application/json" \ -d '{ "clientCommentId": "0f8fad5b-d9cb-469f-a165-70867728950e", "text": "That sunset!" }'{ "id": "post_01K4Y6P8K2", "postId": "post_01K4Y6P8K2", "parentCommentId": "post_01K4Y6P8K2", "author": { "id": "post_01K4Y6P8K2", "username": "string", "displayName": "string" }, "text": "string", "createdAt": "2026-09-09T12:00:00Z", "editedAt": "2026-09-09T12:00:00Z", "viewerCanEdit": true, "viewerCanDelete": true}