Integrations
Set up Google OAuth for Gmail, Calendar, Drive, and more
Overview
Section titled “Overview”Connect the application’s users to Google Workspace services including Gmail, Google Calendar, Google Drive, and Google Sheets.
| Property | Value |
|---|---|
| Provider ID | google |
| Category | Productivity |
| PKCE | Supported |
| Token refresh | Automatic (refresh token reused) |
| Access token lifetime | ~1 hour |
| Redirect URI | Shown in Developer Portal |
Step 1: Create a Google Cloud Project
Section titled “Step 1: Create a Google Cloud Project”Go to Google Cloud Console
Navigate to the Google Auth Platform Clients page and sign in with the Google account.
Create or select a project
Click the project dropdown at the top and select New Project. Give it a name (e.g., “My App - Alter Integration”) and click Create.
Enable APIs
Go to APIs & Services > Library and enable the APIs you need:
- Gmail API - for email access
- Google Calendar API - for calendar access
- Google Drive API - for file access
- Google Sheets API - for spreadsheet access
Step 2: Create OAuth Credentials
Section titled “Step 2: Create OAuth Credentials”Open Clients page
Go to the Google Auth Platform > Clients page and click Create Client.
Configure consent screen (first time only)
If the console shows Google Auth platform not configured yet, click Get Started and complete the wizard:
- App Information: the application name and a user support email
- Audience: External (unless only the Google Workspace organization’s users connect)
- Contact Information: the operator’s contact email
- Finish: accept the Google API Services User Data Policy, then click Create
The consent screen settings are then managed under Branding (including authorized domains), Audience (publishing status and test users), and Data Access (scopes).
Create OAuth client ID
- Application type: Web application
- Name: e.g., “Alter Vault Integration”
- Authorized redirect URIs: Copy the Redirect URI from the Developer Portal
- Click Create
Download credentials immediately
Download and securely store the Client ID and Client Secret from the dialog. The secret is only shown once at creation time.
The Client ID looks like: 123456789-abcdefg.apps.googleusercontent.com
Step 3: Add to Alter Vault
Section titled “Step 3: Add to Alter Vault”Open the Developer Portal
Go to portal.alterauth.com and navigate to the application.
Add Google provider
Go to OAuth Providers > Add Provider > Google.
Enter credentials
- Client ID: Paste the Google Client ID
- Client Secret: Paste the Google Client Secret
Select scopes
Choose the scopes the application needs. See the Available Scopes section below.
Save
Click Save. The provider is now active and ready to use.
Step 4: Test It
Section titled “Step 4: Test It”After a user connects via Alter Connect, use the returned grant_id to make API calls:
from alter_sdk import PendingApprovalfrom alter_sdk import App, HttpMethod
async with App( api_key="alter_key_...", caller="my-agent",) as alter_app: # Use the grant_id returned by Alter Connect response = await alter_app.proxy_request( HttpMethod.GET, "https://www.googleapis.com/calendar/v3/calendars/primary/events", grant_id=grant_id, query_params={"maxResults": "5"}, ) if isinstance(response, PendingApproval): for gate in response.gates: print("Approval required:", gate.approval_url) response = await alter_app.await_approval(response.approval_id) events = response.body_json() print(f"Found {len(events.get('items', []))} events")Available Scopes
Section titled “Available Scopes”Request only the permissions required by your application. Google may require verification for sensitive or restricted permissions.
| Scope | Access |
|---|---|
openid | Authenticate your identity with OpenID Connect |
profile | View your basic profile information |
email | View your email address |
https://mail.google.com/ | Read, compose, send, and permanently delete all your email from Gmail |
https://www.googleapis.com/auth/calendar | See, edit, share, and permanently delete all the calendars you can access using Google Calendar |
https://www.googleapis.com/auth/calendar.acls | See and change the sharing permissions of Google calendars you own |
https://www.googleapis.com/auth/calendar.acls.readonly | See the sharing permissions of Google calendars you own |
https://www.googleapis.com/auth/calendar.app.created | Make secondary Google calendars, and see, create, change, and delete events on them |
https://www.googleapis.com/auth/calendar.calendarlist | See, add, and remove Google calendars you’re subscribed to |
https://www.googleapis.com/auth/calendar.calendarlist.readonly | See the list of Google calendars you’re subscribed to |
https://www.googleapis.com/auth/calendar.calendars | See and change the properties of Google calendars you have access to, and create secondary calendars |
https://www.googleapis.com/auth/calendar.calendars.readonly | See the title, description, default time zone, and other properties of Google calendars you have access to |
https://www.googleapis.com/auth/calendar.events | View and edit events on all your calendars |
https://www.googleapis.com/auth/calendar.events.freebusy | See the availability on Google calendars you have access to |
https://www.googleapis.com/auth/calendar.events.owned | See, create, change, and delete events on Google calendars you own |
https://www.googleapis.com/auth/calendar.events.owned.readonly | See the events on Google calendars you own |
https://www.googleapis.com/auth/calendar.events.public.readonly | See the events on public calendars |
https://www.googleapis.com/auth/calendar.events.readonly | View events on all your calendars |
https://www.googleapis.com/auth/calendar.freebusy | View your availability in your calendars |
https://www.googleapis.com/auth/calendar.readonly | See and download any calendar you can access using your Google Calendar |
https://www.googleapis.com/auth/calendar.settings | View and edit your Calendar settings |
https://www.googleapis.com/auth/calendar.settings.readonly | View your Calendar settings |
https://www.googleapis.com/auth/drive | See, edit, create, and delete all of your Google Drive files |
https://www.googleapis.com/auth/drive.appdata | See, create, and delete its own configuration data in your Google Drive |
https://www.googleapis.com/auth/drive.apps.readonly | View your Google Drive apps |
https://www.googleapis.com/auth/drive.file | See, edit, create, and delete only the specific Google Drive files you use with this app |
https://www.googleapis.com/auth/drive.meet.readonly | See and download your Google Drive files that were created or edited by Google Meet. |
https://www.googleapis.com/auth/drive.metadata | View and manage metadata of files in your Google Drive |
https://www.googleapis.com/auth/drive.metadata.readonly | See information about your Google Drive files |
https://www.googleapis.com/auth/drive.photos.readonly | View the photos, videos and albums in your Google Photos |
https://www.googleapis.com/auth/drive.readonly | See and download all your Google Drive files |
https://www.googleapis.com/auth/drive.scripts | Modify your Google Apps Script scripts’ behavior |
https://www.googleapis.com/auth/gmail.addons.current.action.compose | Manage drafts and send emails when you interact with the add-on |
https://www.googleapis.com/auth/gmail.addons.current.message.action | View your email messages when you interact with the add-on |
https://www.googleapis.com/auth/gmail.addons.current.message.metadata | View your email message metadata when the add-on is running |
https://www.googleapis.com/auth/gmail.addons.current.message.readonly | View your email messages when the add-on is running |
https://www.googleapis.com/auth/gmail.compose | Manage drafts and send emails |
https://www.googleapis.com/auth/gmail.insert | Add emails into your Gmail mailbox |
https://www.googleapis.com/auth/gmail.labels | See and edit your email labels |
https://www.googleapis.com/auth/gmail.metadata | View your email message metadata such as labels and headers, but not the email body |
https://www.googleapis.com/auth/gmail.modify | Read, compose, and send emails from your Gmail account |
https://www.googleapis.com/auth/gmail.readonly | View your email messages and settings |
https://www.googleapis.com/auth/gmail.send | Send email on your behalf |
https://www.googleapis.com/auth/gmail.settings.basic | See, edit, create, or change your email settings and filters in Gmail |
https://www.googleapis.com/auth/gmail.settings.sharing | Manage your sensitive mail settings, including who can manage your mail |
Common API Endpoints
Section titled “Common API Endpoints”| Use Case | Method | URL |
|---|---|---|
| List calendar events | GET | https://www.googleapis.com/calendar/v3/calendars/primary/events |
| List Gmail messages | GET | https://www.googleapis.com/gmail/v1/users/me/messages |
| Send email | POST | https://www.googleapis.com/gmail/v1/users/me/messages/send |
| List Drive files | GET | https://www.googleapis.com/drive/v3/files |
- Google requires
access_type=offlineandprompt=consentto issue refresh tokens. Alter Vault handles this automatically. - If requesting
profileoremailscopes, theopenidscope is automatically included. - A refresh token stops working when the user revokes access, when it goes unused for 6 months, or when the user changes password and the token carries Gmail scopes.
- While the app is External with a publishing status of Testing, Google issues refresh tokens that expire after 7 days (unless only name, email, and profile scopes are requested). Publish the app to production for long-lived connections.
- Google allows 100 live refresh tokens per Google Account per OAuth client ID. Beyond that, each new grant invalidates the oldest refresh token without warning.
- See the Google OAuth 2.0 overview and web-server flow guide for details.
Policy parameters
Section titled “Policy parameters”Content rules and conditional approvals can judge these parameters of Google requests:
| Parameter | Operations | Meaning |
|---|---|---|
recipients | Gmail send operations | Every To, Cc, Bcc, and Resent address in the message |
recipients | calendar.events.insert, update, patch, import | Who the request may invite or email: every attendee address the event lists. An update or patch is judged only when sent with sendUpdates=none and no sendNotifications other than false (see below) |
recipients | calendar.events.delete, move, quickAdd | Who the request may email. Empty when a delete or move is sent with sendUpdates=none and no sendNotifications other than false; otherwise it cannot be judged (see below) |
recipients | calendar.acl.insert, update, patch | The person or group the calendar is shared with: the body scope.value on insert, the rule id on update and patch |
calendarId | every Calendar operation whose path names a calendar (calendar.events, calendar.acl, calendar.calendars, calendar.calendarList) | The calendar the request acts on, as its path names it (primary, an address or a calendar id) |
eventId, ruleId, setting | every Calendar operation whose path names one | The event, sharing rule or setting the request acts on, as its path names it |
destination | calendar.events.move | The calendar a move hands the event to |
sender | Gmail send operations | The From address |
subject | Gmail send operations | The Subject header (redactable) |
event_time | calendar.events.insert, update, patch, import | The event’s start-to-end span, judged with outside_windows |
recipients means who the request may email or invite, so one rule on it can limit both who an agent can email through Gmail and who it can invite, notify or share with through Calendar. Every Google operation in the send family carries it. Which calendar a request writes to is a separate question, governed by calendarId and, for a move, destination.
calendarIdrule. Name the operations whosecalendarIdis the calendar written to:calendar.events.insert,importandquickAdd, which create an event there, andupdate,patchanddelete, which change an event that lives there.destinationrule. A move’scalendarIdis the calendar it moves the event out of, so where a move goes needs its owndestinationrule.
The user’s address names their primary calendar just as primary does, and both compare case-insensitively.
These two rules limit which calendars an agent writes events into or moves them to. They do not stop an event from reaching another calendar through its guest list. Google lets a calendar be invited as an attendee: a group calendar (whose id ends in group.calendar.google.com), or a resource calendar that accepts invitations automatically. Such an attendee is a recipient, so it is stopped only by a recipients rule like the third one below. Use all three to keep an agent’s events within the user’s own calendars and the organization’s addresses:
{ "match": {"operations": ["calendar.events.insert", "calendar.events.import", "calendar.events.quickAdd", "calendar.events.update", "calendar.events.patch", "calendar.events.delete"]}, "params": [{"name": "calendarId", "op": "not_subset_of", "value": ["primary", "alice@example.com"]}], "effect": "deny"}{ "match": {"operations": ["calendar.events.move"]}, "params": [{"name": "destination", "op": "not_subset_of", "value": ["primary", "alice@example.com"]}], "effect": "deny"}{ "match": {"operations": ["calendar.events.insert", "calendar.events.import", "calendar.events.quickAdd", "calendar.events.update", "calendar.events.patch"]}, "params": [{"name": "recipients", "op": "not_subset_of", "value": ["*@example.com"]}], "effect": "deny"}The third rule names calendar.events.quickAdd because a quick add can invite anyone its text names, including a calendar. Its recipients can never be judged (see below), so this rule denies every quick add.
A query parameter named like a path parameter (?calendarId=primary on a request whose path names another calendar) does not stand in for it: the two disagree, so a condition on that parameter cannot be judged and denies. A Calendar request whose path is percent-encoded twice (%25) cannot be judged and is denied by any rule with conditions. Google decodes a path once, so judging the twice-decoded calendar or rule id would judge a value Google never reads.
Requests whose recipients or span cannot be judged:
- Updates and patches that email guests. An update or patch emails every guest it removes (a cancellation) and every guest it keeps. The request lists only the guests the event will have afterwards. Unless it is sent with
sendUpdates=noneand nosendNotificationsother thanfalse(Google sends no email then), its recipients cannot be judged. Such a silent patch that does not list attendees emails and invites nobody, so its recipients are empty. - Deletes and moves that email guests. A delete or move emails the event’s current guests, none of whom the request names. With
sendUpdates=noneand nosendNotificationsother thanfalse, its recipients are empty. - Auto-declining out-of-office and focus time. An event whose
outOfOfficePropertiesorfocusTimePropertiessets anautoDeclineModeother thandeclineNone, or adeclineMessage, declines the meetings it overlaps, and each decline goes to that meeting’s organizer, none of whom the request names. - Setting a response. An update or patch where any attendee carries
responseStatusorcommentcan notify the event’s organizer, whom the request need not name. The attendee’sselfandorganizerflags do not change this: Google sets them itself, so a request’s values for them are not trusted. - Quick add.
calendar.events.quickAddlets Google read guests and the time from free text, so its recipients can never be judged and it has noevent_time. - Partial attendee lists. An event with
attendeesOmitted: truelists only some guests. - Sharing with a domain or the public. A
domainordefaultscope (on insert) or rule id (on update or patch) is not a set of people. - Sharing-rule updates and patches whose rule id cannot be read. An update or patch changes the rule its id names (
user:a@example.com,group:…,domain:…, ordefault), so the grantee is taken from the id. Its recipients cannot be judged if the id is in any other form: a patch, or an update that carries ascope. - Patches that change one end. A patch that names only
startor onlyendkeeps the other end, which the request does not show. - Recurring events. An event with
recurrencerules repeats beyond the span the request shows. - Updates and patches that do not state
recurrence. A patch keeps the edited event’s recurrence, and Google does not document what an update withoutrecurrencedoes to a recurring event, soevent_timecannot be judged for either. Including"recurrence": []lets it be judged: Google replaces an array a patch names, and an update replaces the whole event, so the written event does not repeat. A single occurrence of a recurring event has norecurrencefield, and Google does not document whether it accepts one. A change to a single occurrence that does not staterecurrenceis therefore treated like any other undetermined span. - Updates and patches that name neither end. An update or patch without
startorendkeeps the stored time, which the request does not show.
Some sharing-rule requests are refused outright as unclassifiable, whatever the rule: an insert without a scope, an update without a scope (Google requires one), and an update or patch whose body scope names someone other than its rule id.
A deny, redact or step-up rule with a condition that cannot be judged denies the request. A conditional approval sends it to an approver instead. The approval page says which condition was not evaluated and why. It shows the values the request carries as it sent them, with percent-encoding decoded:
- For an event write: the calendar, the listed guests,
attendeesOmitted,startandendwith their time zones,recurrence,sendUpdatesandsendNotifications, and, when the request sets them, the auto-decline settings and each attendee response it sets (the attendee’s address with itsresponseStatusandcomment). - For a sharing rule: the rule id, role and scope.
- For a quick add: the text.
- For a move: the source calendar and destination.
Every Calendar request also lists its query and body as sent, field by field (query.sendUpdates, body.status, body.attendees[0].responseStatus, body.address on a watch, …), whether or not a condition was undetermined: the policy reads only part of the request, and an approval covers everything that executes.
Values outside the request are not shown, and the page says so: the event’s current guests, the organizers an auto-decline or a response notifies, the stored time of a patch that names one end or neither, or the stored scope of a sharing-rule patch. The page never shows the rule’s own address patterns: only whether each listed address matches them.
Each listed address is checked against the rule’s addresses, and the result is shown next to it. An address containing any non-ASCII character is marked as such. A body grantee whose rule id cannot be read is shown as not judged, never as inside the list. Against an allowlist (not_subset_of), a look-alike address, such as one using a Cyrillic letter, is shown as outside the list. Against a blocklist (any_in), it is shown as not matching, so a blocklist does not catch look-alikes; the non-ASCII mark is the only signal.
If the values in the request cannot be shown, the request cannot be approved. A condition on a parameter the operation does not carry at all, such as recipients on calendar.events.list, still denies. Query parameters such as sendUpdates are also available to conditions. See Calendar events only during business hours for business-hours and outside-invitee examples.
Policy-cataloged operations
Section titled “Policy-cataloged operations”Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.
| Operation ID | Families | Method | Provider path | Notes |
|---|---|---|---|---|
calendar.calendars.delete | delete | DELETE | /calendar/v3/calendars/{calendarId} | — |
calendar.acl.delete | admin, delete | DELETE | /calendar/v3/calendars/{calendarId}/acl/{ruleId} | — |
calendar.events.delete | delete, send | DELETE | /calendar/v3/calendars/{calendarId}/events/{eventId} | — |
calendar.calendarList.delete | delete | DELETE | /calendar/v3/users/me/calendarList/{calendarId} | — |
drive.drives.delete | delete, write | DELETE | /drive/v3/drives/{driveId} | — |
drive.files.emptyTrash | delete, write | DELETE | /drive/v3/files/trash | — |
drive.files.delete | delete, write | DELETE | /drive/v3/files/{fileId} | — |
drive.comments.delete | delete, write | DELETE | /drive/v3/files/{fileId}/comments/{commentId} | — |
drive.replies.delete | delete, write | DELETE | /drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId} | — |
drive.permissions.delete | admin, delete, write | DELETE | /drive/v3/files/{fileId}/permissions/{permissionId} | — |
drive.revisions.delete | delete, write | DELETE | /drive/v3/files/{fileId}/revisions/{revisionId} | — |
drive.teamdrives.delete | delete, write | DELETE | /drive/v3/teamdrives/{teamDriveId} | — |
gmail.users.drafts.delete | delete, write | DELETE | /gmail/v1/users/{userId}/drafts/{id} | — |
gmail.users.labels.delete | delete, write | DELETE | /gmail/v1/users/{userId}/labels/{id} | — |
gmail.users.messages.delete | delete | DELETE | /gmail/v1/users/{userId}/messages/{id} | — |
gmail.users.settings.cse.identities.delete | admin, delete, write | DELETE | /gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress} | — |
gmail.users.settings.delegates.delete | admin, delete, write | DELETE | /gmail/v1/users/{userId}/settings/delegates/{delegateEmail} | — |
gmail.users.settings.filters.delete | admin, delete, write | DELETE | /gmail/v1/users/{userId}/settings/filters/{id} | — |
gmail.users.settings.forwardingAddresses.delete | admin, delete, write | DELETE | /gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail} | — |
gmail.users.settings.sendAs.delete | admin, delete, write | DELETE | /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail} | — |
gmail.users.settings.sendAs.smimeInfo.delete | admin, delete, write | DELETE | /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id} | — |
gmail.users.threads.delete | delete, write | DELETE | /gmail/v1/users/{userId}/threads/{id} | — |
calendar.calendars.get | read | GET | /calendar/v3/calendars/{calendarId} | — |
calendar.acl.list | read | GET | /calendar/v3/calendars/{calendarId}/acl | — |
calendar.acl.get | read | GET | /calendar/v3/calendars/{calendarId}/acl/{ruleId} | — |
calendar.events.list | read | GET | /calendar/v3/calendars/{calendarId}/events | — |
calendar.events.get | read | GET | /calendar/v3/calendars/{calendarId}/events/{eventId} | — |
calendar.events.instances | read | GET | /calendar/v3/calendars/{calendarId}/events/{eventId}/instances | — |
calendar.colors.get | read | GET | /calendar/v3/colors | — |
calendar.calendarList.list | read | GET | /calendar/v3/users/me/calendarList | — |
calendar.calendarList.get | read | GET | /calendar/v3/users/me/calendarList/{calendarId} | — |
calendar.settings.list | read | GET | /calendar/v3/users/me/settings | — |
calendar.settings.get | read | GET | /calendar/v3/users/me/settings/{setting} | — |
drive.about.get | read | GET | /drive/v3/about | — |
drive.apps.list | read | GET | /drive/v3/apps | — |
drive.apps.get | read | GET | /drive/v3/apps/{appId} | — |
drive.changes.list | read | GET | /drive/v3/changes | — |
drive.changes.getStartPageToken | read | GET | /drive/v3/changes/startPageToken | — |
drive.drives.list | read | GET | /drive/v3/drives | — |
drive.drives.get | read | GET | /drive/v3/drives/{driveId} | — |
drive.files.list | read | GET | /drive/v3/files | — |
drive.files.generateIds | read | GET | /drive/v3/files/generateIds | — |
drive.files.get | read | GET | /drive/v3/files/{fileId} | — |
drive.accessproposals.list | read | GET | /drive/v3/files/{fileId}/accessproposals | — |
drive.accessproposals.get | read | GET | /drive/v3/files/{fileId}/accessproposals/{proposalId} | — |
drive.approvals.list | read | GET | /drive/v3/files/{fileId}/approvals | — |
drive.approvals.get | read | GET | /drive/v3/files/{fileId}/approvals/{approvalId} | — |
drive.comments.list | read | GET | /drive/v3/files/{fileId}/comments | — |
drive.comments.get | read | GET | /drive/v3/files/{fileId}/comments/{commentId} | — |
drive.replies.list | read | GET | /drive/v3/files/{fileId}/comments/{commentId}/replies | — |
drive.replies.get | read | GET | /drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId} | — |
drive.files.export | read | GET | /drive/v3/files/{fileId}/export | — |
drive.files.listLabels | read | GET | /drive/v3/files/{fileId}/listLabels | — |
drive.permissions.list | read | GET | /drive/v3/files/{fileId}/permissions | — |
drive.permissions.get | read | GET | /drive/v3/files/{fileId}/permissions/{permissionId} | — |
drive.revisions.list | read | GET | /drive/v3/files/{fileId}/revisions | — |
drive.revisions.get | read | GET | /drive/v3/files/{fileId}/revisions/{revisionId} | — |
drive.operations.get | read | GET | /drive/v3/operations/{name} | — |
drive.teamdrives.list | read | GET | /drive/v3/teamdrives | — |
drive.teamdrives.get | read | GET | /drive/v3/teamdrives/{teamDriveId} | — |
gmail.users.drafts.list | read | GET | /gmail/v1/users/{userId}/drafts | — |
gmail.users.drafts.get | read | GET | /gmail/v1/users/{userId}/drafts/{id} | — |
gmail.users.history.list | read | GET | /gmail/v1/users/{userId}/history | — |
gmail.users.labels.list | read | GET | /gmail/v1/users/{userId}/labels | — |
gmail.users.labels.get | read | GET | /gmail/v1/users/{userId}/labels/{id} | — |
gmail.users.messages.list | read | GET | /gmail/v1/users/{userId}/messages | — |
gmail.users.messages.get | read | GET | /gmail/v1/users/{userId}/messages/{id} | — |
gmail.users.messages.attachments.get | read | GET | /gmail/v1/users/{userId}/messages/{messageId}/attachments/{id} | — |
gmail.users.getProfile | read | GET | /gmail/v1/users/{userId}/profile | — |
gmail.users.settings.getAutoForwarding | read | GET | /gmail/v1/users/{userId}/settings/autoForwarding | — |
gmail.users.settings.cse.identities.list | read | GET | /gmail/v1/users/{userId}/settings/cse/identities | — |
gmail.users.settings.cse.identities.get | read | GET | /gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress} | — |
gmail.users.settings.cse.keypairs.list | read | GET | /gmail/v1/users/{userId}/settings/cse/keypairs | — |
gmail.users.settings.cse.keypairs.get | read | GET | /gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId} | — |
gmail.users.settings.delegates.list | read | GET | /gmail/v1/users/{userId}/settings/delegates | — |
gmail.users.settings.delegates.get | read | GET | /gmail/v1/users/{userId}/settings/delegates/{delegateEmail} | — |
gmail.users.settings.filters.list | read | GET | /gmail/v1/users/{userId}/settings/filters | — |
gmail.users.settings.filters.get | read | GET | /gmail/v1/users/{userId}/settings/filters/{id} | — |
gmail.users.settings.forwardingAddresses.list | read | GET | /gmail/v1/users/{userId}/settings/forwardingAddresses | — |
gmail.users.settings.forwardingAddresses.get | read | GET | /gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail} | — |
gmail.users.settings.getImap | read | GET | /gmail/v1/users/{userId}/settings/imap | — |
gmail.users.settings.getLanguage | read | GET | /gmail/v1/users/{userId}/settings/language | — |
gmail.users.settings.getPop | read | GET | /gmail/v1/users/{userId}/settings/pop | — |
gmail.users.settings.sendAs.list | read | GET | /gmail/v1/users/{userId}/settings/sendAs | — |
gmail.users.settings.sendAs.get | read | GET | /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail} | — |
gmail.users.settings.sendAs.smimeInfo.list | read | GET | /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo | — |
gmail.users.settings.sendAs.smimeInfo.get | read | GET | /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id} | — |
gmail.users.settings.getVacation | read | GET | /gmail/v1/users/{userId}/settings/vacation | — |
gmail.users.threads.list | read | GET | /gmail/v1/users/{userId}/threads | — |
gmail.users.threads.get | read | GET | /gmail/v1/users/{userId}/threads/{id} | — |
calendar.calendars.patch | write | PATCH | /calendar/v3/calendars/{calendarId} | — |
calendar.acl.patch | admin, send, write | PATCH | /calendar/v3/calendars/{calendarId}/acl/{ruleId} | — |
calendar.events.patch | send, write | PATCH | /calendar/v3/calendars/{calendarId}/events/{eventId} | — |
calendar.calendarList.patch | write | PATCH | /calendar/v3/users/me/calendarList/{calendarId} | — |
drive.drives.update | admin, write | PATCH | /drive/v3/drives/{driveId} | — |
drive.files.update | admin, write | PATCH | /drive/v3/files/{fileId} | — |
drive.comments.update | send, write | PATCH | /drive/v3/files/{fileId}/comments/{commentId} | — |
drive.replies.update | send, write | PATCH | /drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId} | — |
drive.permissions.update | admin, write | PATCH | /drive/v3/files/{fileId}/permissions/{permissionId} | — |
drive.revisions.update | admin, write | PATCH | /drive/v3/files/{fileId}/revisions/{revisionId} | — |
drive.teamdrives.update | admin, write | PATCH | /drive/v3/teamdrives/{teamDriveId} | — |
gmail.users.labels.patch | write | PATCH | /gmail/v1/users/{userId}/labels/{id} | — |
gmail.users.settings.cse.identities.patch | admin, write | PATCH | /gmail/v1/users/{userId}/settings/cse/identities/{emailAddress} | — |
gmail.users.settings.sendAs.patch | admin, write | PATCH | /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail} | — |
drive.files.updateUpload | admin, write | PATCH | /upload/drive/v3/files/{fileId} | — |
calendar.calendars.insert | write | POST | /calendar/v3/calendars | — |
calendar.acl.insert | admin, send, write | POST | /calendar/v3/calendars/{calendarId}/acl | — |
calendar.acl.watch | admin, read, send, write | POST | /calendar/v3/calendars/{calendarId}/acl/watch | allowed; its secret is never stored in a payload capture; delivery address in policy parameter address |
calendar.calendars.clear | delete | POST | /calendar/v3/calendars/{calendarId}/clear | — |
calendar.events.insert | send, write | POST | /calendar/v3/calendars/{calendarId}/events | — |
calendar.events.import | write | POST | /calendar/v3/calendars/{calendarId}/events/import | — |
calendar.events.quickAdd | send, write | POST | /calendar/v3/calendars/{calendarId}/events/quickAdd | — |
calendar.events.watch | admin, read, send, write | POST | /calendar/v3/calendars/{calendarId}/events/watch | allowed; its secret is never stored in a payload capture; delivery address in policy parameter address |
calendar.events.move | send, write | POST | /calendar/v3/calendars/{calendarId}/events/{eventId}/move | — |
calendar.calendars.transferOwnership | admin | POST | /calendar/v3/calendars/{calendarId}/transferOwnership | — |
calendar.channels.stop | write | POST | /calendar/v3/channels/stop | — |
calendar.freebusy.query | read | POST | /calendar/v3/freeBusy | — |
calendar.calendarList.insert | write | POST | /calendar/v3/users/me/calendarList | — |
calendar.calendarList.watch | admin, read, send, write | POST | /calendar/v3/users/me/calendarList/watch | allowed; its secret is never stored in a payload capture; delivery address in policy parameter address |
calendar.settings.watch | admin, read, send, write | POST | /calendar/v3/users/me/settings/watch | allowed; its secret is never stored in a payload capture; delivery address in policy parameter address |
drive.changes.watch | admin, send, write | POST | /drive/v3/changes/watch | allowed; its secret is never stored in a payload capture; delivery address in policy parameter address |
drive.channels.stop | admin, write | POST | /drive/v3/channels/stop | — |
drive.drives.create | write | POST | /drive/v3/drives | — |
drive.drives.hide | write | POST | /drive/v3/drives/{driveId}/hide | — |
drive.drives.unhide | write | POST | /drive/v3/drives/{driveId}/unhide | — |
drive.files.create | write | POST | /drive/v3/files | — |
drive.accessproposals.resolve | admin, send, write | POST | /drive/v3/files/{fileId}/accessproposals/{proposalId}:resolve | — |
drive.approvals.approve | send, write | POST | /drive/v3/files/{fileId}/approvals/{approvalId}:approve | — |
drive.approvals.cancel | send, write | POST | /drive/v3/files/{fileId}/approvals/{approvalId}:cancel | — |
drive.approvals.comment | send, write | POST | /drive/v3/files/{fileId}/approvals/{approvalId}:comment | — |
drive.approvals.decline | send, write | POST | /drive/v3/files/{fileId}/approvals/{approvalId}:decline | — |
drive.approvals.reassign | send, write | POST | /drive/v3/files/{fileId}/approvals/{approvalId}:reassign | — |
drive.approvals.start | send, write | POST | /drive/v3/files/{fileId}/approvals:start | — |
drive.comments.create | send, write | POST | /drive/v3/files/{fileId}/comments | — |
drive.replies.create | send, write | POST | /drive/v3/files/{fileId}/comments/{commentId}/replies | — |
drive.files.copy | write | POST | /drive/v3/files/{fileId}/copy | — |
drive.files.download | read | POST | /drive/v3/files/{fileId}/download | — |
drive.files.modifyLabels | write | POST | /drive/v3/files/{fileId}/modifyLabels | — |
drive.permissions.create | admin, send, write | POST | /drive/v3/files/{fileId}/permissions | — |
drive.files.watch | admin, send, write | POST | /drive/v3/files/{fileId}/watch | allowed; its secret is never stored in a payload capture; delivery address in policy parameter address |
drive.teamdrives.create | write | POST | /drive/v3/teamdrives | — |
gmail.users.drafts.create | write | POST | /gmail/v1/users/{userId}/drafts | — |
gmail.users.drafts.send | send | POST | /gmail/v1/users/{userId}/drafts/send | — |
gmail.users.labels.create | write | POST | /gmail/v1/users/{userId}/labels | — |
gmail.users.messages.insert | write | POST | /gmail/v1/users/{userId}/messages | — |
gmail.users.messages.batchDelete | delete, write | POST | /gmail/v1/users/{userId}/messages/batchDelete | — |
gmail.users.messages.batchModify | delete, write | POST | /gmail/v1/users/{userId}/messages/batchModify | — |
gmail.users.messages.import | write | POST | /gmail/v1/users/{userId}/messages/import | — |
gmail.users.messages.send | send, write | POST | /gmail/v1/users/{userId}/messages/send | — |
gmail.users.messages.modify | delete, write | POST | /gmail/v1/users/{userId}/messages/{id}/modify | — |
gmail.users.messages.trash | delete, write | POST | /gmail/v1/users/{userId}/messages/{id}/trash | — |
gmail.users.messages.untrash | write | POST | /gmail/v1/users/{userId}/messages/{id}/untrash | — |
gmail.users.settings.cse.identities.create | admin, write | POST | /gmail/v1/users/{userId}/settings/cse/identities | — |
gmail.users.settings.cse.keypairs.create | admin, write | POST | /gmail/v1/users/{userId}/settings/cse/keypairs | — |
gmail.users.settings.cse.keypairs.disable | admin, write | POST | /gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable | — |
gmail.users.settings.cse.keypairs.enable | admin, write | POST | /gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable | — |
gmail.users.settings.cse.keypairs.obliterate | admin, delete, write | POST | /gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate | — |
gmail.users.settings.delegates.create | admin, write | POST | /gmail/v1/users/{userId}/settings/delegates | — |
gmail.users.settings.filters.create | admin, delete, send, write | POST | /gmail/v1/users/{userId}/settings/filters | — |
gmail.users.settings.forwardingAddresses.create | admin, send, write | POST | /gmail/v1/users/{userId}/settings/forwardingAddresses | — |
gmail.users.settings.sendAs.create | admin, send, write | POST | /gmail/v1/users/{userId}/settings/sendAs | — |
gmail.users.settings.sendAs.smimeInfo.insert | admin, write | POST | /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo | — |
gmail.users.settings.sendAs.smimeInfo.setDefault | admin, write | POST | /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault | — |
gmail.users.settings.sendAs.verify | admin, send, write | POST | /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify | — |
gmail.users.stop | admin, write | POST | /gmail/v1/users/{userId}/stop | — |
gmail.users.threads.modify | delete, write | POST | /gmail/v1/users/{userId}/threads/{id}/modify | — |
gmail.users.threads.trash | delete, write | POST | /gmail/v1/users/{userId}/threads/{id}/trash | — |
gmail.users.threads.untrash | write | POST | /gmail/v1/users/{userId}/threads/{id}/untrash | — |
gmail.users.watch | admin, send, write | POST | /gmail/v1/users/{userId}/watch | delivery address in policy parameter topicName |
drive.files.createUpload | write | POST | /upload/drive/v3/files | — |
calendar.calendars.update | write | PUT | /calendar/v3/calendars/{calendarId} | — |
calendar.acl.update | admin, send, write | PUT | /calendar/v3/calendars/{calendarId}/acl/{ruleId} | — |
calendar.events.update | send, write | PUT | /calendar/v3/calendars/{calendarId}/events/{eventId} | — |
calendar.calendarList.update | write | PUT | /calendar/v3/users/me/calendarList/{calendarId} | — |
gmail.users.drafts.update | write | PUT | /gmail/v1/users/{userId}/drafts/{id} | — |
gmail.users.labels.update | write | PUT | /gmail/v1/users/{userId}/labels/{id} | — |
gmail.users.settings.updateAutoForwarding | admin, send, write | PUT | /gmail/v1/users/{userId}/settings/autoForwarding | — |
gmail.users.settings.updateImap | admin, write | PUT | /gmail/v1/users/{userId}/settings/imap | — |
gmail.users.settings.updateLanguage | admin, write | PUT | /gmail/v1/users/{userId}/settings/language | — |
gmail.users.settings.updatePop | admin, write | PUT | /gmail/v1/users/{userId}/settings/pop | — |
gmail.users.settings.sendAs.update | admin, write | PUT | /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail} | — |
gmail.users.settings.updateVacation | admin, send, write | PUT | /gmail/v1/users/{userId}/settings/vacation | — |
drive.files.generateCseToken | read | GET | /drive/v3/files/generateCseToken | allowed; its secret is never stored in a payload capture |
Typed provider SDK
Section titled “Typed provider SDK”Use the Google Workspace SDK for version-pinned Gmail, Calendar and Drive calls with policy, approvals and audit.