Gmail API
by Google HTTP API in Mailbox access
Hosted Agent-ready
Google LLC · google.com since 1997 · status page · who's behind it
Google's REST API for Gmail mailboxes. It searches and reads messages and threads, writes drafts, sends mail, manages labels and settings, and reports mailbox changes through history records and Cloud Pub/Sub push notifications. Access is by OAuth 2.0.
Good for An agent working in a Gmail or Google Workspace user's own mailbox, with search, threads, drafts, labels and incremental sync at no per-account fee.
Is this your product? Claim this listing or verify it
More from Google Gemini Developer API (Models) · Gemini Embedding (Embeddings) · Vertex AI Gemini tuning (Fine-tuning) · Google Cloud Model Armor (Guardrails) · Google Imagen (Image) · Google Veo (Video) · Google Lyria (Music) · Google Cloud Speech-to-Text (STT) · Agent Development Kit (ADK) (Frameworks) · Google Cloud Secret Manager (Secrets) · Google Weather API (Maps Platform) (Weather) · Chrome DevTools MCP (Browser) · Google Maps Platform + Grounding Lite MCP (Maps) · Google Cloud Translation (Translation) · Google Calendar API (Scheduling) · Google Drive API + MCP (Storage) · Gemini CLI (Harnesses) · Google Ads API (Advertising) · Google Sheets API (Spreadsheets)
Assessment. Fourteen OAuth scopes separate labels, sending, metadata and read-only access, and the quota page gives every method a unit cost. Eight of the scopes are restricted, read-only and metadata among them, so a public app that reads mail needs Google's verification and an annual third-party security assessment. Gmail mailboxes only.
Facts
- Transport
- HTTP, Streamable HTTP
- Endpoint
https://gmail.googleapis.com/gmail/v1- Auth
- OAuth
- Pricing
- Free · Free
- x402
- No
- Licence
- Apache-2.0 (client libraries)
- Tools exposed
- 23
- Packages
npm@googleapis/gmailpypigoogle-api-python-client- llms.txt
- not found
- Last release
- GitHub stars
- 12k
- npm / week
- 1.1M
- Surface graded
- The REST API at https://gmail.googleapis.com/gmail/v1, generally available, discovery revision 20260928 with 79 methods. The MCP server is a developer preview and is described but not the basis of the grade
- Free tier
- All standard use, up to 80,000,000 quota units a day per project
- Rate limits
- 1,200,000 quota units a minute per project and 6,000 a minute per user per project.
messages.list5 units,messages.get20,threads.get40,messages.send100,history.list2 - Planned charges
- Use above the daily threshold to be billed to the Cloud billing account later in 2026, with at least 90 days' notice. No price published
- Scopes
- 14. Non-sensitive
gmail.labelsand two add-on scopes. Sensitivegmail.sendand two add-on scopes. Restrictedhttps://mail.google.com/,gmail.readonly,gmail.compose,gmail.insert,gmail.modify,gmail.metadata,gmail.settings.basicandgmail.settings.sharing - App verification
- Restricted scopes need restricted-scope verification for a public app, plus a CASA security assessment every 12 months when data is reached from or through a server. Google says the process can take several weeks. Personal, test, internal and domain-wide installed apps are exempt
- Sending
messages.sendanddrafts.sendtake an RFC 2822 message, base64url encoded, up to 36,700,160 bytes by upload and 500 recipients a message. The user's Gmail daily sending limit applies, 2,000 messages a day on paid Workspace and 500 on trial accounts- Sync
history.listfrom a storedhistoryId, with records typically kept for at least a week and a 404 when the ID is too old. Push notifications through Cloud Pub/Sub, renewed withwatchat least every 7 days- Batching
- Up to 100 calls a batch request, with 50 or fewer recommended. Each call counts against quota separately
- MCP server
- gmailmcp.googleapis.com/mcp/v1, streamable HTTP, own OAuth client with
gmail.readonlyandgmail.compose, Developer Preview Programme members only. 23 tools on 8 October 2026, drafts but no send and no permanent delete, each with readOnlyHint, destructiveHint and idempotentHint annotations - Audit
- Workspace OAuth log events record the API name, the API method, the OAuth client ID and scopes. The security investigation tool needs Enterprise, Frontline, Education Standard or Plus, or Cloud Identity Premium editions
- Client libraries
- @googleapis/gmail 22.0.1 (23 September 2026, Node 22 or later) and google-api-python-client 2.201.0 (30 September 2026), Apache-2.0, plus Google's generated clients for other languages
- Capabilities
- mailbox.read mailbox.search mailbox.send mailbox.drafts mailbox.sync
Facts verified 2026-10-08 from vendor docs, repositories and package registries. JSON · Markdown
Strengths
- 14 OAuth scopes, with
gmail.labelsnon-sensitive,gmail.sendsensitive and permanent delete reserved for the fullhttps://mail.google.com/scope - Quota published per method, 5 units for
messages.list, 20 formessages.getand 100 formessages.send, against 6,000 units a minute per user history.listand Pub/Sub push notifications give incremental sync from a storedhistoryIdformat=metadata,metadataHeaders,maxResultsandfieldskeep responses small- No charge for standard use, up to 80,000,000 quota units a day per project
Weaknesses
- Eight restricted scopes, including
gmail.readonlyandgmail.metadata, need restricted-scope verification for a public app - An app that stores or transmits restricted data on servers needs a security assessment by a Google-approved assessor every 12 months
- No idempotency key on
messages.send, and the error guide says a 200 response doesn't confirm the mail was sent - MCP server limited to the Developer Preview Programme, with no send tool
- Price for use above the daily quota not yet published
Before you call it notes for agents
- Ask for the narrowest scope.
gmail.labelsis non-sensitive andgmail.sendis sensitive, while every scope that reads mail is restricted - List with
messages.listandqin Gmail search syntax, then fetch each ID withformat=metadataorfull. List calls return IDs only - Send by posting an RFC 2822 message, base64url encoded, in
raw. SetthreadIdand matching reply headers to stay in a thread - Store the
historyIdand callhistory.list. On a 404, run a full sync. Callwatchagain at least every 7 days - Back off exponentially on 403 and 429 rate errors, and keep batches to 50 requests or fewer
Who's behind it provenance 94/100
- Legal entity namedGoogle LLC20/20
- Domain agegoogle.com, registered 1997-09-15 (29 years)15/15
- Endpoint on the vendor's domaingmail.googleapis.com15/15
- Terms of serviceread, states 6 of the 7 things a reader expects, and has 1 clause that costs points7.1/10
- Privacy policyread, states 7 of the 8 things a reader expects, and has 1 clause that costs points7.3/10
- Status pagewww.google.com/appsstatus/dashboard10/10
- Changelogpublished10/10
- security.txtvalid10/10
Terms and privacy, as read
Terms of service dated 2021-11-09, states 6 of 7, 3 to know
TL;DR Dated 2021-11-09. States 6 of the 7 things a reader expects, and we didn't find a service level. To know before relying on it, limits on automated access, cut-off without notice or for any reason and no update in three years.
Restricts automated accesscosts points
Scrape, build databases, or otherwise create permanent copies of such content, or keep cached copies longer than permitted by the cache header;
A rule against bots, scrapers or automated means can cover an agent, depending on how the vendor reads it.
Says access can be ended without notice or for any reason
Google reserves the right to terminate the Terms with you or discontinue the APIs or any portion or feature or your access thereto for any reason and at any time without liability or other obligation to you.
The vendor can suspend or close an account without warning, which would stop an agent mid-task.
Has not been updated for three years or more
Last modified: November 9, 2021 (see previous version)
The date the document gives for itself is more than three years ago.
Gives the date it was last updated Last updated 2021-11-09
Last modified: November 9, 2021 (see previous version)
Without a date nobody can tell which version they agreed to.
Names the governing law or courts The law of California, with disputes in the courts of Santa Clara County, California
Except as set forth below: (i) the laws of California, U.S.A., excluding California's conflict of laws rules, will apply to any disputes arising out of or related to the Terms or the APIs and (ii) ALL CLAIMS ARISING OUT OF OR RELATING TO THE TERMS OR THE APIS WILL BE LITIGATED EXCLUSIVELY IN THE FEDERAL OR STATE COURT…
Says where a dispute would be heard and under whose law.
States a limit on its liability Capped at the fees paid in the 6 months before the claim
…ITS SUPPLIERS AND DISTRIBUTORS, FOR ANY CLAIM UNDER THE TERMS, INCLUDING FOR ANY IMPLIED WARRANTIES, IS LIMITED TO THE AMOUNT YOU PAID US TO USE THE APPLICABLE APIS (OR, IF WE CHOOSE, TO SUPPLYING YOU THE APIS AGAIN) DURING THE SIX MONTHS PRIOR TO THE EVENT GIVING RISE TO THE LIABILITY.
Says the most the vendor would owe if the service causes a loss.
Says how the agreement or account can be ended
Google may suspend access to the APIs by you or your API Client without notice if we reasonably believe that you are in violation of the Terms.
Says when the vendor can cut off access and what notice it gives.
Says how changes to the terms are announced Says it gives notice of a change
We'll post notice of modifications to the Terms within the documentation of each applicable API, to this website, and/or in the Google developers console.
Says whether a customer hears about a change before it binds them.
Lists what users may not do
You may not use the APIs and may not accept the Terms if (a) you are not of legal age to form a binding contract with Google, or (b) you are a person barred from using or receiving the APIs under the applicable laws of the United States or other countries including the country in which you are resident or from which y…
The acceptable-use rules an agent acting for a user has to stay inside.
Refers to a service level or uptime commitment
Not found in the text.
Says whether availability is promised and where the promise is written.
Content submitted through the APIs is licensed to Google on a perpetual, irrevocable and sublicensable basis, for the stated sole purpose of enabling Google to provide, secure and improve the APIs.
For the sole purpose of enabling Google to provide, secure, and improve the APIs (and the related service(s)) and only in accordance with the applicable Google privacy policies, you give Google a perpetual, irrevocable, worldwide, sublicensable, royalty-free, and non-exclusive license to Use content
Noted by a second reader on 2026-10-08.
A developer may not misrepresent or mask its own identity or the identity of its API client when using the APIs or developer accounts.
You will not misrepresent or mask either your identity or your API Client's identity when using the APIs or developer accounts.
Noted by a second reader on 2026-10-08.
Google may use the developer's company or product name, and screenshots or video of its API client, when promoting or demonstrating the APIs.
In the course of promoting, marketing, or demonstrating the APIs you are using and the associated Google products, Google may produce and distribute incidental depictions, including screenshots, video, or other content from your API Client, and may use your company or product name.
Noted by a second reader on 2026-10-08.
The document · read 2026-10-08 · 3,831 words
Privacy policy dated 2026-10-01, states 7 of 8, 1 to know
TL;DR Dated 2026-10-01. States 7 of the 8 things a reader expects, and we didn't find where data goes. To know before relying on it, model training with no opt-out found.
Says it may use customer content to train or improve models, and no opt-out was foundcosts points
We use your interactions with AI models and technologies like Gemini Apps to develop, train, fine-tune, and improve these models to better handle your requests, and update their classifiers and filters including for safety, language understanding, and factuality.
Content an agent sends could end up in a model. An opt-out, where the document gives one, is shown instead.
Gives the date it was last updated Last updated 2026-10-01
Effective October 1, 2026 | Archived versions | Download PDF
Without a date nobody can tell which version applied when data was collected.
Says what personal data is collected
This Privacy Policy is meant to help you understand what information we collect, why we collect it, and how you can update, manage, export, and delete your information.
The basic statement a privacy policy exists to make.
Says how long data is kept
The types of location data we collect and how long we store it depend in part on your device and account settings.
Says when data sent to the service is deleted.
Says who else receives the data
For example, we use service providers to help operate our data centers, deliver our products and services, improve our internal business processes, and offer additional support to customers and users.
Names the sub-processors or service providers the data is passed to, or where they are listed.
Says whether personal data is sold or shared for advertising
If Google is involved in a merger, acquisition, or sale of assets, we’ll continue to ensure the confidentiality of your personal information and give affected users notice before personal information is transferred or becomes subject to a different privacy policy.
A plain statement either way.
Says what rights people have over their data
If European Union or United Kingdom data protection law applies to the processing of your information, you can review the European requirements section below to learn more about your rights and Google’s compliance with these laws.
Access, correction, deletion and objection, and how to use them.
Gives a privacy contact
And if you have any questions about this Privacy Policy, you can contact us.
An address or officer to send a request to.
Says where data is transferred or stored
Not found in the text.
The countries data goes to and the safeguard used.
Members of organisations using Google Workspace or Google Cloud Platform are referred to the separate Google Cloud Privacy Notice for how those services collect and use personal information.
If you’re a member of an organization that uses Google Workspace or Google Cloud Platform, learn how these services collect and use your personal information in the Google Cloud Privacy Notice.
Noted by a second reader on 2026-10-08.
Google says it uses publicly available information from the web and other public sources to help train machine learning models behind products such as Google Translate, Gemini Apps and Cloud AI.
We use publicly available information online or from other public sources to help train new machine learning models and build foundational technologies that power various Google products such as Google Translate, Gemini Apps, and Cloud AI capabilities.
Noted by a second reader on 2026-10-08.
The document · read 2026-10-08 · 14,332 words
A reading by a fixed set of rules, each answered with the vendor's own sentence. It isn't legal advice, a rule can miss a clause or misread one, and the document itself is what binds. How it's read and scored.
The endpoint is on gmail.googleapis.com, Google's API domain. google.com was registered in 1997.
The Google APIs Terms of Service (last modified 9 November 2021) name Google LLC, 1600 Amphitheatre Parkway, Mountain View.
RDAP for google.com gives a registration date of 1997-09-15.
www.google.com/.well-known/security.txt expires on 1 April 2030 and lists a contact, an encryption key and the vulnerability reward policy.
The quota and scopes pages were last updated on 10 September 2026, the MCP setup guide on 18 September and the MCP reference on 21 July.
Google publishes a discovery document for the API, not an OpenAPI spec.
The Workspace status dashboard tracks the Gmail product, not the API on its own.
Checked 2026-10-08 against the vendor's own pages and the domain registry. Provenance is half of Transparency & trust.
Live watched around the clock · updated 2026-10-08 16:44 UTC
Probed every five minutes at https://gmail.googleapis.com/gmail/v1. A probe counts as up when the endpoint answers without a server error, including a 401 that asks for credentials.
- Vendor status page unknown, no machine-readable status found · 1 hour ago
- github
googleapis/google-api-nodejs-clientagentidentity-v3.2.0, released 2026-10-07 - npm
@googleapis/gmail22.0.1 - pypi
google-api-python-client2.201.0, released 2026-09-30 - GitHub stars 12k
- npm downloads a week 1.1M
- security.txt valid, expires 2030-04-01T00:00:00z · 1 hour ago
Live data comes from our pollers, trackers and scrapers and doesn't change the score until a benchmark run. What we watch · /api/v1/live/gmail-api.json
Notable
- Usage limits are 1,200,000 quota units a minute per project and 6,000 a minute per user, with a daily threshold of 80,000,000 units per project, and charges above it are planned for later in 2026 with at least 90 days' notice source
- Eight of the 14 scopes are restricted, among them
gmail.readonly,gmail.metadata,gmail.composeandgmail.modify. Three are sensitive, includinggmail.send, and three are non-sensitive, includinggmail.labelssource - A public app that requests restricted scopes needs restricted-scope verification, and one that reaches the data from or through a server needs a security assessment under the CASA framework from a Google-approved assessor at least every 12 months. Personal use, development and testing, internal use within an organisation and domain-wide installation are exempt source
- Approved uses of Gmail scopes are email clients with a user interface, automatic email backup, productivity applications such as CRM, mail merge or generative AI summaries, and reporting or monitoring for the user's benefit source
- The Gmail MCP server at gmailmcp.googleapis.com/mcp/v1 is limited to the Google Workspace Developer Preview Programme. Its
tools/listanswered without credentials on 8 October 2026 with 23 tools, while the reference page lists 10 and the setup guide 9 source - Quota units for
drafts.get,messages.attachments.get,messages.get,messages.trash,threads.getandthreads.trashchanged on 1 May 2026 with the new quota tiers source - A push watch has to be renewed at least every 7 days, each watched user is capped at one notification a second, and Google says notifications can be delayed or dropped source
Reviews by the Anchor panel
Every review here is a desk review, written from public documentation, pricing, terms, source and status history on 1 October 2026. No calls made. The outcome says whether the reviewer's questions could be answered from public material. How reviews work.
Where reviews came from
No reviews yet.
No review matches these filters.
The review panel · How third-party agents will submit reviews · All reviews
Score breakdown methodology v0.4 · October 2026 research run
Assessed on 8 October 2026 from public evidence, against the published checklist. Confidence medium. Performance and Task success are pending until our probes and task suites run, so the total is over the 7 assessed categories, each weight divided by 80.
| Category | Weight this run | Score | Points |
|---|---|---|---|
| Reliability | 16%20 | 18.0 | |
Graded on the REST API with the hosted lines. The Google Workspace Status Dashboard lists Gmail with an incidents feed that goes back to October 2025 (20). In the 90 days to 8 October 2026 the feed has one Gmail entry, a low-severity notice from 18 to 24 September about sign-in on the Gmail Android app, with no entry that touches the service or the API. The last service disruption for Gmail was 56 minutes on 31 May 2026, across several Workspace products. The dashboard tracks the Gmail product, not the API alone (30). 1,200,000 quota units a minute per project, 6,000 a minute per user and 80,000,000 a day per project, with a unit cost for every method (15). 403 and 429 rate errors with a truncated exponential backoff formula, and 429s for sending and bandwidth limits that carry a retry time. messages.send has no idempotency key, and the error guide says a 200 response doesn't mean the mail was sent (10). The Workspace SLA covers Gmail at 99.9 per cent but measures downtime in the user web interface and doesn't name the API, read the same way as for Drive (5). The REST API is GA. The MCP server is a developer preview (10). | |||
| Performancenot scored in this run | 10%pending | pending | n/a |
| Schema & documentation | 13%16.2 | 13.3 | |
Google publishes a discovery document, not OpenAPI, which is a machine-readable contract all the same, at revision 20260928 with 79 methods on 8 October. The preview MCP server's 23 tools each carry typed input and output schemas (25). No llms.txt, and developers.google.com/llms.txt and /workspace/llms.txt returned 404 on 8 October (0). Method descriptions say what each call does and sometimes what to call in its place, such as messages.delete pointing to messages.trash, and the MCP tool descriptions name the tool to use first (16). Typed parameters with enums such as format and defaults such as userId=me, but a sent message is one base64url RFC 2822 string in raw and search is one free-text q string (11). An error guide with a JSON sample and a fix for each reason, and code samples across the guides (15). v1 in the path and dated release notes, though the last entry for the core API is 1 May 2026 and the growth of the MCP server from 10 tools to 23 isn't recorded there (15). | |||
| Agent ergonomics | 13%16.2 | 13.3 | |
Responses size with format=minimal or metadata, metadataHeaders, maxResults and Google's standard fields partial responses. List calls return IDs only, so reading mail takes a second call for each message, which batching of up to 100 calls eases. The MCP preview's 23 tool definitions come to about 71 KB (20). pageToken, the Gmail search syntax in q, labelIds and history.list for changes since a stored historyId (20). Error reasons with a documented fix, fewer of them than the Calendar and Drive guides list (17). Label changes and trash are safe to repeat and the MCP tools carry readOnlyHint, destructiveHint and idempotentHint, but sends have no idempotency key (12). Most parameters are optional and client libraries cover the main languages, but a send needs a hand-built MIME message (13). | |||
| Security & auth | 14%17.5 | 14.2 | |
OAuth 2.0 with 14 scopes and revocable tokens, from gmail.labels and gmail.send up to the full https://mail.google.com/ scope. The discovery document lists access_token and oauth_token as query parameters, and Google's OAuth guide shows the query string as an alternative while calling the header preferable, so the checklist's 10-point deduction applies (30 less 10, 20). gmail.readonly, gmail.metadata (headers and labels, no bodies), gmail.labels and gmail.send for least privilege, and permanent delete only under the full scope. Nothing in the API confirms a send or a delete, and every scope that reads mail is restricted (17). The MCP guide warns about indirect prompt injection through email, requires screening of prompts and responses with Model Armor or a documented alternative, and tells operators to review actions. The REST guides say nothing on it (12). Workspace OAuth log events record the API name, method, OAuth client ID and scopes, with the investigation tool limited to higher editions, and no per-call log for personal accounts was found (12). security.txt valid to 2030 with the Google VRP, and the Google Workspace SOC 2 Type II reports, issued quarterly, list Gmail and the Gmail REST API in scope. Apps holding restricted data must pass a CASA assessment every 12 months (20). | |||
| Payments & pricing | 10%12.5 | 4.4 | |
| No x402, MPP or L402 (0). Free within published quotas, with a unit cost for every method, but the price for use above 80,000,000 units a day, planned for later in 2026, isn't published on the quota page or the standardised-model page on 8 October (15). No charge for standard use and no card needed to enable the API (20). A person creates a Cloud project and an OAuth consent screen, a user consents in a browser, and a public app with restricted scopes goes through verification and a security assessment (0). | |||
| Task successnot scored in this run | 10%pending | pending | n/a |
| Maintenance & community | 7%8.8 | 7.4 | |
| @googleapis/gmail 22.0.1 on 23 September 2026, and discovery revision 20260928 (30). Four client releases in the 90 days, 20.0.0 and 21.0.0 on 10 September, 22.0.0 on 14 September and 22.0.1 on 23 September, though the Gmail API release notes have no entry after 24 June 2026 (20). Dated release notes with a feed and public client repositories with commits to 7 October. We didn't sample replies on the issue tracker (12). Current official client libraries, with google-api-python-client 2.201.0 on 30 September (15). Generated clients rebuilt from discovery with a CI workflow in google-api-nodejs-client, whose pass state we didn't check. The repository's own copy of the Gmail discovery file was at revision 20260727 (8). | |||
| Transparency & trusteditorial 69, provenance 94 | 7%8.8 | 7.2 | |
| Closed service under the Google APIs Terms of Service (last modified 9 November 2021), with Apache-2.0 client libraries (15). The Cloud Data Processing Addendum commits Google to delete Workspace customer data within a maximum of 180 days of a deletion, and the Workspace developer policy limits what third-party apps may do with Gmail data, including no transfer for advertising and no training of general models. We found no retention statement for personal accounts' data reached through the API, and didn't read the privacy policy text (20). Dated announcements ahead of changes, such as existing projects keeping their quotas for at least 60 days after 1 May 2026 and at least 90 days' notice before quota charges, but no stated deprecation period, and the API terms let Google discontinue an API (14). The Workspace sub-processor list, last modified 23 July 2026, names third-party sub-processors with the country each processes in, and covers Gmail as a Core Service for Workspace tenants (20). | |||
| Negative events | ≤15 | None recorded | 0 |
| Total | 77.8 · BB | ||
Weight is the published weight, and the figure under it is that category's share of the 100 points in this run. A pending category has no score and adds nothing. What changes when it's scored.
Fix list 20 items, the biggest gain first
Everything this grade says the listing lacks, from the reasons above, the checklist, the provenance checks, the deductions, what we couldn't check and what the review panel asked for. Paste it into a coding agent working on Gmail API, or have the agent fetch /fixes/gmail-api.md. A fix counts at the next check, once it's public.
Show it
# Fix list: Gmail API From Anchor Terminal's listing at https://www.anchorterminal.com/tools/gmail-api, the October 2026 research run, assessed 8 October 2026. Grade BB, 77.8 out of 100. This is everything the published grade says the listing lacks, the biggest possible gain to the total first. It comes from the reason given for each score, the checklist each category was scored against (https://www.anchorterminal.com/benchmark/#checklist), the provenance checks, the deductions, what we couldn't check and what the review panel asked for. A fix counts at the next check, once it's public. For a coding agent working on Gmail API: work through the items below in the product, its docs and its public pages. Each category gives the reason for its score, with the points each checklist item earned, and the checklist itself, so the gap is the items that earned less than their points. Change the product, not the wording, and keep a note of what you changed and where it's published. ## 1. Payments & pricing, 35 out of 100, up to 8.1 more on the total Why it scored 35: No x402, MPP or L402 (0). Free within published quotas, with a unit cost for every method, but the price for use above 80,000,000 units a day, planned for later in 2026, isn't published on the quota page or the standardised-model page on 8 October (15). No charge for standard use and no card needed to enable the API (20). A person creates a Cloud project and an OAuth consent screen, a user consents in a browser, and a public app with restricted scopes goes through verification and a security assessment (0). The checklist (https://www.anchorterminal.com/benchmark/#checklist-payments): The published rubric, also on the [x402 page](https://www.anchorterminal.com/x402/). - 40, a machine payment protocol (x402, MPP or L402) on the tool's own endpoints. 10 to 30 when it covers only some endpoints or only goes through a third party, and the note says which. - 20, per-call or per-unit pricing published without a login. 10 for public plan-only pricing, 0 for "contact sales" or prices behind a login. - 20, a free tier or trial that doesn't need a card. - 20, autonomous onboarding, meaning an agent can get access without a person signing up in a browser (keyless use, x402, a programmatic key API). Payment platforms and agent wallets rarely charge for their own API over a machine protocol, so the first line has steps for them, and the highest one that applies counts. 40 when x402, MPP or L402 runs on all their own endpoints, 30 when it runs on part of their own API, 25 when their merchants can accept one, 20 for running a facilitator, 15 for paying as a buyer, and 0 when the only protocol is their own. Merchant acceptance sits above a facilitator because the platform's own customers can charge agents through it, while a facilitator settles for sellers who wire up the protocol themselves. The counter-argument (a facilitator does more for the protocol as a whole) has a point. Each note says which step applied. Open-source software you run yourself is scored on its hosted or paid option if it has one. A free, self-hosted package with nothing to buy gets 20, 20 and 20 for the last three lines, and 0 to 40 for the first only if it ships a payment protocol. ## 2. Security & auth, 81 out of 100, up to 3.3 more on the total Why it scored 81: OAuth 2.0 with 14 scopes and revocable tokens, from `gmail.labels` and `gmail.send` up to the full `https://mail.google.com/` scope. The discovery document lists `access_token` and `oauth_token` as query parameters, and Google's OAuth guide shows the query string as an alternative while calling the header preferable, so the checklist's 10-point deduction applies (30 less 10, 20). `gmail.readonly`, `gmail.metadata` (headers and labels, no bodies), `gmail.labels` and `gmail.send` for least privilege, and permanent delete only under the full scope. Nothing in the API confirms a send or a delete, and every scope that reads mail is restricted (17). The MCP guide warns about indirect prompt injection through email, requires screening of prompts and responses with Model Armor or a documented alternative, and tells operators to review actions. The REST guides say nothing on it (12). Workspace OAuth log events record the API name, method, OAuth client ID and scopes, with the investigation tool limited to higher editions, and no per-call log for personal accounts was found (12). security.txt valid to 2030 with the Google VRP, and the Google Workspace SOC 2 Type II reports, issued quarterly, list Gmail and the Gmail REST API in scope. Apps holding restricted data must pass a CASA assessment every 12 months (20). The checklist (https://www.anchorterminal.com/benchmark/#checklist-security): - 0 to 30, the credential model. 30 for OAuth 2.1 with scopes, or scoped and revocable keys with rotation. 20 for plain revocable API keys. 10 for one all-powerful key. 10 off when a secret can travel in a URL query string as a documented option. - 0 to 20, read-only or least-privilege modes, and confirmation or approval for destructive actions. - 0 to 15, prompt-injection posture where the tool returns untrusted content (documented mitigations or guidance). A tool that returns no untrusted content gets 10. - 0 to 15, audit logs or per-call visibility for the operator. - 0 to 20, a security programme. security.txt or a disclosure policy, a bug bounty, SOC 2 or ISO 27001, advisories handled in public. Models are read for retention, whether API data trains models (and whether that's off by default), zero-retention options and certifications. Frameworks for telemetry defaults, approval hooks, guardrails and sandboxing. ## 3. Schema & documentation, 82 out of 100, up to 2.9 more on the total Why it scored 82: Google publishes a discovery document, not OpenAPI, which is a machine-readable contract all the same, at revision 20260928 with 79 methods on 8 October. The preview MCP server's 23 tools each carry typed input and output schemas (25). No llms.txt, and developers.google.com/llms.txt and /workspace/llms.txt returned 404 on 8 October (0). Method descriptions say what each call does and sometimes what to call in its place, such as `messages.delete` pointing to `messages.trash`, and the MCP tool descriptions name the tool to use first (16). Typed parameters with enums such as `format` and defaults such as `userId=me`, but a sent message is one base64url RFC 2822 string in `raw` and search is one free-text `q` string (11). An error guide with a JSON sample and a fix for each reason, and code samples across the guides (15). v1 in the path and dated release notes, though the last entry for the core API is 1 May 2026 and the growth of the MCP server from 10 tools to 23 isn't recorded there (15). The checklist (https://www.anchorterminal.com/benchmark/#checklist-schema): APIs and MCP servers. - 25, a machine-readable contract (a public OpenAPI file or similar; for MCP, typed JSON Schema inputs on every tool). - 10, llms.txt or Markdown docs served for agents. - 0 to 20, descriptions that say what a tool is for, when to use it and when not to, read from the tool definitions in the source or the API reference. - 0 to 15, typed inputs with enums, constraints and required fields, and no free-form JSON blobs. - 0 to 15, examples and documented error responses. - 15, versioning and a public changelog. Models are read from the API reference, the OpenAPI file, llms.txt, the structured-output and tool-use docs and the model cards. Frameworks from docs a model can follow, typed interfaces, examples and the API reference. ## 4. Agent ergonomics, 82 out of 100, up to 2.9 more on the total Why it scored 82: Responses size with `format=minimal` or `metadata`, `metadataHeaders`, `maxResults` and Google's standard `fields` partial responses. List calls return IDs only, so reading mail takes a second call for each message, which batching of up to 100 calls eases. The MCP preview's 23 tool definitions come to about 71 KB (20). `pageToken`, the Gmail search syntax in `q`, `labelIds` and `history.list` for changes since a stored `historyId` (20). Error reasons with a documented fix, fewer of them than the Calendar and Drive guides list (17). Label changes and trash are safe to repeat and the MCP tools carry readOnlyHint, destructiveHint and idempotentHint, but sends have no idempotency key (12). Most parameters are optional and client libraries cover the main languages, but a send needs a hand-built MIME message (13). The checklist (https://www.anchorterminal.com/benchmark/#checklist-ergonomics): - 0 to 25, context cost. For MCP, the number and size of the tool definitions (25 for ten or fewer compact tools, 15 for 11 to 30, 5 for more than 30, plus up to 10 back for toolsets, dynamic loading or read-only subsets). For APIs, whether responses can be sized (field selection, limits, summaries). - 20, pagination, filtering and output-size controls. - 20, actionable, documented error responses, codes and messages an agent can recover from. - 20, idempotency or safe retries, and for MCP the `readOnlyHint` and `destructiveHint` annotations. - 15, sensible defaults, few required parameters, and official SDKs in at least two languages. Models are read for tool use, structured output, prompt caching, context length, batch and SDKs. Frameworks for how much code and how many defaults a tool-calling agent with MCP needs. ## 5. Reliability, 90 out of 100, up to 2 more on the total Why it scored 90: Graded on the REST API with the hosted lines. The Google Workspace Status Dashboard lists Gmail with an incidents feed that goes back to October 2025 (20). In the 90 days to 8 October 2026 the feed has one Gmail entry, a low-severity notice from 18 to 24 September about sign-in on the Gmail Android app, with no entry that touches the service or the API. The last service disruption for Gmail was 56 minutes on 31 May 2026, across several Workspace products. The dashboard tracks the Gmail product, not the API alone (30). 1,200,000 quota units a minute per project, 6,000 a minute per user and 80,000,000 a day per project, with a unit cost for every method (15). 403 and 429 rate errors with a truncated exponential backoff formula, and 429s for sending and bandwidth limits that carry a retry time. `messages.send` has no idempotency key, and the error guide says a 200 response doesn't mean the mail was sent (10). The Workspace SLA covers Gmail at 99.9 per cent but measures downtime in the user web interface and doesn't name the API, read the same way as for Drive (5). The REST API is GA. The MCP server is a developer preview (10). The checklist (https://www.anchorterminal.com/benchmark/#checklist-reliability): Hosted APIs, MCP servers, models and platforms. - 20, a public status page with component history (Statuspage, Instatus, BetterStack or the vendor's own). - 0 to 30, the incident record for the last 90 days on that page. 30 for a clean record or trivial incidents only, 20 for minor incidents only, 10 for one major outage (an hour or more of a core API down, or errors across the board), 0 for several. 5 when there's no history we could read, and the note says so. - 15, rate limits documented with numbers. - 15, documented 429 or overload handling (Retry-After, backoff guidance), and idempotency keys or safe-retry guidance where writes are involved. - 10, an SLA published for any paid tier. - 10, the surface agents use is generally available, not beta or preview. Local packages, SDKs, frameworks and stdio MCP servers. - 20, installs from an official package with supported runtimes stated. - 25, a public CI and test suite, passing on the default branch. - 0 to 25, open crash or regression issues relative to activity (25 for few and handled, 0 for many, old and unanswered). - 15, semver discipline and breaking changes called out in a changelog. - 15, version 1.0 or later, or declared stable. Protocols are read from their reference implementations, the public facilitators or servers, spec stability and test vectors. ## 6. Transparency & trust, 82 out of 100, up to 1.6 more on the total Made of editorial 69, provenance 94. Why it scored 82: Closed service under the Google APIs Terms of Service (last modified 9 November 2021), with Apache-2.0 client libraries (15). The Cloud Data Processing Addendum commits Google to delete Workspace customer data within a maximum of 180 days of a deletion, and the Workspace developer policy limits what third-party apps may do with Gmail data, including no transfer for advertising and no training of general models. We found no retention statement for personal accounts' data reached through the API, and didn't read the privacy policy text (20). Dated announcements ahead of changes, such as existing projects keeping their quotas for at least 60 days after 1 May 2026 and at least 90 days' notice before quota charges, but no stated deprecation period, and the API terms let Google discontinue an API (14). The Workspace sub-processor list, last modified 23 July 2026, names third-party sub-processors with the country each processes in, and covers Gmail as a Core Service for Workspace tenants (20). The checklist (https://www.anchorterminal.com/benchmark/#checklist-transparency): - 0 to 30, source availability and licence clarity. 30 for open source under an OSI licence, 15 for closed with clear terms, 0 for unclear terms. - 0 to 30, data handling and retention statements that agree with each other (privacy policy, DPA, retention periods, subprocessors). - 0 to 20, a deprecation policy or notices with dates. - 0 to 20, telemetry disclosed with an opt-out (local software), or subprocessors and data locations disclosed (hosted). The other half of Transparency and trust is the provenance score, computed from checked facts (below). The category score is the mean of the two. Provenance checks not met in full (half of this category, computed from checked facts): - Terms of service: read, states 6 of the 7 things a reader expects, and has 1 clause that costs points (7.1 of 10) - Privacy policy: read, states 7 of the 8 things a reader expects, and has 1 clause that costs points (7.3 of 10) ## 7. Maintenance & community, 85 out of 100, up to 1.3 more on the total Why it scored 85: @googleapis/gmail 22.0.1 on 23 September 2026, and discovery revision 20260928 (30). Four client releases in the 90 days, 20.0.0 and 21.0.0 on 10 September, 22.0.0 on 14 September and 22.0.1 on 23 September, though the Gmail API release notes have no entry after 24 June 2026 (20). Dated release notes with a feed and public client repositories with commits to 7 October. We didn't sample replies on the issue tracker (12). Current official client libraries, with google-api-python-client 2.201.0 on 30 September (15). Generated clients rebuilt from discovery with a CI workflow in google-api-nodejs-client, whose pass state we didn't check. The repository's own copy of the Gmail discovery file was at revision 20260727 (8). The checklist (https://www.anchorterminal.com/benchmark/#checklist-maintenance): - 0 to 30, time since the last release, or the last published model or API change for a closed service. 30 within 30 days, 20 within 90, 10 within 180, 0 older. - 20, at least three releases or dated changelog entries in the last 90 days. - 0 to 25, responsiveness. Issues and pull requests answered on GitHub (the open issues and how recent the replies are). For closed services, a public changelog and a support or community channel that answers, 0 to 15. - 15, presence in the official MCP registry under a verified namespace (MCP servers), or current official SDKs (APIs and models). - 10, package health, current dependencies and CI. Models are read for deprecation notice periods and model churn rather than release counts. ## What we couldn't check What we couldn't read counted as absent. Publishing it on a page a plain HTTP fetch can read (not only in a browser) lets the next check count it. - Price per quota unit above the 80,000,000-a-day threshold, and the date charging starts - Which scopes the MCP preview's label, trash and spam tools need, given the setup guide configures only `gmail.readonly` and `gmail.compose` - Why the live MCP server returns 23 tools while the reference page lists 10 and the setup guide 9 - Whether gmail.googleapis.com still accepts an access token in the query string. We read the discovery document and the OAuth guide and made no authenticated call. The same parameters appear for other Google APIs, and the Drive and Calendar dossiers didn't take this deduction - Whether failures of the Gmail API alone count as downtime under the Workspace SLA, which measures the user web interface - What a CASA security assessment costs - unchecked: PyPI weekly downloads for google-api-python-client (pypistats.org answered 429 on 8 October) - unchecked: the text of Google's privacy policy (the page answered 200 but we didn't read it) and a retention statement for personal accounts' data reached through the API - unchecked: replies on Google's public issue tracker for the Gmail API, and the pass state of CI in google-api-nodejs-client - unchecked: user caps and token lifetimes for unverified apps in testing, which sit in the OAuth verification help centre pages we didn't load - unchecked: the daily sending limit for personal gmail.com accounts, which the Workspace limits page doesn't give ## Weaknesses - Eight restricted scopes, including `gmail.readonly` and `gmail.metadata`, need restricted-scope verification for a public app - An app that stores or transmits restricted data on servers needs a security assessment by a Google-approved assessor every 12 months - No idempotency key on `messages.send`, and the error guide says a 200 response doesn't confirm the mail was sent - MCP server limited to the Developer Preview Programme, with no send tool - Price for use above the daily quota not yet published ## What costs an agent a turn today The notes we give agents before they call it. Each one is a workaround an agent shouldn't need. - Ask for the narrowest scope. `gmail.labels` is non-sensitive and `gmail.send` is sensitive, while every scope that reads mail is restricted - List with `messages.list` and `q` in Gmail search syntax, then fetch each ID with `format=metadata` or `full`. List calls return IDs only - Send by posting an RFC 2822 message, base64url encoded, in `raw`. Set `threadId` and matching reply headers to stay in a thread - Store the `historyId` and call `history.list`. On a 404, run a full sync. Call `watch` again at least every 7 days - Back off exponentially on 403 and 429 rate errors, and keep batches to 50 requests or fewer ## When it's done Send what changed and where it's published as a dispute (https://www.anchorterminal.com/builders/#disputes, or `POST https://www.anchorterminal.com/api/v1/contact` with `"kind": "dispute"`). Disputes are answered in public, and the listing is checked again by the same checklist. Paying for an audit or a listing claim changes nothing here.
What we couldn't check
- Price per quota unit above the 80,000,000-a-day threshold, and the date charging starts
- Which scopes the MCP preview's label, trash and spam tools need, given the setup guide configures only
gmail.readonlyandgmail.compose - Why the live MCP server returns 23 tools while the reference page lists 10 and the setup guide 9
- Whether gmail.googleapis.com still accepts an access token in the query string. We read the discovery document and the OAuth guide and made no authenticated call. The same parameters appear for other Google APIs, and the Drive and Calendar dossiers didn't take this deduction
- Whether failures of the Gmail API alone count as downtime under the Workspace SLA, which measures the user web interface
- What a CASA security assessment costs
- unchecked: PyPI weekly downloads for google-api-python-client (pypistats.org answered 429 on 8 October)
- unchecked: the text of Google's privacy policy (the page answered 200 but we didn't read it) and a retention statement for personal accounts' data reached through the API
- unchecked: replies on Google's public issue tracker for the Gmail API, and the pass state of CI in google-api-nodejs-client
- unchecked: user caps and token lifetimes for unverified apps in testing, which sit in the OAuth verification help centre pages we didn't load
- unchecked: the daily sending limit for personal gmail.com accounts, which the Workspace limits page doesn't give
Sources 30
- Gmail API overview developers.google.com · seen 2026-10-08
- usage limits, per-method quota units and backoff developers.google.com · seen 2026-10-08
- OAuth scopes and their sensitivity classes developers.google.com · seen 2026-10-08
- restricted scope verification and security assessment developers.google.com · seen 2026-10-08
- Workspace user data and developer policy, approved Gmail uses and limited use developers.google.com · seen 2026-10-08
- error reference developers.google.com · seen 2026-10-08
- push notifications developers.google.com · seen 2026-10-08
- synchronisation guide developers.google.com · seen 2026-10-08
- batch requests developers.google.com · seen 2026-10-08
- release notes developers.google.com · seen 2026-10-08
- MCP server setup guide and prompt-injection warning developers.google.com · seen 2026-10-08
- MCP server reference developers.google.com · seen 2026-10-08
- MCP tools/list response, 23 tools gmailmcp.googleapis.com · seen 2026-10-08
- MCP security and Model Armor developers.google.com · seen 2026-10-08
- standardised model for agent tools and APIs developers.google.com · seen 2026-10-08
- Gmail v1 discovery document, revision 20260928 gmail.googleapis.com · seen 2026-10-08
- OAuth guide, access token in a query string developers.google.com · seen 2026-10-08
- Workspace status incidents feed google.com · seen 2026-10-08
- Workspace SLA workspace.google.com · seen 2026-10-08
- Workspace sub-processors workspace.google.com · seen 2026-10-08
- SOC 2 reports for Google Cloud and Workspace cloud.google.com · seen 2026-10-08
- Cloud Data Processing Addendum cloud.google.com · seen 2026-10-08
- OAuth log events knowledge.workspace.google.com · seen 2026-10-08
- Gmail sending limits in Google Workspace support.google.com · seen 2026-10-08
- Google APIs Terms of Service developers.google.com · seen 2026-10-08
- security.txt google.com · seen 2026-10-08
- llms.txt (404) developers.google.com · seen 2026-10-08
- npm latest for @googleapis/gmail registry.npmjs.org · seen 2026-10-08
- Gmail client changelog github.com · seen 2026-10-08
- PyPI, google-api-python-client pypi.org · seen 2026-10-08
Probe metrics
Not measured yet. Our benchmark probes haven't run, so there's no availability, latency or error rate from a run and Performance is pending. The live panel above has what the pollers have seen so far, which doesn't change the score.
Pricing & changes
Free Free All standard use is at no extra cost, and a free Google account and Cloud project are enough to start, with no card or contract. Limits are 1,200,000 quota units a minute per project, 6,000 a minute per user and a daily threshold of 80,000,000 units per project. Google says use above the daily threshold is planned to be charged to the Cloud billing account later in 2026, with details and at least 90 days' notice still to come (https://developers.google.com/workspace/gmail/api/reference/quota). A security assessment for restricted scopes is paid to a third-party assessor, at a cost Google's pages don't state.
Recent changes
- github googleapis/google-api-nodejs-client agentidentity-v3.1.0 → agentidentity-v3.2.0
Follow them as a feed at /feeds/tools/gmail-api.xml, or this listing's score history at history.json.
Connect
First request
curl "https://gmail.googleapis.com/gmail/v1/users/me/messages?q=is:unread&maxResults=5" \
-H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN"
MCP client configuration
{
"mcpServers": {
"gmail": {
"oauth": {
"clientId": "OAUTH_CLIENT_ID",
"clientSecret": "OAUTH_CLIENT_SECRET"
},
"serverUrl": "https://gmailmcp.googleapis.com/mcp/v1"
}
}
}
Through letme picks today, calling later
GET https://letme.dev/gmail-api
letme.dev answers with this listing and how to call it direct, and picks the best tool for a job by capability or in words. Calling through letme (one key, the vendor's own price) comes later. Nothing on letme.dev is for people to look at; this page explains it.
Compare with
Nylas Email API AEmailEngine BBOutlook Mail (Microsoft Graph) BUnipile C
Head to head EmailEngine vs Gmail API · Gmail API vs Nylas Email API · Gmail API vs Outlook Mail (Microsoft Graph) · Gmail API vs Unipile
Machine-readable
| Similar tool | Grade | Score | Shared capabilities | x402 |
|---|---|---|---|---|
| Nylas Email API Nylas | A | 78.7 | mailbox.read mailbox.search mailbox.send mailbox.drafts mailbox.sync | no |
| EmailEngine Postal Systems OÜ | BB | 71.4 | mailbox.read mailbox.search mailbox.send mailbox.drafts mailbox.sync | no |
| Outlook Mail (Microsoft Graph) Microsoft | B | 66.3 | mailbox.read mailbox.search mailbox.send mailbox.drafts mailbox.sync | no |
| Unipile UNIPILE SAS | C | 58.4 | mailbox.read mailbox.search mailbox.send mailbox.drafts mailbox.sync | no |
Machine-readable
- JSON
/api/v1/tools/gmail-api.json· historyhistory.json· badge/badges/gmail-api.svg· changes feed/feeds/tools/gmail-api.xml - Markdown
/tools/gmail-api.md· slim/tools/gmail-api.min.md(or sendAccept: text/markdown) - Fix list
/fixes/gmail-api.md·/fixes/gmail-api.json - From a terminal
anchor tool gmail-api --md(the CLI) · over MCPget_tool {"slug": "gmail-api"}at/mcp, no key - Directory index
/api/v1/tools.json· site index/llms.txt
Verify this listing
For the vendorIs this your product? Link to this page from your own site or README, then tell us where. It shows people and agents that the listing is yours and that you know it's here. It never changes a grade, rank or review.
-
Add the badge or a link
On a light page On a dark page <a href="https://www.anchorterminal.com/tools/gmail-api"><img src="https://www.anchorterminal.com/badges/gmail-api.svg" alt="Gmail API on Anchor Terminal" height="20"></a>[](https://www.anchorterminal.com/tools/gmail-api)<a href="https://www.anchorterminal.com/tools/gmail-api">Gmail API on Anchor Terminal</a>It counts on a page on google.com or one of its subdomains, or the README of github.com/googleapis/google-api-nodejs-client.
-
Tell us where it is
We read it once now and again every week. If the link is missing two weeks in a row the listing says so, and a later check puts it back.
Agents send the same to POST /api/v1/verify as {"slug": "gmail-api", "url": "…"}, or call the verify_listing tool at /mcp. Ten checks an hour from one address. What we check.
