1
votes

gmail-api

Here is the use case:

I am a client to Gmail API. I want to create an access token which scope is similar to "https://www.googleapis.com/auth/gmail.readonly". But, instead of Gmail giving me access to all the emails, I would like to have access to the social emails ONLY.

Speculation for social emails scope: https://www.googleapis.com/auth/gmail.social.readonly

Note: Social emails have a CATEGORY_SOCIAL label.

Thanks in advance.

1
This feature currently doesn't exist, but I would recommend viewing this feature request which is very similar to your issue. - SpaceSaver UnderCover

1 Answers

1
votes

Scoping access at the label level is not possible. The scopes listed in the Choose Auth Scopes section are the only ones available. https://www.googleapis.com/auth/gmail.readonly is the one you have to go with.