> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hide or show a comment

> Hide a social comment on its network, or show it again.

> [!NOTE]
>
> Needs `comments:update`, and a role in the post's workspace that can edit comments. See [Permissions](/docs/essentials/authentication.md#permissions).

Hides the comment on its network; `"hidden": false` shows it again. Left out, `hidden` is `true`. A hide never deletes.

| Network | Hide | Show again |
| - | - | - |
| Facebook, Instagram | Yes | Yes |
| YouTube | Yes: holds it for review | Yes: publishes it |
| X, Threads | Yes | No |
| LinkedIn, TikTok, Pinterest, Bluesky, Mastodon, Telegram, Google Business Profile | No | No |

A network that can't do it is refused with `422` before anything is sent, and so is a team comment. A `422` also comes back when the network didn't do it, with its reason when it gave one. If the account needs reconnecting, a hide on Facebook, Instagram or Threads, or a show on Facebook or Instagram, answers `500`. A show on Threads is refused with `422` before that (`This network can't unhide comments.`).

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `comments:update`, or its user is inactive. | No: grant it in Settings → API. |
| 403 | | Another member's team comment (`You are not allowed to hide this comment`), or your role can't edit comments. | No. |
| 404 | | No comment with that id on a post in the workspaces the key can reach. | No. |
| 422 | | The network can't hide or show comments, the comment isn't on a network, the network didn't do it, or `hidden` isn't `true` or `false`. | Only when the message ends `Try again in a moment.` |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |
| 500 | | The account must be reconnected: a hide on Facebook, Instagram or Threads, or a show on Facebook or Instagram. Nothing changed. | After reconnecting the account. |

## Related

* [Delete a comment](/docs/api-reference/comments/delete.md): remove it instead.
* [Comment moderation](/docs/api-reference/posts/comment-moderation.md): hide or delete comments by rule.


## OpenAPI

````yaml PATCH /comments/{comment}/hide
openapi: 3.0.3
info:
  title: PostSyncer API
  description: >-
    Post to 12 social networks from your code: posts, media, comments,
    analytics, webhooks and more.
  version: 1.0.0
servers:
  - url: https://postsyncer.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: The workspaces the key can reach.
  - name: Accounts
    description: Connected social accounts, links to connect more, and disconnecting them.
  - name: Posts
    description: Drafts, scheduled and published posts, approvals and a post's history.
  - name: Post settings
    description: A post's auto-plug, comment moderation and contact collection.
  - name: Media
    description: >-
      The media library: file uploads, URL imports, and reading videos and
      social posts' files.
  - name: Folders
    description: Folders that organise the media library.
  - name: Comments
    description: >-
      Comments on your posts: reading, replying, editing, hiding, deleting and
      syncing them.
  - name: Reviews
    description: Google Business Profile reviews and your replies to them.
  - name: Analytics
    description: Workspace, account and post performance.
  - name: Brand
    description: >-
      A workspace's brand: identity, voice, look, accounts, competitors,
      learnings and rules.
  - name: Labels
    description: Labels used to tag posts.
  - name: Campaigns
    description: Campaigns used to group posts.
  - name: Snippets
    description: Saved snippets and hashtag groups to drop into posts.
  - name: Webhooks
    description: Signed webhook endpoints that get your notification events.
  - name: Billing
    description: >-
      The owner's plan, invoices and the links that pay for, change or cancel
      it.
  - name: Team
    description: A workspace's teammates and invitations, and their roles.
  - name: Notifications
    description: >-
      Your bell and notification settings, and the workspace's Slack, Discord
      and Telegram channels.
  - name: Blog-to-social
    description: Blog feeds that turn a workspace's new articles into posts.
  - name: Products
    description: Products the workspace's posts can promote.
  - name: Contacts
    description: People who commented on the workspace's posts, and the lists they are on.
  - name: Profile
    description: 'The key''s user: their name and sign-in email.'
  - name: API keys
    description: 'Your API keys: listing and deleting them.'
  - name: Agent sign-up
    description: >-
      An AI agent signs a person up with a code emailed to them, and gets their
      first key. No key needed.
