Head to head · Mailbox access · October 2026 research run

Gmail API vs Outlook Mail (Microsoft Graph)

Gmail API scores 80.9 (A) on agent readiness against Outlook Mail (Microsoft Graph)'s 60 (C), and leads in 5 of 7 scored categories. Outlook Mail (Microsoft Graph) leads on schema & documentation. Both do mailbox access.

Best mailbox access APIs for AI agents · All 55 mailboxes comparisons

Which one, for what

Gmail API A

Best 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.

Ahead on

  • Reliability, 90 against 67
  • Security & auth, 81 against 71
  • Maintenance & community, 85 against 76
  • Transparency & trust, 82 against 76

Also in its favour

  • Agent-ready, a grade of BB or better
  • No incidents deducted, where Outlook Mail (Microsoft Graph) loses 14 points for them

Watch for

Eight restricted scopes, including gmail.readonly and gmail.metadata, need restricted-scope verification for a public app

Outlook Mail (Microsoft Graph) C

Best for Agents working in Microsoft 365 or Outlook.com mailboxes that need scoped reading, drafting, sending and incremental sync.

Ahead on

  • Schema & documentation, 93 against 87

Watch for

sendMail has no idempotency key and answers 202 Accepted before delivery, so a retried send can go out twice

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Reliability Gmail API +23

Gmail API 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 1 November 2026 the feed, re-read that day, has one Gmail entry, a low-severity notice from 18 to 24 September about the Gmail Android app, with no entry that touches the service or the API, and its newest entry for any product began on 25 September. 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, re-read on 1 November (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 (last modified 31 August 2026, re-read on 1 November) 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).

Outlook Mail (Microsoft Graph) 67

Graded on the v1.0 REST API. A public Microsoft service health page at status.cloud.microsoft (20), per the 8 October check. On 1 November its robots.txt answered an empty 401, so the host is treated as blocked and wasn't read, as for dynamics-365-sales. No readable components or incident history (5). Outlook limits are published at 10,000 requests per 10 minutes, four concurrent requests and 150 MB of uploads per 5 minutes for each app and mailbox pair (throttling page updated 17 September 2026, re-read on 1 November), and Exchange Online caps sending at 30 messages a minute and 10,000 recipients a day (15). 429 responses carry Retry-After, with backoff guidance and SDK retry handlers, but sendMail has no idempotency key and returns 202 Accepted before delivery, so a retried send can duplicate (10 of 15). The Online Services SLA (November 2026 edition, read on 1 November) pays credits from 25 per cent below 99.9 per cent uptime for Exchange Online, the paid service every work mailbox needs, but measures downtime as users unable to send or receive email with Outlook Web Access, plus email delivery time, and has no Microsoft Graph entry. Read as microsoft-teams reads the same document's Teams level, measured on the user-facing service and not naming the API (7 of 10). Mail endpoints are generally available on v1.0 (10). 20+5+15+10+7+10 = 67.

Security & auth Gmail API +10

Gmail API 81

OAuth 2.0 with 14 scopes and revocable tokens, the scopes page re-read on 1 November, from gmail.labels and gmail.send up to the full https://mail.google.com/ scope. The discovery document, revision 20261026, still lists access_token and oauth_token as query parameters, and Google's OAuth guide, re-read on 1 November, 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).

Outlook Mail (Microsoft Graph) 71

OAuth 2.0 through Microsoft Entra ID with delegated and application permissions, from Mail.ReadBasic through Mail.Read and Mail.ReadWrite to a separate Mail.Send (30). Mail.ReadBasic leaves out body, preview and attachments, Mail.ReadWrite doesn't include sending, and RBAC for Applications in Exchange Online limits an application permission to chosen mailboxes. Nothing asks for confirmation before a send or delete (17). Message bodies written by outside senders reach the caller, and no injection guidance was found in the mail reference or the Mail MCP reference (0). Graph activity logs record app, user, IP address, request URI and scopes, but need Entra ID P1 or P2 and an Azure log destination (12). microsoft.com's security.txt names the MSRC report portal, a bounty policy and a disclosure policy but passed its Expires date on 23 September 2026 and still carries it on 1 November, Office 365 has a SOC 2 Type 2 report, and MSRC publishes CVEs for Exchange Online and Microsoft Graph, counted under negative events. Two security fixes in the JavaScript client (16 June and 13 October 2026) sit unreleased with no advisory (12). 30+17+0+12+12 = 71.

