What scopes are needed to get a Gmail message content using the Gmail API?

Viewed 108

Is the view and modify (https://www.googleapis.com/auth/gmail.modify) OAuth scope enough to get an email message using the Gmail API and display the whole content in an app?

1 Answers

The readonly scope is sufficient for your app instead of using the broader modify scope.

https://www.googleapis.com/auth/gmail.readonly  

Please note that this is a Restricted scope and your app may need to pass through a security audit.

Related