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

# Hide or unhide a comment

> Toggle a comment's visibility on your post.

Hides or unhides a comment. Hidden comments stay visible to their author.

## Authentication

Use the `hmat_` channel token from `GET /meta/channels/{id}/token` or `hookmyapp channels env <channel>`. Do not use an `hmok_` API key for this call.

```bash theme={null}
Authorization: Bearer hmat_...
```

## Path parameters

<ParamField path="commentId" type="string" required>
  The comment to hide or unhide.
</ParamField>

## Query parameters

<ParamField query="hide" type="boolean" required>
  `true` to hide, `false` to unhide.
</ParamField>

## Example

```bash theme={null}
curl -X POST "https://gateway.hookmyapp.com/meta/v25.0/{COMMENT_ID}?hide=true" \
  -H "Authorization: Bearer hmat_..."
```

## Successful response

```json theme={null}
{ "success": true }
```

To turn commenting on or off for a whole post, use `POST /{mediaId}?comment_enabled=false` — see the [Comments guide](/instagram/comments#hide-delete-and-disable).
