Gmail logo

Gmail

SandBaseapi

Published June 21, 2026

About

Access the Gmail API through OAuth. Read, send, and manage emails and labels — powered by Nango Connector Gateway.

Documentation

Gmail Connector

Access the Gmail API through OAuth. Read, send, and manage emails and labels.

Pricing

OperationPrice
Successful API call (2xx)$0.001
Failed call (4xx/5xx)Free

Quick Test (curl)

# List messages
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model": "gmail", "endpoint": "/gmail/v1/users/me/messages", "method": "GET", "params": {"maxResults": 5}}'

# Get profile
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model": "gmail", "endpoint": "/gmail/v1/users/me/profile", "method": "GET"}'

# List labels
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model": "gmail", "endpoint": "/gmail/v1/users/me/labels", "method": "GET"}'

Request Format

POST /v1/run
{
  "model": "gmail",
  "endpoint": "/gmail/v1/users/me/messages",
  "method": "GET",
  "params": {},
  "headers": {},
  "body": {},
  "retries": 0
}

Common Endpoints

MethodEndpointDescription
GET/gmail/v1/users/me/messagesList messages
GET/gmail/v1/users/me/messages/{id}Get a message
POST/gmail/v1/users/me/messages/sendSend a message
GET/gmail/v1/users/me/labelsList labels

📖 Full API reference: Gmail API Docs

Technical Specs

SpecValue
AuthOAuth 2.0 (user-level)
ProxyNango (auto token refresh)
ExecutionSync
Rate limitInherits Gmail's API limits

Try Gmail

Test this model in the Sandbase Playground with your own prompts.

Open in Playground