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 (at least one resolved media item or non-empty text required). The media array matches post threads: each entry is an integer library id (from POST /api/v1/media/upload/file or POST /api/v1/media/upload/url) and/or an HTTPS URL to import (direct image/video, supported social post URLs, Unsplash—same as the media library URL flow). If you send only media and none of the entries resolve, 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
string[]
Up to 10 items: integers (media ids in the post’s workspace) and/or strings (URLs to import). Mix ids and URLs in one array if needed.
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.