Skip to main content
This guide walks you through muting and unmuting users using the X API.
PrerequisitesBefore you begin, you’ll need:
  • A developer account with an approved App
  • User Access Token (OAuth 1.0a or OAuth 2.0 PKCE)

Mute a user

1

Get your user ID

You need your authenticated user’s ID. You can find it using the user lookup endpoint or from your Access Token (the numeric part is your user ID).
2

Get the target user ID

Find the user ID of the account you want to mute using the user lookup endpoint.
3

Send the mute request

cURL
4

Review the response


Unmute a user

Remove a mute from a user:
cURL
Response:

Mute vs Block


Next steps

Mutes lookup

Get your muted users

Blocks

Block users instead

API Reference

Full endpoint documentation