4
votes

Is it possible to mute a message with the GMail API? https://developers.google.com/gmail/api/

In GMail if you search label:mute you get muted conversations. If I try to apply a label MUTE or MUTED I get:

googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/gmail/v1/users/me/messages/14b37d9bb14bb521/modify?alt=json returned "Invalid label: mute">

Indicating that there is no real MUTE/MUTED label in practice.

Muting is one of the best features of GMail, without this the API seems kind of pointless.

1

1 Answers

2
votes

Although a "Muted" label appears in the UI, in the API there is not a corresponding label. It currently isn't possible to mute threads in the Gmail API, but if you file a feature request we can raise the issue with the engineering team.