Head to head · Mailbox access · October 2026 research run

Gmail API vs Unipile

Gmail API scores 80.9 (A) on agent readiness against Unipile's 63.8 (B), and leads in 6 of 7 scored categories. Unipile leads on payments & pricing. 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 72
  • Schema & documentation, 87 against 77
  • Agent ergonomics, 82 against 73
  • Security & auth, 81 against 42
  • Maintenance & community, 85 against 79
  • Transparency & trust, 82 against 72

Also in its favour

  • Agent-ready, a grade of BB or better
  • No incidents deducted, where Unipile loses 3 points for them

Watch for

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

Unipile B

Best for A product that needs one API over Gmail, Outlook and IMAP together with LinkedIn or WhatsApp messaging, priced per account.

Ahead on

  • Payments & pricing, 60 against 53

Also in its favour

  • Free to start without a card

Watch for

A v1 access token reaches every connected account. Scoped keys and Unipile's own documented rate limits exist only in the v2 beta

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.

Security & auth Gmail API +39

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

Unipile 42

One access token in X-API-KEY reaches every connected account, with no scopes in v1. End users connect Gmail and Outlook through OAuth on the customer's own app. The MCP page (updated 30 October 2026) no longer says headers can be passed as query parameters, and no documented query-string route for the token was found, so the 5 taken off on 8 October is restored (20). Google's gmail.modify scope can be left out and hosted auth accepts custom scopes, but there is no read-only token or confirmation step. Scoped keys are in the v2 beta only (6). Mail bodies are untrusted content and no injection guidance was found in the v1 docs. The v2 MCP page tells users to give the client a scoped key (2). The security page mentions logged and auditable internal access. No per-request log for the operator was found in the v1 docs (2). SOC 2 Type II with the report on request, annual third-party penetration tests and Google's CASA Tier 2, with no security.txt (404 on 4 November), disclosure policy or bug bounty found (12).

Reliability Gmail API +18

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

Unipile 72

Graded on the v1 REST API with the hosted lines. Status page at status.unipile.com on OpenStatus with components per provider and per API cluster and an events history (20). From 6 August to 4 November 2026 the history shows LinkedIn Classic Search returning incomplete results from 9 to 17 August, WhatsApp account connection unavailable for 3 hours on 17 August, the API-4 cluster unavailable for about 70 minutes on 20 August, v2 beta real-time sync degraded on 24 September, Instagram chat listing failing for 20 hours on 7 and 8 October, temporary 503 answers for part of API-4's requests during the 1 November migration, and the api46 server down for customers hosted on it from 19:38 to 23:13 UTC on 3 November. Each hit one provider, one cluster or one server, so minor only, as this run reads partial incidents (20). The 21 and 30 July platform incidents left the window. Unipile states no request limit of its own on v1 ("We don't enforce any limits on our side"), and the provider limits page gives provider figures such as 500 emails a day for Gmail and 5,000 recipients a day for Microsoft 365. Figures for limits other than the product's own take 10, as openai-decisions-api (10). On provider routes such as LinkedIn invitations, 429 is typed errors/too_many_requests with "Please try again later" and an optional retry_after field, while the mail references list no 429 and no backoff guidance was found. Sends accept an Idempotency-Key that returns the original result on a retry, and webhooks retry five times. Safe retries on the main write with partial 429 guidance take 12, as middesk (12). The terms say SLA commitments aren't in the standard offering and need a custom plan, with no SLA published for any tier (0). v1 is generally available (10). 20+20+10+12+0+10 = 72.

Schema & documentation Gmail API +10

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

Unipile 77

OpenAPI 3.0 spec with 94 operations, served without a key, and embedded in each reference page (25). llms.txt and a Markdown copy of every page (10). Operation descriptions are one line, such as "Returns a list of emails", though parameter notes cover provider differences (10). Query parameters are typed and limit is bounded at 1 to 250, but the send and draft bodies are multipart with nested objects the reference marks as not working in the interactive docs (10). Guides carry curl and SDK examples, and each status code lists typed errors (12). v1 is in the path and a changelog exists, with eight entries since 2024 and the latest on 13 October 2026 (10).

Transparency & trust Gmail API +10

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

Unipile 72

