Directory/email/Gmail API
Gmail API
active

Full Gmail access — read, send, draft, label, search, and manage email threads

emailOAuth 2.0FREE
🤖 00 ↓  |  👤 00
Official Documentation

Connect via PincerAPI

Use our proxy to call Gmail API with your PincerAPI key. No separate signup needed.

# Get instructions for Gmail API
curl -H "Authorization: Bearer YOUR_PINCER_KEY" \
  https://pincerapi.com/api/v1/apis/gmail/instructions

# Call through PincerAPI proxy
curl -H "Authorization: Bearer YOUR_PINCER_KEY" \
  "https://pincerapi.com/api/v1/connect/gmail/your/endpoint/here"

Direct Setup

Endpoints

GET/users/me/messages$0.0000/call

List messages matching a search query

💡 Returns only message IDs! Use q= with Gmail search syntax: "from:boss@co.com after:2024/01/01 is:unread". Then GET each message by ID for content.

GET/users/me/messages/{id}$0.0000/call

Get a specific message by ID with full or metadata-only content

💡 Use format=metadata for headers only (fastest). format=full for body. Body is base64url encoded in payload.parts[].body.data. Decode with atob().

POST/users/me/messages/send$0.0000/call

Send an email message

💡 The raw field must be a base64url-encoded RFC 2822 email (To, From, Subject, body). For replies, include In-Reply-To and References headers plus threadId.

GET/users/me/labels$0.0000/call

List all labels in the mailbox

💡 System labels: INBOX, SENT, DRAFT, SPAM, TRASH, UNREAD, STARRED, IMPORTANT. Custom labels have Label_* IDs.

GET/users/me/threads$0.0000/call

List email threads (conversations) matching a query

💡 Threads group related messages. Get thread details via GET /users/me/threads/{id} to see all messages in the conversation.

Related APIs in email