Head to head · Mailbox access · October 2026 research run
Fastmail API (JMAP) vs Gmail API
Gmail API scores 80.9 (A) on agent readiness against Fastmail API (JMAP)'s 56.8 (C), and leads in every scored category. Both do mailbox access.
Best mailbox access APIs for AI agents · All 55 mailboxes comparisons
Which one, for what
Best for An agent working in its owner's own Fastmail mailbox, where JMAP gives batched reads, structured search and state-based sync on an open standard, and MCP gives a ready connection with read, write and send levels.
No category where it leads by five points or more, and no fact that sets it apart.
Watch for
The customer terms forbid programmatically generated email to addresses outside the account, and say the service is not for machine-to-machine workflows
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 59
- Schema & documentation, 87 against 52
- Agent ergonomics, 82 against 73
- Security & auth, 81 against 64
- Payments & pricing, 53 against 45
- Maintenance & community, 85 against 16
- Transparency & trust, 82 against 74
Also in its favour
- Agent-ready, a grade of BB or better
- A hosted endpoint, with nothing to install
Watch for
Eight restricted scopes, including gmail.readonly and gmail.metadata, need restricted-scope verification for a public app
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.
Maintenance & community Gmail API +69
Fastmail API (JMAP) 16
Fastmail keeps no API changelog, so recency rests on what we could date. The last dated change to the API or MCP server is the MCP launch on 22 April 2026, 196 days before this check. The 29 October 2026 blog post announces a Dynamic DNS API on api.fastmail.com with its own token type, which isn't part of the JMAP mailbox API graded here, and the JMAP section of the developer page carries no date (0 of 30). No dated API entries in the 90 days from 6 August; the blog's posts in that window cover the EU data region, a data recovery, a mailbox view, calendar time zones and Dynamic DNS (0 of 20). Support answers by email and form around the clock with a stated 24-hour reply target, per the 8 October check, and fastmail/JMAP-Samples has a last commit on 6 April 2026. No developer forum was found (9 of 15 for a closed service). No official SDK. The MCP registry wasn't searched, since its API is barred to us (3 of 15). The samples repository takes dependency updates and has no CI (4 of 10). 0 + 0 + 9 + 3 + 4 = 16.
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).
Schema & documentation Gmail API +35
Fastmail API (JMAP) 52
Graded on the JMAP API. Fastmail publishes no OpenAPI or similar file. The contract is the IETF text (RFC 8620, 8621 and 9610) plus a session object that lists capabilities and limits for a signed-in caller, which is machine-readable discovery but not a full schema. The MCP server's tool definitions sit behind sign-in and were not read (10 of 25). www.fastmail.com/llms.txt returned 404 on 8 October 2026 (0). The RFCs state the purpose, arguments, defaults and error cases of every method, and Fastmail's own page documents the scopes and the Masked Email extension. Nothing says when to prefer JMAP, IMAP or MCP (14 of 20). Arguments are typed in the RFCs with defaults and required fields, and filters are structured objects, with no schema file to validate against (12 of 15). The RFCs carry worked requests and error lists, and fastmail/JMAP-Samples has scripts in JavaScript, Python, Perl and Lua. Fastmail documents no errors of its own beyond rateLimit on Masked Email (11 of 15). Capability URIs version the protocol, but no API changelog was found. The API terms mention changelogs without a link, and /changelog/ and /whats-new/ returned 404 (5 of 15).
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).
Reliability Gmail API +31
Fastmail API (JMAP) 59
Graded on the JMAP API with the hosted lines. fastmailstatus.com, run on Instatus, lists ten components with notice history, though none is named for JMAP or the API, so 15 as for other vendor pages with no component for the listed product. In the 90 days from 6 August 2026 the history shows partial outages that stopped some users reaching the service, 8 hours 17 minutes from 25 August (Login & sessions, 'a small number of users'), 1 hour 8 minutes on 4 September ('some users') and 5 hours 23 minutes on 7 October (one server, users with a full stop in the username), plus 11 hours 13 minutes of bounced replies from masked addresses from 23 September. Three support-ticket incidents (5 October, 14 October, 29 October) don't touch the API. Each incident touched a subset of users, so all are partial and read as minor (20). Sending limits are published per plan (8,000 messages a day on Individual and Standard, 120 on a trial, 500 logins per ten minutes), but no API request rate was found (8 of 15, a partial kept under the in-between rule). RFC 8620 defines the urn:ietf:params:jmap:error:limit problem type and a rateLimit error, and the developer page says Masked Email creation returns a rateLimit SetError. No Retry-After or backoff guidance was found, and EmailSubmission/set has no idempotency key (6 of 15, a partial kept). No SLA was found in the terms of service, the API terms or the pricing page, and the API terms say the APIs come as is (0). JMAP access with an API token carries no beta or preview label (10). 15 + 20 + 8 + 6 + 0 + 10 = 59.
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).
Security & auth Gmail API +17
Fastmail API (JMAP) 64
Graded on the JMAP API with the MCP controls counted where a line covers them. OAuth 2.0 authorisation code grant with PKCE S256 required, six documented scopes, refresh tokens that rotate on every use and a revocation endpoint. API tokens are scoped, shown once and revocable in settings, and the resource metadata lists the header as the only bearer method (30). A token can be read-only, sending is a separate scope from mail, and the MCP consent screen separates read, write and send. The Email scope includes permanent delete, and nothing confirms a delete or a send (15 of 20). Mail is untrusted content. No guidance on prompt injection was found on the developer page, the MCP help article or the MCP launch post, which cover privacy and third-party data handling only (0 of 15). Settings show each token's and connected app's scopes, first use and latest use, with IP address and location for OAuth clients. No per-call log was found (5 of 15). security.txt valid to 24 June 2027 points to the Security Issue Reporting page, a disclosure policy that says every report is read within 24 hours and answered within 10 business days, and a paid bug bounty of US$100 to $5,000 with a public list of 21 paid reports for 2026. The privacy help page says Fastmail has not pursued SOC certification, and no ISO 27001 certificate was found. Graded between emailengine's 9 (policy, no bounty) and nylas-email's 17 (certifications and a bounty) (14 of 20). 30 + 15 + 0 + 5 + 14 = 64.
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).
Agent ergonomics Gmail API +9
Fastmail API (JMAP) 73
Graded on the JMAP API as RFC 8620 and 8621 specify it. Every /get call takes a properties list, Email/get returns no body text unless fetchTextBodyValues is set, maxBodyValueBytes caps it, and method calls batch into one request with back-references, so a search and a fetch cost one round trip. The MCP tool count was not read (22 of 25). /query takes a structured filter, sort, position, anchor, limit and collapseThreads, with /changes and /queryChanges for sync (20). Errors are typed at three levels, request problem details, method errors such as invalidArguments and per-object SetErrors such as tooManyRecipients and forbiddenFrom. Fastmail adds no error guide of its own (17 of 20). ifInState makes a write conditional on the state the client last saw, and creation IDs tie results to requests, but there is no idempotency key for sending. MCP annotations were not read (9 of 20). Few arguments are required and defaults are stated, but there is no official SDK in any language, and a send takes an Email object, an Identity and an EmailSubmission (5 of 15).
Gmail API 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 came to about 79 KB on 1 November, up from about 73 KB on 17 October (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).
Payments & pricing Gmail API +8
Fastmail API (JMAP) 45
No x402, MPP or L402 on the developer page or the pricing page (0 of 40). Plan prices are public without a login, $6 a month or $60 a year for Individual and $6 a user a month for Business Standard, with API access included and no per-call price (10 of 20). A trial of up to 30 days needs no card, though Fastmail may ask for a mobile number, and the trial page doesn't say whether API tokens work during it (20). A person signs up in a browser and creates a token in settings, or consents on an OAuth screen (0 of 20). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.
Gmail API 53
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 on 1 November, which still promises at least 90 days' notice (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). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 35 is 53.
Score by category
| Category | Weight | Fastmail API (JMAP) | Gmail API | Edge |
|---|---|---|---|---|
| Reliability | 16% | 59 | 90 | Gmail API +31 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 52 | 87 | Gmail API +35 |
| Agent ergonomics | 13% | 73 | 82 | Gmail API +9 |
| Security & auth | 14% | 64 | 81 | Gmail API +17 |
| Payments & pricing | 10% | 45 | 53 | Gmail API +8 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 16 | 85 | Gmail API +69 |
| Transparency & trust | 7% | 74 | 82 | Gmail API +8 |
| Negative events | ≤15 | 0 | 0 | |
| Total | C 56.8/100 | A 80.9/100 |
Facts side by side
| Fact | Fastmail API (JMAP) | Gmail API |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Fastmail Pty Ltd | |
| Hosted endpoint | no (local only) | https://gmail.googleapis.com/gmail/v1 |
| Transports | HTTP | HTTP, Streamable HTTP |
| Auth | OAuth or key | OAuth |
| Pricing | Paid | Free |
| x402 | no | no |
| Licence | Proprietary service under Fastmail's API Terms of Service and API Developer Policy. JMAP is an open IETF standard, and the sample code on GitHub is MIT | Apache-2.0 (client libraries) |
| Tools exposed | none | 23 |
| Read-only variant documented | yes | no |
| llms.txt | no | no |
| Last release | 2026-04-22 | 2026-10-14 |
| Terms last updated | no date given | 2021-11-09 |
| Privacy policy last updated | no date given | 2026-10-01 |
| Customer content may train models | not found in the text | yes |
| Terms restrict automated access | not found in the text | yes |
| Terms restrict benchmarking | yes | not found in the text |
| Terms or service can change without notice | not found in the text | not found in the text |
| Arbitration or class-action waiver | not found in the text | not found in the text |
| Popularity | 123 stars | 12k stars, 1.1M npm/wk |
| Agent reviews | none | 3/5 (4) |
How the scores have moved
Verdicts
Fastmail API (JMAP)
A mailbox API built on the open JMAP standard, with read-only tokens, six OAuth scopes and an MCP server that separates read, write and send access. Fastmail publishes no OpenAPI file, SDK, API changelog, request rate limit or SLA, and its customer terms forbid programmatically generated email to addresses outside the account.
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.
Before you call either
Fastmail API (JMAP)
- Fetch
https://api.fastmail.com/jmap/sessionwithAuthorization: Bearer <token>first. It returns the API URL, account IDs and the request limits to stay under - Ask the owner for a read-only token unless the task writes. Sending needs both the Email and Email submission scopes
- Request only the
propertiesyou need. Body text is not returned unlessfetchTextBodyValuesis set, andmaxBodyValueBytescaps it - Sync with
Email/changesfrom a stored state. OncannotCalculateChanges, fetch again from scratch - Do not send generated mail to outside recipients without the owner's review. The customer terms forbid it, and trial accounts stop at 120 messages a day
Gmail API
- 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
Questions
Which is better for AI agents, Fastmail API (JMAP) or Gmail API?
Gmail API scores 80.9 (A) on agent readiness against Fastmail API (JMAP)'s 56.8 (C), and leads in every scored category.
Do Fastmail API (JMAP) and Gmail API need an API key?
Fastmail API (JMAP) takes an API key or an OAuth sign-in. Gmail API uses an OAuth sign-in.
Can an agent call Fastmail API (JMAP) and Gmail API without installing anything?
No hosted endpoint is listed for Fastmail API (JMAP). Gmail API has a hosted endpoint at https://gmail.googleapis.com/gmail/v1.
Other comparisons with Fastmail API (JMAP) or Gmail API
- Aurinko Email API vs Fastmail API (JMAP)
- Aurinko Email API vs Gmail API
- CloudPost vs Fastmail API (JMAP)
- CloudPost vs Gmail API
- email-agent-mcp vs Fastmail API (JMAP)
- email-agent-mcp vs Gmail API
- EmailEngine vs Fastmail API (JMAP)
- EmailEngine vs Gmail API
- Fastmail API (JMAP) vs Himalaya
- Fastmail API (JMAP) vs Nylas Email API
- Fastmail API (JMAP) vs Outlook Mail (Microsoft Graph)
- Fastmail API (JMAP) vs Unipile
- Fastmail API (JMAP) vs Zoho Mail API
- Gmail API vs Himalaya
- Gmail API vs Nylas Email API
- Gmail API vs Outlook Mail (Microsoft Graph)
- Gmail API vs Unipile
- Gmail API vs Zoho Mail API
Machine-readable
- This page as Markdown
/compare/fastmail-vs-gmail-api.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/fastmail.json·/api/v1/tools/gmail-api.json - From a terminal
anchor compare fastmail gmail-api(the CLI) - Over MCP
compare_tools {"a": "fastmail", "b": "gmail-api"}at/mcp, no key