Comments

Hide or Unhide Comment

Hides or unhides a comment on Instagram, Facebook or Threads. A hidden comment stays visible to the person who wrote it.

POST
/v1/comments/hide

Authorization

headerx-api-key<token>

Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.

Request Body

application/json
  1. body
post?string

Onepostly post id or platform-native post id. Native ids also need accountId. You can omit it when you pass destinationId.

Length1 <= length
accountId?string
Length1 <= length
destinationId?string

Destination id. It identifies one destination on its own, so post and accountId become optional.

Length1 <= length
commentId*string

Platform-native comment id.

Length1 <= length
hidden*boolean

Response Body

Visibility updated

application/json
  1. response
hidden*
Example Request
import { Configuration, CommentsApi } from "@onepostly/sdk";const commentsApi = new CommentsApi(  new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await commentsApi.hideComment({  body: {    "post": "1699f415-7fb6-43f4-9d2a-c447491f32a8",    "commentId": "c0",    "hidden": true  },});console.log(response);
Example Response
{  "hidden": {    "postId": "string",    "destinationId": "string",    "platform": "string",    "commentId": "string",    "hidden": true  }}