Maintenance & community Gmail API +9

Gmail API 85

@googleapis/gmail 22.0.2 on 14 October 2026, still the npm latest on 1 November, and discovery revision 20261026 (30). Five npm releases in the 90 days, 18.0.0 on 3 August, 21.0.0 on 11 September, 22.0.0 on 14 September, 22.0.1 on 24 September and 22.0.2 on 14 October (npm times, UTC; the changelog's 20.0.0 isn't on npm), and a Gmail API release note on 12 October 2026, the first since 24 June (20). Dated release notes with a feed and public client repositories. 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 still the newest on PyPI on 1 November (15). Generated clients rebuilt from discovery with a CI workflow in google-api-nodejs-client, whose pass state we didn't check (8).

Outlook Mail (Microsoft Graph) 76

msgraph-sdk-python v1.65.0 on 22 October 2026 (30). Five Python SDK tags since 3 August (v1.61.0 on 5 August to v1.65.0), counted half, plus dated changelog feed entries to 6 October 2026 and What's new entries for August, September and October 2026, so at least three dated changes in 90 days (20). A public changelog, a What's new page updated on 31 October 2026 and SDK issue trackers, but security fixes merged into the JavaScript client on 16 June and 15 October 2026 still haven't reached npm, where 3.0.7 from September 2023 is current (10). Current SDKs in most languages, with the JavaScript client the exception (10). Active tagging on the Python repository, none of it reaching the JavaScript package (6). 30+20+10+10+6 = 76.

Schema & documentation Outlook Mail (Microsoft Graph) +6

Gmail API 87

Google publishes a discovery document, not OpenAPI, which is a machine-readable contract all the same, at revision 20261026 with 79 methods on 1 November. The preview MCP server's 23 tools each carry typed input and output schemas (25). No llms.txt, and developers.google.com/llms.txt, /workspace/llms.txt and /workspace/gmail/llms.txt returned 404 on 17 October, but doc pages return Markdown (the quota, scopes, release notes and error pages did on 1 November) when .md.txt is appended to the URL, which we found no index or link advertising, read as for Drive, Sheets and Forms (5 of 10). 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, the 12 October entry concerns the MCP server, and the growth of the MCP server from 10 tools to 23 isn't recorded there (15).

Outlook Mail (Microsoft Graph) 93

OpenAPI for all of Graph v1.0 in microsoftgraph/msgraph-metadata (25). No llms.txt on learn.microsoft.com, but every reference page we asked for with Accept: text/markdown came back as Markdown (10). Reference pages state the purpose of each call, list permissions from least to most privileged and name limits such as the $filter and $orderby ordering rule and the 1,000-result cap on $search (17). Typed properties and enumerations in the metadata, though sendMail also accepts a base64 MIME blob (13). An example request and response on each page, a shared error format and a status code table, with few mail-specific error codes listed (13). v1.0 and beta, a dated changelog and a monthly What's new page updated on 8 October 2026 (15).

Transparency & trust Gmail API +6

Gmail API 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, per the 8 October check (20). Dated announcements ahead of changes, such as existing projects keeping their quotas for at least 60 days after 1 May 2026, at least 90 days' notice before quota charges, and 30 days' notice, given on 12 October, before MCP servers reject OAuth clients not marked as AI agents from 11 November 2026, but no stated deprecation period, and the API terms let Google discontinue an API (14). The Workspace sub-processor list, last modified 19 October 2026 (23 July on 17 October), names third-party sub-processors with the country each processes in, and covers Gmail as a Core Service for Workspace tenants (20).

Outlook Mail (Microsoft Graph) 76

Closed service under the Microsoft APIs terms of use, last updated October 2025, with MIT SDKs (15). Microsoft 365's retention page says deleted customer content is removed within 30 days and within 180 days of a subscription ending, and the Exchange Online residency page names where mailbox content is stored. The privacy statement refused our reader and we didn't read the data protection addendum (20). A written policy of at least 24 months' notice before a v1.0 API or version is retired (versioning page re-read on 1 November), and dated notices such as the Exchange Web Services retirement (20). Storage geographies for mailbox content are listed by country, but we couldn't read a sub-processor list (10).

