Full Gmail access — read, send, draft, label, search, and manage email threads
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
/users/me/messages$0.0000/callList 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.
/users/me/messages/{id}$0.0000/callGet 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().
/users/me/messages/send$0.0000/callSend 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.
/users/me/labels$0.0000/callList all labels in the mailbox
💡 System labels: INBOX, SENT, DRAFT, SPAM, TRASH, UNREAD, STARRED, IMPORTANT. Custom labels have Label_* IDs.
/users/me/threads$0.0000/callList 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
Resend
Resend is a modern email API built for developers. Provides a simple REST API for sending transactional emails with excellent deliverability, React Email template support, and domain verification. Great for startups and modern stacks.
apilayer mailboxlayer
Email address validation
Email Validation
Validate email addresses for deliverability and spam
Cloudmersive Validate
Validate email addresses, phone numbers, VAT numbers and domain names
Disify
Validate and detect disposable and temporary email addresses
DropMail
GraphQL API for creating and managing ephemeral e-mail inboxes