paths:
  /comments/{comment}/hide:
    patch:
      tags:
        - Comments
      summary: Hide or show a comment
      description: >-
        Needs `comments:update`. Your role in the post's workspace must also let
        you edit comments. Hides a social comment on its network, or shows it
        again with `"hidden": false`. Facebook, Instagram, Threads, X and
        YouTube can hide; Facebook, Instagram and YouTube can show again. On
        YouTube, hiding holds the comment for review and showing it publishes
        it. A hide never deletes. Every other network is refused with `422`
        before anything is sent, and so is a network that didn't do it. If the
        account needs reconnecting, a hide on Facebook, Instagram or Threads, or
        a show on Facebook or Instagram, answers `500`: reconnect it, then try
        again.
      operationId: hideComment
      parameters:
        - name: comment
          in: path
          required: true
          description: The comment's id.
          schema:
            type: integer
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                hidden:
                  type: boolean
                  default: true
                  description: '`true` hides it, `false` shows it again.'
            examples:
              default:
                summary: Hide
                value:
                  hidden: true
              show:
                summary: Show it again
                value:
                  hidden: false
      responses:
        '200':
          description: Done on the network.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                default:
                  summary: Hidden
                  value:
                    message: Comment hidden successfully
                shown:
                  summary: Shown again
                  value:
                    message: Comment unhidden successfully
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: >-
            The key lacks `comments:update`, its user is inactive, it's another
            member's team comment, or your role can't edit comments.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks comments:update
                  value:
                    message: >-
                      This API key does not have the "comments:update"
                      permission. Edit the key in PostSyncer under Settings →
                      API to grant it.
                not_yours:
                  summary: Another member's team comment
                  value:
                    message: You are not allowed to hide this comment
                role:
                  summary: Your role can't edit comments
                  value:
                    message: >-
                      Your role in the workspace "Halden Coffee" does not allow
                      you to edit comments. Ask the workspace owner or a manager
                      to do it, or to change your role.
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
        '404':
          $ref: '#/components/responses/NotFound404'
        '422':
          description: >-
            The network can't hide or show comments, the comment isn't on a
            network, or the network didn't do it (its reason is added when it
            gave one).
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationError'
                  - $ref: '#/components/schemas/Error'
              examples:
                delete_instead:
                  summary: LinkedIn, Bluesky or Mastodon can't hide
                  value:
                    message: LinkedIn can't hide comments. Delete the comment instead.
                cannot_hide:
                  summary: >-
                    TikTok, Pinterest, Telegram or Google Business Profile can't
                    hide
                  value:
                    message: TikTok can't hide comments.
                not_on_a_network:
                  summary: A team comment
                  value:
                    message: This comment cannot be hidden on the platform.
                not_hidden:
                  summary: The network didn't hide it
                  value:
                    message: Instagram did not hide the comment.
                cannot_unhide:
                  summary: X or Threads can't show it again
                  value:
                    message: This network can't unhide comments.
                removed:
                  summary: Removed on the network
                  value:
                    message: >-
                      This comment was removed on YouTube and can't be shown
                      again.
                not_shown:
                  summary: The network didn't show it again
                  value:
                    message: >-
                      Facebook did not show the comment again. Try again in a
                      moment.
                youtube_reconnect:
                  summary: YouTube needs comment access
                  value:
                    message: >-
                      YouTube did not hide the comment. Reconnect YouTube and
                      allow comment access.
                hidden_type:
                  summary: hidden is not true or false
                  value:
                    message: The hidden field must be true or false.
                    errors:
                      hidden:
                        - The hidden field must be true or false.
        '429':
          $ref: '#/components/responses/RateLimited429'
        '500':
          description: >-
            The account must be reconnected, on a hide on Facebook, Instagram or
            Threads or a show on Facebook or Instagram: that check throws an
            error PostSyncer doesn't turn into a `422`. Nothing changed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                reconnect:
                  summary: The sign-in ran out
                  value:
                    message: Server Error
components:
  schemas:
    Error:
      type: object
      description: >-
        An error answer. Every one has `message`, in plain words; some add an
        `error` code and fields of their own.
      required:
        - message
      properties:
        message:
          type: string
          description: What went wrong and what to do about it.
        error:
          type: string
          description: >-
            A code a few errors add, such as `rate_limited`. See [Handle
            errors](/essentials/error-handling#answers-with-an-error-code).
    ValidationError:
      type: object
      description: '422: the request didn''t pass validation, and nothing changed.'
      required:
        - message
        - errors
      properties:
        message:
          type: string
          description: >-
            The first error and, when there are more, how many: `(and 1 more
            error)`, `(and 2 more errors)`.
        errors:
          type: object
          description: >-
            The messages, by field. A field inside a list is named with dots:
            `accounts.0.id`.
          additionalProperties:
            type: array
            items:
              type: string
  responses:
    Unauthorized401:
      description: No API key, or not a valid one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthenticated:
              summary: No valid API key
              value:
                message: Unauthenticated.
    NotFound404:
      description: Nothing with that id in the workspaces the key can reach.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            not_found:
              summary: Not found
              value:
                message: Not found.
    RateLimited429:
      description: >-
        More than 60 requests in a minute from this key's user (the API and the
        MCP server share the count). Wait `Retry-After` seconds.
      headers:
        Retry-After:
          description: Seconds until requests are allowed again.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests allowed a minute.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left this minute.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: When requests are allowed again, as a Unix timestamp.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            too_many_attempts:
              summary: Too many requests
              value:
                message: Too Many Attempts.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.