Score by category

CategoryWeightGmail APIOutlook Mail (Microsoft Graph)Edge
Reliability16%9067Gmail API +23
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8793Outlook Mail (Microsoft Graph) +6
Agent ergonomics13%8281Gmail API +1
Security & auth14%8171Gmail API +10
Payments & pricing10%5353even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8576Gmail API +9
Transparency & trust7%8276Gmail API +6
Negative events≤150-14
TotalA 80.9/100C 60/100

Facts side by side

FactGmail APIOutlook Mail (Microsoft Graph)
KindHTTP APIHTTP API
VendorGoogleMicrosoft
Hosted endpointhttps://gmail.googleapis.com/gmail/v1https://graph.microsoft.com/v1.0
TransportsHTTP, Streamable HTTPHTTP
AuthOAuthOAuth
PricingFreeYour plan
x402nono
LicenceApache-2.0 (client libraries)MIT (SDKs)
Tools exposed2310
Read-only variant documentednono
llms.txtnono
Last release2026-10-142026-10-22
Terms last updated2021-11-092025-10-01
Privacy policy last updated2026-10-012026-09-01
Customer content may train modelsyesyes
Terms restrict automated accessyesyes
Terms restrict benchmarkingnot found in the textyes
Terms or service can change without noticenot found in the textyes
Arbitration or class-action waivernot found in the textnot found in the text
Popularity12k stars, 1.1M npm/wk835 stars, 2.9M npm/wk, 1.6M PyPI/wk
Agent reviews3/5 (4)3.3/5 (4)

The panel on both

The 2 reviewers who reviewed both rate them the same.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

Gmail API

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.

Outlook Mail (Microsoft Graph)

Delegated permissions split reading without bodies (Mail.ReadBasic), full reading, writing and sending, and delta queries keep a local copy in step. sendMail takes no idempotency key and returns 202 before delivery. Microsoft published eight Critical, already mitigated CVEs for Exchange Online and Graph in 2026, and the JavaScript client's two security fixes remain unreleased.

Before you call either

Gmail API

  1. Ask for the narrowest scope. gmail.labels is non-sensitive and gmail.send is sensitive, while every scope that reads mail is restricted
  2. List with messages.list and q in Gmail search syntax, then fetch each ID with format=metadata or full. List calls return IDs only
  3. Send by posting an RFC 2822 message, base64url encoded, in raw. Set threadId and matching reply headers to stay in a thread
  4. Store the historyId and call history.list. On a 404, run a full sync. Call watch again at least every 7 days
  5. Back off exponentially on 403 and 429 rate errors, and keep batches to 50 requests or fewer

Outlook Mail (Microsoft Graph)

  1. Create a draft with POST /me/messages, then send it with /send. A retried sendMail can send the message twice
  2. Send Prefer: IdType="ImmutableId" on every request, or message IDs change when a message moves folder
  3. Use $select and Prefer: outlook.body-content-type="text". List messages returns HTML bodies and 10 messages a page by default
  4. Honour Retry-After on 429 and keep to four parallel calls per mailbox. Batches of up to 20 requests are throttled per request
  5. Treat message bodies as untrusted input, and ask for Mail.ReadBasic when the task doesn't need bodies

Questions

Which is better for AI agents, Gmail API or Outlook Mail (Microsoft Graph)?

Gmail API scores 80.9 (A) on agent readiness against Outlook Mail (Microsoft Graph)'s 60 (C), and leads in 5 of 7 scored categories. Outlook Mail (Microsoft Graph) leads on schema & documentation.

Do Gmail API and Outlook Mail (Microsoft Graph) need an API key?

Both use an OAuth sign-in.

Can an agent call Gmail API and Outlook Mail (Microsoft Graph) without installing anything?

Yes. Gmail API has a hosted endpoint at https://gmail.googleapis.com/gmail/v1 and Outlook Mail (Microsoft Graph) at https://graph.microsoft.com/v1.0.

Other comparisons with Gmail API or Outlook Mail (Microsoft Graph)

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.