PUT /2/tweets/:id/hidden
PUT /2/tweets/:id/hidden
Hides or unhides a reply to a Tweet.
Endpoint URL
https://api.x.com/2/tweets/:id/hidden
Authentication and rate limits
Authentication methods supported by this endpoint | OAuth 2.0 Authorization Code with PKCE OAuth 1.0a is also available for this endpoint. |
---|---|
Rate limit | User rate limit (User context): 50 requests per 15-minute window per each authenticated user |
OAuth 2.0 scopes required by this endpoint
|
Learn more about OAuth 2.0 Authorization Code with PKCE |
Path parameters
Name | Type | Description |
---|---|---|
id Required | string | Unique identifier of the Tweet to hide or unhide. The Tweet must belong to a conversation initiated by the authenticating user. |
JSON body parameters
Name | Type | Description |
---|---|---|
hidden Required | boolean | Indicates the action to perform. Specify true to hide the Tweet, false to unhide. Trying to hide a Tweet that's already hidden (or unhide a Tweet that is not hidden) will result in a successful call. |
Example code with offical SDKs
TypeScript - hide reply
TypeScript - unhide reply
Java - hide reply
Java - unhide reply
Example responses
Success (reply hidden)
Success (reply unhidden)
Response fields
Name | Type | Description |
---|---|---|
hidden | boolean | Indicates if the Tweet was successfully hidden or unhidden. |