Gmail
Testing with your own Gmail accounts takes about 30 minutes and needs no approval. Opening it to all users means a Google review, and reading email adds a yearly security audit.
No review needed
Keep the app in Testing mode and invite up to 100 testers. Google doesn't review it, but testers see a warning screen and have to reconnect every 7 days.
Your timeAbout 30 minestimateReview waitNone[3]
- 01
Create a Google Cloud project and turn on the Gmail API [5]
YouCreate a projectLinks will open Google Cloud as this account.Turn on Gmail APIGoogle may switch you back to an older project after you create a new one.Show me how
- Give the project any name, like my-agent-gmail.
- Copy the project ID under the name field. It isn't always the same as the name.
- Paste it in the box above. The buttons in this guide will now open your project.
- Open the Gmail API page and click Enable.
- 02Open Audience
Add yourself and your testers [2]
YouA tester can't sign in. Their work account's admin may be blocking outside apps. Ask them to allow your app, or test with a personal Gmail account.Show me how
- If Google asks, click Get started and enter an app name and support email.
- Choose External. Internal only works for people in your own company Workspace.
- Leave the status on Testing.
- Under Test users, click Add users and enter each tester's email.
- 03
Choose only the access you need [1]
AgentOnly sending email? Use gmail.send. Reading email needs gmail.readonly or gmail.modify, which bring a stricter review. Only managing labels? gmail.labels needs just a basic review.
Open Data accessShow me how
- Click Add or remove scopes.
- Type gmail in the filter and tick only what you need.
- Click Update, then Save.
- 04Open Clients
Create login credentials and add Composio's redirect URL [6]
YouRedirect URL to pastehttps://backend.composio.dev/api/v3/toolkits/auth/callbackYou see redirect_uri_mismatch. The URL in Google and the one in your Composio auth config must match exactly. Some older Composio setups use a v1 URL, so check both.Show me how
- Click Create client and pick Web application.
- Under Authorized redirect URIs, click Add URI and paste the URL above.
- Click Create.
- 05
Save your client ID and secret [5]
YouClient IDPaste into your Composio auth config, never into a chatClient secretPaste into your Composio auth config, never into a chatShow me how
- Copy both from the window that pops up after you create the client.
- Google shows the secret only once. If you lose it, make a new one on the client's page.
- 06
Connect a test account and check it works [2]
AgentIt stopped working after a week. That's normal in Testing mode. Reconnect, or follow the Production steps.Show me how
- You add your client ID and secret to a Gmail auth config in Composio.
- You sign in with one of your test accounts.
- The agent fetches that inbox's labels to confirm everything works.
Not sure yet
- ?How much the CASA audit costs and how long it takes. Google's pages don't say.
- ?Whether Composio's ready-made Gmail app would cover your needs, so you could skip this for now. We haven't checked.
- ?Review times are Google's estimates, not promises.