Connect Aperium to Gmail, Drive, Docs, Sheets, Slides, and Calendar through OAuth.
The Google Workspace integration lets users link their personal Google account to Aperium so agents can read and act on their email, files, documents, spreadsheets, slides, and calendar. Setup happens in two places: configure an OAuth client in Google Cloud, then paste the credentials into the Aperium admin onboarding flow or the Admin Console’s MCP Servers tab.Google Workspace is a layered connection: the admin configures the OAuth client once for the tenant, and each user links their own Google account on top of it. Agents act as the linked user, with that user’s own Google permissions.
Slides — replace text, set element text, set speaker notes
Every write tool is approval-gated. When an agent proposes a write, Aperium pauses and shows the exact change for a human to approve before anything is sent to Google. Reads run without a prompt.
From the left panel, open APIs & Services, go to Enabled APIs and services, and click + ENABLE APIS AND SERVICES. Search for and enable each of these:
Gmail API
Google Drive API
Google Docs API
Google Sheets API
Google Slides API
Google Calendar API
Without every API enabled, the parts of the integration that depend on it will fail when users try to use them.
3
Configure the OAuth consent screen
Under APIs & Services, select the OAuth consent screen tab.
If your Google Cloud account belongs to a Google Workspace organization and you only need to authorize users in that org, choose Internal for User Type.
Otherwise, choose External.
Fill in the required fields:
App name (for example Aperium).
User support email.
Developer contact email.
Click SAVE AND CONTINUE.
4
Add the OAuth scopes
On the Scopes step of the consent screen, click ADD OR REMOVE SCOPES and add every scope below. These are the scopes Aperium requests at consent time.Identity
Several of these are classified as sensitive or restricted scopes by Google. For unverified apps you can still proceed using test users (next step). For a production rollout, plan to submit the app for Google’s OAuth verification.Click SAVE AND CONTINUE.
5
Add test users (External user type only)
If you chose External in the consent screen step and the app is not yet verified, add a test user entry for every email address that should be allowed to complete the OAuth flow. Without this, only the developer account can connect.Click SAVE AND CONTINUE, review the summary, and click BACK TO DASHBOARD.
6
Create the OAuth client credentials
Open the Credentials tab and click + CREATE CREDENTIALS then OAuth client ID.
Creating an OAuth client ID from the Credentials tab in Google Cloud Console.
Application type: Web application.
Name: Anything that makes the client easy to find later (for example Aperium).
Authorized JavaScript origins. Add the origin of your Aperium deployment, with no trailing slash:
https://<your-aperium-domain>
For local development, also add http://localhost:3000.Authorized redirect URIs. Add the Aperium OAuth callback path:
For local development, also add http://localhost:8080/api/v1/google/auth/callback.Click CREATE. Google shows the Client ID and Client secret. Copy both, or use Download JSON to save the credentials file.
7
Paste the credentials into Aperium
Open Aperium and go to either the admin onboarding flow (first sign-in) or the Admin Console’s MCP Servers tab (any time after). Open the Connect Aperium to Google Workspace form and fill in:
OAuth Client ID. The client ID from Google Cloud.
OAuth Client Secret. The client secret from Google Cloud.
Redirect URI. The same redirect URI you registered in Google Cloud (for example https://<your-aperium-domain>/api/v1/google/auth/callback).
Click Enable. Once saved, every user can link their personal Google account from the Integrations page.
The Connect Aperium to Google Workspace form in the admin onboarding flow.
After admin setup is complete, users land on the Connect your tools page (during onboarding) or the Integrations page (any time after). They click Link Account on the Google Workspace tile, are redirected to Google’s consent screen, review the scopes Aperium is asking for, and click Allow to finish linking.
For a production rollout where users outside a Workspace organization need to sign in, submit the OAuth app for Google verification. Restricted and sensitive scopes such as gmail.modify and the Drive, Docs, Sheets, and Slides write scopes typically require Google verification before the consent screen will allow non-test users to proceed.