G

Gmail API

REST discovered

Details
URL
https://gmail.googleapis.com/gmail/v1
Docs
https://developers.google.com/gmail/api
Authentication
Google OAuth 2.0 client for Gmail API oauth2 discovered Set up OAuth ↗
Authorization: Bearer <credential>

Create a Google Cloud project, enable the Gmail API, configure the OAuth consent screen, then create an OAuth client ID in Create access credentials. For web-server access patterns, follow Implement server-side authorization and request the Gmail scopes your app needs from Choose scopes.

Google API key for Gmail API project/quota api_key discovered Get key ↗
?key=<credential>

In Create access credentials, create an API key for your Google Cloud project after enabling the Gmail API. Google documents it as the key query parameter for requests when an OAuth 2.0 token is not provided; Gmail methods that access mailbox data still generally require OAuth scopes, so use this mainly where the API method permits project identification/quota without user data access.