Gmail
Gmail OAuth Scopes Explained
Published 2026-09-20 · CSV Sender
Google documents Gmail API scopes in one official table—use it to reason about CSV Sender’s gmail.send-only connection without guessing sensitive labels.
Quick answer
Gmail OAuth scopes are permission strings shown on Google’s consent screen and enforced on each API call. CSV Sender requests a single scope—https://www.googleapis.com/auth/gmail.send—defined in lib/gmail/scopes.ts as GMAIL_SEND_SCOPE. Always read the current official scope table (frontmatter sources) instead of hardcoding outdated “restricted” or “sensitive” labels from blog posts; Google updates classification over time.
Hub: how to read Google’s scope table
Google publishes scope names, descriptions, and usage guidance at developers.google.com/gmail/api/auth/scopes. For each scope, note:
- What API methods it unlocks
- Whether Google classifies it for verification (policy links in the same doc set)
- User-facing consent text
CSV Sender operators typically need only the send scope because content is prepared in CSV columns—not read back from Gmail.
Scopes CSV Sender does not request
Examples from Google’s table that are not part of CSV Sender connect:
- Read-only mailbox access scopes used by CRM sync tools
- Modify or compose scopes that change labels or drafts broadly
- Settings management scopes
Skipping them supports /security and send Gmail without reading inbox.
Relationship to Google Account permissions
Scopes appear on the OAuth consent screen; users can later revoke them in Google Account → Third-party access (gmail Google permissions, revoke Gmail app access).
Scope changes require re-consent
If CSV Sender ever added scopes, Google would require users to reconnect. Today’s code path uses only GMAIL_OAUTH_SCOPES = [GMAIL_SEND_SCOPE].
FAQ
Is gmail.send minimal for API sending?
Google documents gmail.send for sending mail; see official table (Gmail send scope).
Should I paste scope URLs into Google Cloud manually?
Configure OAuth client in Cloud Console to match your deployment.
Do scopes affect quota?
Quota is per project/user (Gmail API rate limits).
Can I request readonly for debugging?
CSV Sender product does not—would expand data access.
Where is OAuth flow explained?
Gmail OAuth for email sending.
Related reading
Verification and security assessment
Teams preparing Google OAuth verification should export the exact scope list from running code (GMAIL_OAUTH_SCOPES) and compare verbatim to Cloud Console configuration. Drift between environments causes confusing invalid_scope errors at connect time.
Scope creep risks in forks
Forks of CSV Sender sometimes add readonly Gmail scopes “temporarily” for debugging. That expands data access and triggers stricter Google review. Upstream intentionally avoids readonly scopes in production builds.
Mapping scopes to user stories
| User story | Scope needed in CSV Sender |
|---|---|
| Send prepared alumni email | gmail.send |
| Read replies in product | Not supported (by design) |
| Auto-label bounces | Not supported |
Admin documentation snippet
Include this article and Gmail send scope in internal wiki pages for IT approvers evaluating third-party SaaS connections.
Future scope requests
If product requirements change (e.g., read-only bounce mailbox), treat scope additions as a major release with re-consent and policy review—never silently expand permissions.
Reading Google’s table responsibly
Scope descriptions on developers.google.com occasionally mention example API methods—treat those as documentation hints, not as permission for CSV Sender to call them. Production deployments should periodically diff requested scopes in OAuth consent against GMAIL_OAUTH_SCOPES in source control during security reviews.
Production checklist (1)
Before changing live campaigns, re-verify Gmail sender CONNECTED, scan import issues, confirm suppression imports, and align dailyLimit with Gmail sending limits for CSV guidance. Prepared rows in email, subject, and body columns should pass validate CSV before emailing so queue workers spend quota on intentional mail only.
Production checklist (2)
Before changing live campaigns, re-verify Gmail sender CONNECTED, scan import issues, confirm suppression imports, and align dailyLimit with Gmail sending limits for CSV guidance. Prepared rows in email, subject, and body columns should pass validate CSV before emailing so queue workers spend quota on intentional mail only.
Production checklist (3)
Before changing live campaigns, re-verify Gmail sender CONNECTED, scan import issues, confirm suppression imports, and align dailyLimit with Gmail sending limits for CSV guidance. Prepared rows in email, subject, and body columns should pass validate CSV before emailing so queue workers spend quota on intentional mail only.
Sources
Related articles
Gmail
What Is the gmail.send Scope?
Google’s scope table describes gmail.send as sending email on a user’s behalf. CSV Sender uses only that scope—matching lib/gmail/scopes.ts.
Gmail
Gmail OAuth for Sending Email: Scopes, Security, and CSV Workflows
Understand Google OAuth for Gmail send-only access, why CSV Sender requests gmail.send, and how tokens stay encrypted at rest.
Gmail
Why Gmail Apps Ask for Google Permissions
Understand what users approve on Google’s OAuth consent screen, how third-party access appears in Google Account settings, and CSV Sender’s send-only footprint.
Gmail
Send Gmail Without Reading Your Inbox: Send-Only OAuth Explained
Learn why CSV Sender requests gmail.send only, what Google cannot access with that scope, and how prepared CSV rows are delivered safely.