User Muting

Muting a user will prevent them from being visible to the muting user unless specifically requested.

Endpoints:

GET /users/{user_id}/muted

Scope: any

Retrieve a list of muted users. Users may only see their own list of muted users.

URL Parameters

Name Description
user_id ID of the user whose list of muted users to retrieve
Example
curl "https://api.pnut.io/v0/users/me/muted" \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    -H "X-Pretty-Json: 1"

Returns a list of users

"call for example 1"

PUT /users/{user_id}/mute

Token: user

Scope: follow

Mute a user. Muted users will not appear in future requests.

URL Parameters

Name Description
user_id ID of the user to mute
Example
curl "https://api.pnut.io/v0/users/@testuser/mute" \
    -X PUT \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    -H "X-Pretty-Json: 1"

Returns the muted user

"call for example 2"

DELETE /users/{user_id}/mute

Token: user

Scope: follow

Unmute a user.

URL Parameters

Name Description
user_id ID of the user to unmute
Example
curl "https://api.pnut.io/v0/users/@testuser/mute" \
    -X DELETE \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    -H "X-Pretty-Json: 1"

Returns the unmuted user

"call for example 3"