Skip to content

Comments

The comments people leave on your Channels’ posts come to the Inbox, and the API reads and answers the same ones.

  • Facebook Pages, Reels and videos included, Instagram and YouTube: read from each post on a schedule for its first 28 days, every half hour on its first day. Facebook and Instagram also send some as they are written, which arrive sooner.
  • Threads: the replies to each post, at every depth, read on the same schedule. Threads can also send some as they are written, which arrive sooner, though never a reply on a private account’s post. A Threads author is named by username only where their profile is public.
  • YouTube and Threads, and Facebook and Instagram in a post’s first day, are read again when someone opens the Inbox, at most once in two minutes for a post, so a comment there can come back from the API before its next scheduled read.
  • TikTok and X: none. Like counts are not kept on any Network.

A comment deleted on its Network, by its author or with its post, is no longer listed once a read of the whole post no longer finds it, on every Network, as long as the post is still read. A read cut short finds nothing gone. On Facebook, Instagram and Threads a hidden comment, and the replies under it, are kept until something else removes them, since those Networks are not known to list hidden comments. Facebook also tells Pubrivo of a deleted comment as it happens.

A Facebook, Instagram or Threads Channel sends comments only when its connection granted Pubrivo the Network’s comment permissions. One that did not sends none, and its threads read answerable: false. A Threads Channel connected before Pubrivo asked for them sends none until it is reconnected.

Terminal window
curl "https://app.pubrivo.com/api/comments?postId=2f6c1d8e-4b3a-4e5f-9a8b-7c6d5e4f3a2b" \
-H "Authorization: Bearer $PUBRIVO_KEY"

The answer is one thread per Variant, the most recently active first. Each comment carries its replies, answered and canReply. Someone else’s comment is answered once it was replied to from Pubrivo or the Channel wrote after it in its thread. A follow-up written after that reply is not answered until the Channel replies again, and the Channel’s own comments never are. Leave out postId for every thread in the Workspace, or send variantId for one Variant. Reading marks nothing read for the Workspace’s Members.

The Channel’s own comments, sent from Pubrivo or written on the Network’s own app, come only as context: under the comment they answer, or at the top of a thread someone else replied in. One with no one else’s words beside it is left out, and so is a thread holding nothing else.

Send unanswered=true for only the threads with a comment still waiting for the Channel: someone else’s, not hidden and not answered, under a top-level comment the Channel can reply to (canReply) that no Member resolved. A follow-up counts even on Instagram, where its own canReply is false: reply to the comment that starts its thread. Each comes whole, its answered comments too, so a reply can be written in context. A thread whose Channel cannot answer is left out, since nothing in it can be replied to from here.

Threads come 20 a page, or up to 100 with limit. While there are more, nextCursor holds where the next page starts: send it back as cursor. On the last page it is null.

A run of pages reads as of its first page. A comment that arrives meanwhile, or a thread that starts, waits for a new listing, so a thread is never skipped or sent twice because it moved. A thread answered or resolved meanwhile can drop out of an unanswered=true run.

A thread’s origin says whose post it is under: pubrivo for one sent through Pubrivo, outside for one the Channel posted on its Network by other means, which Pubrivo reads back.

Every id is Pubrivo’s own. Neither the Network’s id for a comment nor its author’s is sent.

Terminal window
curl -X POST https://app.pubrivo.com/api/comments/9b1e4c2a-6d3f-4a8b-b7c5-1e2f3a4b5c6d/reply \
-H "Authorization: Bearer $PUBRIVO_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "Thanks for asking. The form is linked in the post." }'

The answer is the comment’s thread as it now stands. Sending the same text to the same comment again returns the reply already there with deduplicated: true, and sends nothing. Two identical requests in flight at once send it once.

A comment takes a reply when canReply is true. It isn’t for the Channel’s own comment, for a hidden one, or on Instagram for a reply inside a thread. On Threads a reply inside a thread takes one. A reply refused with reply_unconfirmed may still have gone out: read the comments again before sending it. A reply or a hide refused with 404 and not_found found the comment gone from its Network, deleted by its author or with its post: nothing was sent, and the comment and the replies under it are no longer listed.

POST /api/comments/{id}/hide with { "hidden": true } hides a comment, and false shows it again. On Facebook and Instagram its author still sees it, and on Facebook their friends do too. On YouTube it is held for review. On Threads only a reply to the post itself can be hidden, and the replies under it hide and show with it. Hiding one further down gets a 422 with network_refused.

Terminal window
curl -X POST https://app.pubrivo.com/api/comments/9b1e4c2a-6d3f-4a8b-b7c5-1e2f3a4b5c6d/resolve \
-H "Authorization: Bearer $PUBRIVO_KEY" \
-H "Content-Type: application/json" \
-d '{ "resolved": true }'

Resolving says a comment needs no answer: a thank-you, an emoji, a tagged friend, viewers talking to each other. It is what Resolve does in the Inbox, and Pubrivo’s alone: nothing is sent to the Network, and neither the commenter nor anyone else on it sees it. The thread reads resolved: true on its first comment, Members see it resolved in the Inbox, and unanswered=true leaves it out, replies that arrive under it later included. { "resolved": false } opens it again. Either one sent twice changes nothing, and it works on a Channel whose Connection cannot answer.

Only the comment that starts a thread, one in the thread’s comments, is resolved, which settles the replies under it too. A reply inside a thread gets a 422 with not_resolvable, and the message names the comment to resolve instead. For spam or abuse, hide the comment instead: that acts on the Network.

Reading is comments:read. Replying, hiding and resolving are comments:answer, and need comments:read as well, because each answers with the comment’s thread. No key or app made before them holds either.

  • An API key has them if Also allow reading comments and Also allow replying to and hiding comments were ticked when it was created.
  • An Authorized app has them if you allowed each when you approved it. For an app approved before, sign the assistant in to Pubrivo again (in Claude Code, /mcp) and tick them.

Without the permission a request gets a 403 with insufficient_scope. A Channel whose Connection cannot answer reads answerable: false, and a reply or a hide there gets a 409 with needs_reconnect: reconnect the Channel in Pubrivo. Resolving needs no Connection.