Gmail
Reading and processing user emails requires Restricted OAuth scopes, demanding brand verification, a recorded demo video, and an annual third-party CASA security assessment.
Depends on what your agent does
Read, summarize, and act on user emailsthis guide
https://www.googleapis.com/auth/gmail.readonly, https://www.googleapis.com/auth/gmail.modify, https://mail.google.com/Restricted scopes allow reading, modifying, or managing full mailboxes; server-side agents accessing these must undergo formal Google app verification plus an annual independent third-party security assessment (CASA). sourcedS2S4S5S7S8S9S10
Stepsfor: Read, summarize, and act on user emails
Access Google Cloud Console · ~15 min
Log in to Google Cloud Console and select or create the Google Cloud project for your application. testedS3S5S7A1
Verify domain ownership in Search Console · ~30 min
Verify ownership of your application's domain in Google Search Console using the same account associated with your Cloud project. sourcedS7
Configure OAuth consent screen branding · ~30 min
In the Google Auth Platform / Branding section, configure app name, user support email, developer contact email, homepage URL, and privacy policy URL. sourcedS5S7
Create OAuth 2.0 credentials · ~15 min
Generate OAuth 2.0 Web application credentials (client ID and client secret) and configure authorized redirect URIs. sourcedS1S3
Declare Gmail API scopes · ~15 min
Declare requested scopes (such as gmail.readonly or gmail.modify) under Data Access in Google Cloud Console. sourcedS2S5S7
Record and upload demo video · ~60 min
Record an unlisted YouTube demo video demonstrating the full OAuth flow in English, displaying the client ID in the address bar and showing how each requested scope functions in the agent. sourcedS7
Submit OAuth verification request · ~30 min
Submit the brand verification and restricted scope review via Google Cloud Console, providing justifications and links to policy documents and the demo video. sourcedS5S7
Wait for Google Trust & Safety review
Wait for Google Trust & Safety review and respond to clarification emails regarding scope minimization and usage. uncertainS7S8S10
- Draft code to implement OAuth 2.0 authorization code flow and token refresh handling.
- Formulate scope list and justify minimal data access requirements.
- Prepare privacy policy disclosures matching Google API Services User Data Policy requirements.
- Generate configuration parameters and redirect URIs for Google Cloud Console.
- Sign in to Google Cloud Console with your organization or developer account.
- Verify domain ownership in Google Search Console.
- Record and upload the YouTube OAuth consent demo video.
- Contract, pay for, and coordinate with an authorized CASA assessment lab.
- Handle official email communications with Google Trust & Safety.
Requirements
Nuances and gotchas
If you get blocked
What we could not verify
- Current standard vendor fees and tier assignment criteria for CASA security assessment labs are not detailed in official Google developer documentation and must be confirmed directly with App Defense Alliance-approved assessors.
- Specific handling of LLM fine-tuning or AI retention rules under the Limited Use Policy requires reviewing current Google Workspace API developer policy updates directly in the developer portal.
Evidence
Opened https://console.cloud.google.com/apis/credentials → landed on https://accounts.google.com/v3/signin/identifier?continue=https://console.cloud.google.com/apis/credentials&followup=https://console.cloud.google.com/apis/credentials&osid=1&passive=1209600&service=cloudconsole&flowName=WebLiteSignIn&flowEntry=ServiceLogin&dsh=S1074316656:1796487178556970 (“Google Cloud Platform”). A sign-in wall appeared; the agent stopped here (it never enters credentials). Headings: Sign in. Buttons/links: Next.
Opened https://console.cloud.google.com/apis/credentials/oauthclient → landed on https://accounts.google.com/v3/signin/identifier?continue=https://console.cloud.google.com/apis/credentials/oauthclient&followup=https://console.cloud.google.com/apis/credentials/oauthclient&osid=1&passive=1209600&service=cloudconsole&flowName=WebLiteSignIn&flowEntry=ServiceLogin&dsh=S269214296:1796487181703507 (“Google Cloud Platform”). A sign-in wall appeared; the agent stopped here (it never enters credentials). Headings: Sign in. Buttons/links: Next.
S1প্রমাণীকরণ এবং অনুমোদন সম্পর্কে জানুন | Google Workspace | Google for Developersread 2026-12-05S3Using OAuth 2.0 to Access Google APIs | Authorization | Google for Developersread 2026-12-05S5Configure the OAuth consent screen and choose scopes | Google Workspace | Google for Developersread 2026-12-05- Spot-check: Confirmed on developers.google.com (restricted scope verification): restricted scopes “require additional verification and potentially a security assessment”.
- Spot-check: Confirmed: apps accessing restricted data via a third-party server “must undergo an annual security assessment by a Google-approved third party”.
- Spot-check: Not verified: total wait in weeks. Google states no SLA, so the wait range relies on third-party write-ups and is labelled accordingly.
Built with gemini-3.8-flash (search) + gemini-3.8-flash (writing). Labels are computed from the evidence each statement cites, never written by the model. How this works