Hide

What is the Gmail API?

The Gmail API gives you flexible, RESTful access to the user's inbox, with a natural interface to Threads, Messages, Labels, Drafts, and History. From the modern language of your choice, your app can use the API to add Gmail features like:

  • Read messages from Gmail
  • Send email messages
  • Modify the labels applied to messages and threads
  • Search for specific messages and threads

All you need to use the Gmail API is the client library for your choice of language and an app that can authenticate as a Gmail user.

Typical use cases

The Gmail API can be used in a variety of different applications, including, typically:

  • Read-only mail extraction, indexing, and backup
  • Label management (add/remove labels)
  • Automated or programmatic message sending

See the API overview for a general description of the API and its use. For detailed information on the API's resources and methods, refer to the Gmail API Reference.

How do I find out more?

Use this documentation to start building a Gmail app today: