Head to head · Mailbox read · October 2026 research run

Gmail API vs Unipile

Gmail API scores 77.8 (BB) on agent readiness against Unipile's 58.4 (C), and leads in 6 of 7 scored categories. Unipile leads on payments & pricing. Both do mailbox read.

Which one, for what

Gmail API BB

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.

Ahead on

  • Reliability, 90 against 56
  • Schema & documentation, 82 against 77
  • Agent ergonomics, 82 against 73
  • Security & auth, 81 against 37
  • Maintenance & community, 85 against 59
  • Transparency & trust, 82 against 71

Also in its favour

  • Agent-ready, a grade of BB or better

Watch for

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

Unipile C

Good 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, 40 against 35

Also in its favour

  • Free to start without a card

Watch for

A v1 access token reaches every connected account. Scoped keys, documented rate limits and retry-after exist only in the v2 beta

Score by category

CategoryWeight this runGmail APIUnipileEdge
Reliability16%209056Gmail API +34
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.28277Gmail API +5
Agent ergonomics13%16.28273Gmail API +9
Security & auth14%17.58137Gmail API +44
Payments & pricing10%12.53540Unipile +5
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.88559Gmail API +26
Transparency & trust7%8.88271Gmail API +11
Negative events≤1500
Total77.8 · BB58.4 · C

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 documentednoyes
llms.txtnoyes
MCP registrynot listedcom.unipile/unipile-mcp
Last release2026-09-232026-09-02
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

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 and IMAP with search, drafts, send with an idempotency key and new-mail webhooks, and the OpenAPI spec is public. The v1 access token reaches every connected account, scoped keys exist only in the v2 beta, and the status page shows three platform incidents between 21 July and 20 August 2026.

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 Microsoft accounts, send search alone. Combining it with from, to, before, after or thread filters returns invalid_request
  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 77.8 (BB) on agent readiness against Unipile's 58.4 (C), 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.