Skip to main content
POST
/
comments
curl -X POST "https://postsyncer.com/api/v1/comments" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"post_id":123,"content":"Thanks for the feedback!"}'

Create comment

Send content and/or media_urls (at least one URL or non-empty text required). Each URL is imported into your workspace (same rules as the media library “add from URL”: direct image or video links, supported social post URLs, or Unsplash). If you send URLs only and none can be imported, the request returns 422. For a reply, set parent_comment_id; post_id must still refer to the same post as the parent (validated server-side).

Body

post_id
integer
required
Post id.
parent_comment_id
integer
Parent comment id for a threaded reply.
content
string
Text (max 65535 chars) if not using media only.
media_urls
string[]
Up to 10 public HTTPS URLs to attach as media (imported into the post’s workspace). Image or video URLs only for generic links.
is_resolved
boolean
Optional initial resolved flag.
is_approved
boolean
Optional initial approval flag.
curl -X POST "https://postsyncer.com/api/v1/comments" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"post_id":123,"content":"Thanks for the feedback!"}'

Response

201 with data (comment) and message.

Errors

401 · 403 · 422 validation See Comments overview.