> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-5e62557c.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Hide Replies

> Use the X API v2 Hide Replies endpoint to hide or unhide replies to Posts authored by the authenticated user and moderate conversations on X.

export const Button = ({href, children}) => {
  return <div className="not-prose">
    <a href={href}>
      <button className="x-btn">
        <span>{children}</span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

The Hide Replies endpoint lets you hide or unhide replies to Posts authored by the authenticated user. Hidden replies are still accessible but require an extra click to view.

## Overview

<CardGroup cols={2}>
  <Card title="Hide reply" icon="eye-slash">
    Hide a reply to your Post
  </Card>

  <Card title="Unhide reply" icon="eye">
    Unhide a previously hidden reply
  </Card>

  <Card title="Conversation control" icon="https://mintcdn.com/x-preview-mintlify-5e62557c/NnGYBQFO1PDkJQK7/icons/xds/icon-chat-unread.svg?fit=max&auto=format&n=NnGYBQFO1PDkJQK7&q=85&s=e8e1b6581e93f23a87dfd20c78b3ef8b" width="24" height="24" data-path="icons/xds/icon-chat-unread.svg">
    Moderate discussions on your Posts
  </Card>
</CardGroup>

***

## Endpoint

| Method | Endpoint                                                | Description            |
| :----- | :------------------------------------------------------ | :--------------------- |
| PUT    | [`/2/tweets/:tweet_id/hidden`](/x-api/posts/hide-reply) | Hide or unhide a reply |

***

## How it works

Send a PUT request with `hidden: true` to hide a reply, or `hidden: false` to unhide it:

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

***

## Example: Hide a reply

```bash theme={null}
curl -X PUT "https://api.x.com/2/tweets/1234567890/hidden" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"hidden": true}'
```

## Example response

```json theme={null}
{
  "data": {
    "hidden": true
  }
}
```

***

## Getting started

<Note>
  **Prerequisites**

  * An approved [developer account](https://developer.x.com/en/portal/petition/essential/basic-info)
  * A [Project and App](/resources/fundamentals/developer-apps) in the Developer Console
  * User Access Tokens via [OAuth 2.0 PKCE](/resources/fundamentals/authentication#oauth-2-0-authorization-code-flow-with-pkce-2)
</Note>

<CardGroup cols={2}>
  <Card title="Quickstart" icon="https://mintcdn.com/x-preview-mintlify-5e62557c/7ox7QZkMlDBhUtvj/icons/xds/icon-rocket.svg?fit=max&auto=format&n=7ox7QZkMlDBhUtvj&q=85&s=b6c3ee24b3b5aff4ba4a87805d56fdc9" href="/x-api/posts/hide-replies/quickstart" width="24" height="24" data-path="icons/xds/icon-rocket.svg">
    Hide your first reply
  </Card>

  <Card title="API Reference" icon="https://mintcdn.com/x-preview-mintlify-5e62557c/NnGYBQFO1PDkJQK7/icons/xds/icon-code.svg?fit=max&auto=format&n=NnGYBQFO1PDkJQK7&q=85&s=e6a5208c5ad4cc59a4a97fed7db5ed00" href="/x-api/posts/hide-replies" width="24" height="24" data-path="icons/xds/icon-code.svg">
    Full endpoint documentation
  </Card>
</CardGroup>
