POST /2/users/:id/muting

Allows an authenticated user ID to mute the target user.

Endpoint URL

Authentication and rate limits

Authentication methods
supported by this endpoint

OAuth 2.0 Authorization Code with PKCE

Rate limit

User rate limit (OAuth 2.0 user Access Token): 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

stringThe user ID who you would like to initiate the mute on behalf of. It must match your own user ID or that of an authenticating user, meaning that you must pass the Access Tokens associated with the user ID when authenticating your request.

JSON body parameters

stringThe user ID of the user that you would like the id to mute. The body should contain a string of the user ID inside of a JSON object.

Example requests

      curl -X POST -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-type: application/json" -d '{"target_user_id": "2244994945"}'
      twurl -X POST /2/users/6253282/muting  -A "Content-type: application/json" -d '{"target_user_id": "2244994945"}'

Example responses

  "data": {
    "muting": true

Response fields

mutingbooleanIndicates whether the user is muting the specified user as a result of this request.