Channel Muting

Muting a channel prevents other users from being able to auto-subscribe you to that channel.

Endpoints:

GET /users/me/channels/muted

Token: user

Scope: messages

Retrieve a list of channels the authenticated user has muted.

Example
curl "https://api.pnut.io/v0/users/me/channels/muted" \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    -H "X-Pretty-Json: 1"

Returns a list of muted channels.

"call for example 1"

PUT /channels/{channel_id}/mute

Token: user

Scope: messages

Mute subscriptions for a channel. Muting unsubscribes, if you were subscribed.

URL Parameters

Name Description
channel_id ID of the channel to mute.
Example
curl "https://api.pnut.io/v0/channels/2/mute" \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    -X PUT \
    -H "X-Pretty-Json: 1"

Returns the muted channel.

"call for example 2"

DELETE /channels/{channel_id}/mute

Token: user

Scope: messages

Delete a subscription mute for a channel.

URL Parameters

Name Description
channel_id ID of the channel to unmute.
Example
curl "https://api.pnut.io/v0/channels/4/mute" \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    -X DELETE \
    -H "X-Pretty-Json: 1"

Returns the unmuted channel.

"call for example 3"