Inbox

Comment on a post or reply to a comment

Publishes a comment on the post, or a reply to commentId when one is given. Requires a read-write API key and the account's comment-management scope; without the scope the call answers 403 platformCapabilityMissing and nothing is sent to the platform. attachmentUrl is Facebook only — every other platform rejects it with 400 attachmentUnsupported. Instagram is two levels deep, so replying to a reply is redirected to that reply's top-level parent. A Threads reply is created as a container and then published; when the publish is still pending after PostZen's internal retries the call returns 502 publishPending and the reply may still appear on its own, so check the thread before retrying rather than posting twice.

post/v1/inbox/comments/{postId}

Request

  • Base URL: https://api.postzen.dev
  • URL: https://api.postzen.dev/v1/inbox/comments/{postId}
  • Auth: HTTP bearer

Request body

accountIdstring required

PostZen account id of the connected Instagram, Facebook, or Threads account that owns the post.

messagestring required

Comment text to publish.

commentIdstring

Reply to this comment instead of commenting on the post. On Instagram a reply to a reply is redirected to its top-level parent.

attachmentUrlstring uri

Facebook only. Publicly reachable image URL to attach to the comment. Sending it for any other platform returns 400 attachmentUnsupported.

Response

Comment published.

successtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.