Using java-genai with googleapis.com

Java integration

✓ Official SDK
Install
# Maven: see https://github.com/googleapis/java-genai
Lists the drafts in the user's mailbox.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmail.googleapis.com/gmail/v1/users/{userId}/drafts
Lists all labels in the user's mailbox.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmail.googleapis.com/gmail/v1/users/{userId}/labels
Lists the history of all changes to the given mailbox. History results are re…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmail.googleapis.com/gmail/v1/users/{userId}/history
SDK on GitHub 📄 API Docs
SDK
java-genai
Java
API
googleapis.com
googleapis.com:gmail
At a glance
Language Java
Endpoints79
Base URLhttps://gmail.googleapis.com
✓ Official