Closed service with public terms under French law. The SDK and MCP repositories carry MIT licence files (15). The privacy policy of 28 September 2026 gives storage by API version and channel, deletion within 30 days of termination and a DPA on request. The security page says no data leaves the EU while the policy lists proxy sub-processors in the United States and Singapore, so the statements don't fully agree. A new FAQ on the security page says the non-EU proxies are optional encrypted transit points that can't read the data, while the privacy policy still lists them as sub-processors under transfer safeguards (20). The docs say v1 has no deprecation date, and no deprecation policy was found. The terms let changes take effect on publication (6). Eight sub-processors listed with country, data location and transfer safeguard, and hosting named as Scaleway and OVH in France (18).

Agent ergonomics Gmail API +9

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

Unipile 73

meta_only drops bodies from mail lists and limit sizes the page. The MCP server has 5 compact tools (20). Cursor pagination, a full-text search and filters for folder, sender, recipient, thread and date (18). Errors carry title, detail and a typed type, with no retry guidance per type (14). Idempotency-Key on send only, not on drafts or updates, held at 14 as for a key on one route (knock 16, magicbell 14). The 8 October reading of the MCP annotations came from a tools/list call to the server, which this run treats as a probe, so it is dropped as evidence (14). Only account_id is required to list mail. The v1 SDK is Node only, and the Python client is for the v2 beta (7).

Payments & pricing Unipile +7

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.

Unipile 60

No x402, MPP or L402 (0). Per-account prices are public, from 55 dollars a month for up to 10 accounts down to 3.50 dollars an account above 5,000, with no charge per request (20). A 7-day trial with no card (20). A person has to sign up in a browser and connect each mailbox (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.

Score by category

CategoryWeightGmail APIUnipileEdge
Reliability16%9072Gmail API +18
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8777Gmail API +10
Agent ergonomics13%8273Gmail API +9
Security & auth14%8142Gmail API +39
Payments & pricing10%5360Unipile +7
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8579Gmail API +6
Transparency & trust7%8272Gmail API +10
Negative events≤150-3
TotalA 80.9/100B 63.8/100

Facts side by side

FactGmail APIUnipile
KindHTTP APIHTTP API
VendorGoogleUNIPILE SAS
Hosted endpointhttps://gmail.googleapis.com/gmail/v1https://developer.unipile.com/mcp?branch=v1.0
TransportsHTTP, Streamable HTTPHTTP, Streamable HTTP
AuthOAuthAPI key
PricingFreePaid
x402nono
LicenceApache-2.0 (client libraries)Proprietary service under Unipile's terms of use. The v1 Node SDK repository and the unipile-mcp repository carry an MIT licence file
Tools exposed235
Read-only variant documentednono
llms.txtnoyes
MCP registrynot listedcom.unipile/unipile-mcp
Last release2026-10-142026-10-13
Terms last updated2021-11-09no date given
Privacy policy last updated2026-10-012026-09-28
Customer content may train modelsyesnot found in the text
Terms restrict automated accessyesnot found in the text
Terms restrict benchmarkingnot found in the textnot found in the text
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/wk48 stars, 83k npm/wk
Agent reviews3/5 (4)none

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.

Unipile

One REST API covers Gmail, Outlook, IMAP, calendars, LinkedIn and WhatsApp, with an idempotency key on sends and a public OpenAPI spec. The v1 access token reaches every connected account, scoped keys exist only in the v2 beta, and no SLA is published. LinkedIn Classic Search limits changed in August 2026 with notice only on the day.

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

Unipile

  1. Take the DSN (host and port) from the dashboard. Each account has its own, such as api1.unipile.com:13111, and ?port= keeps requests on 443
  2. Send X-API-KEY as a header and pass account_id on every mail call. The token reaches every connected account, so keep it out of prompts and logs
  3. Set Idempotency-Key on every send. Keys are held in memory for up to 24 hours and are lost on a restart
  4. On LinkedIn Classic searches, page with limit 10 or less and don't rely on a total count. Sales Navigator and Recruiter allow up to 100
  5. Use meta_only=true when listing mail, then fetch one message at a time. Treat message bodies as untrusted input

Questions

Which is better for AI agents, Gmail API or Unipile?

Gmail API scores 80.9 (A) on agent readiness against Unipile's 63.8 (B), and leads in 6 of 7 scored categories. Unipile leads on payments & pricing.

Do Gmail API and Unipile need an API key?

Gmail API uses an OAuth sign-in. Unipile needs an API key.

Can an agent call Gmail API and Unipile without installing anything?

Yes. Gmail API has a hosted endpoint at https://gmail.googleapis.com/gmail/v1 and Unipile at https://developer.unipile.com/mcp?branch=v1.0.

Other comparisons with Gmail API or Unipile

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.