- 25 typed API operations
- 4 synced entities (
drafts,labels,messages,threads) for fast.search()/.list() - 1 incoming webhook event types
Setup
1
Install
2
Add the plugin
corsair.ts
corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- OAuth 2.0 (Recommended)
Open hub.corsair.dev, navigate to your project, and enter the client ID and client secret from your Gmail OAuth app.Provider walkthrough: Get Credentials.More: OAuth 2.0
4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
List messagesQuery synced data
Search synced messages without hitting Gmail.drafts, labels, messages, threads. See Database for filters and operators.
Webhooks
Fires when a Gmail message is received, deleted, or has its labels changed.What’s next
API reference
Every
gmail.api.* operation with input and output types.Database
Synced entities, search filters, and operators.
Webhooks
Event paths, payloads, and
webhookHooks examples.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.
Get credentials
Provider-console walkthrough for keys and OAuth apps.