Zernio
Zernio
API Reference

Comments

List commented postsGETGet post commentsGETSet comment moderation statusPOSTDelete commentDELETEEdit commentPATCHHide commentPOSTLike commentPOSTLike postPOSTPin commentPOSTReply to commentPOSTSend private replyPOSTUnhide commentDELETEUnlike commentDELETEUnlike postDELETEUnpin commentDELETE
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Comments

Set comment moderation status

Set a comment's moderation status. Supported on YouTube only.

Use this to work a moderation queue: approve a held comment (published), reject it (rejected), or send it back for review (heldForReview).

The request must be authorized by the owner of the channel or video the comment belongs to. You cannot moderate comments on videos you do not own.

This is distinct from POST /v1/inbox/comments/{postId}/{commentId}/hide, which covers Facebook, Instagram, Threads, and X and does not apply to YouTube.


POST
/v1/inbox/comments/{postId}/{commentId}/moderation

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

In: header

Path Parameters

postId*string
commentId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.comments.setCommentModeration({  path: {    postId: 'post_abc123',    commentId: 'comment_abc123',  },  body: {    accountId: 'account_abc123',    platform: 'youtube',    moderationStatus: 'published',  },});console.log(data);
{  "success": true}
Was this page helpful?

Get post comments

Fetch comments for a specific post. Requires accountId query parameter. Pass `commentId` (Facebook, Instagram, Reddit, TikTok) to fetch replies to a specific comment instead of the post's top-level comments. Facebook, Instagram and TikTok return the comment's replies, paged by `limit`/`cursor`; Reddit returns the focused comment thread instead. On Facebook and Instagram the requested comment itself comes back in the top-level `comment` field. On Facebook, passing a COMMENT id as `postId` (instead of using `commentId`) is also supported for backwards compatibility and returns that comment's replies the same way. Prefer `commentId` for new integrations; it also works on Instagram, which rejects a comment id passed as `postId`. YouTube does not support either form, `postId` must be a video id. Responses are cached for up to 10 minutes, so a page may lag new comments by that window. Do not poll this endpoint for real-time updates: subscribe to the `comment.received` webhook, which delivers new comments as they arrive. Your own writes (creating, replying to, or deleting a comment) refresh the cache immediately. TikTok is served for accounts connected through the TikTok for Business app: `postId` is the TikTok video id, each top-level comment carries up to three inline replies, and `commentId` pages the full reply list of one comment. Developer-app TikTok accounts return 400 with code `PLATFORM_LIMITATION`. On X (Twitter), when `postId` is itself a reply rather than the thread's root post, only replies to that specific post are returned, not the whole conversation thread. Hidden comments: Facebook Pages and Instagram accounts connected through Instagram Login return them with `isHidden: true`. Instagram accounts connected through Facebook Login do not return them at all (Meta omits them, together with their replies), so a hidden comment and a deleted one look the same on this read.

Delete comment

Delete a comment on a post. Supported by Facebook, Instagram, Threads, LinkedIn, Reddit, Bluesky, X (Twitter), YouTube, and TikTok (accounts connected through the TikTok for Business app). Not supported on Google Business (reviews only). Requires accountId and commentId query parameters.

accountId*string

The account ID

platform*"youtube"

Only YouTube supports comment moderation

Value in

  • "youtube"
moderationStatus*string

published approves the comment, rejected removes it, heldForReview returns it to the queue.

Value in

  • "published"
  • "rejected"
  • "heldForReview"
banAuthor?boolean

Also ban the comment's author, auto-rejecting their future comments. Only valid when moderationStatus is "rejected"; any other pairing is a 400.