Flexible, RESTful access to the user's inbox.
The Gmail API is a RESTful API for programmatic access to Gmail mailboxes and sending mail. It supports read-only mail extraction, indexing, and backup; automated or programmatic message sending; email account migration; message organization through filtering and sorting; and standardization of email signatures across an organization.
The API operates on core resources including messages, threads, drafts, and labels. Labels can be system-defined (such as INBOX, TRASH, or SPAM) or user-created, and are used to organize messages and threads. Messages, once created, are immutable, while drafts represent unsent messages that can be edited before sending. Threads group related messages into conversations.
Additional capabilities include managing filters that evaluate incoming messages against matching criteria and trigger actions like labeling or forwarding; configuring forwarding addresses and send-as aliases; managing delegate access within a Google Workspace organization; uploading S/MIME certificates for encrypted and signed email; and receiving push notifications via Google Cloud Pub/Sub when mailbox changes occur, removing the need for continuous polling. The API is intended for web applications requiring authorized access to a user's Gmail data.
It supports read-only mail extraction, indexing and backup, automated or programmatic message sending, email account migration, and message organization/filtering.
Quickstarts are provided for JavaScript, Java, Python, Apps Script, Go, and Node.js.
It integrates with Google Cloud Pub/Sub push notifications, letting apps watch a mailbox and receive webhooks when changes like new messages occur.
Yes, a delegator can grant mailbox access to a delegate within the same Google Workspace organization, allowing the delegate to read, send, and delete messages.
Yes, users can upload S/MIME certificates to send-as aliases to send encrypted and digitally signed emails.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
API for B2B company data enrichment, domain enrichment, and website enrichment.
Registered Domain Names Search.
Hire freelancers to get work done.
Collect, configure and analyze your data to reach the right audience.
Post to and update maintenance and incidents on your status page through an HTTP REST API.
Automated company logo API that updates daily. Transform any domain or company name into verified logos.