Skip to main content
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

Hide reply

Hide a reply to your Post

Unhide reply

Unhide a previously hidden reply

Conversation control

Moderate discussions on your Posts

Endpoint

MethodEndpointDescription
PUT/2/tweets/:tweet_id/hiddenHide or unhide a reply

How it works

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

Example: Hide a reply

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

{
  "data": {
    "hidden": true
  }
}

Getting started

Prerequisites