Gmail Inbox Messages - Data API Endpoint

Inbox Messages by oauth access token, pagination token and search query.


Get bulk Inbox Messages data from the Gmail API | Official API: https://developers.google.com/gmail/api | 👥  Contributors: steve 🚩  Report

✏️ Inputs

OAuth Access Token auth_token Required

OAuth access token for the Gmail account owning the inbox you’d like to get the messages for. Get your own OAuth token using the Google OAuth Playground. We suggest using the https://www.googleapis.com/auth/gmail.readonly scope.

Pagination Token pagination_token Optional

Used for pagination.

Search Query query Optional

Search for messages in your inbox, from Google:

Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid:<somemsgid@example.com> is:unread”. Parameter cannot be used when accessing the api using the gmail.metadata scope.

📝 Notes

List the messages of your inbox.

Posted by steve on June 29, 2022, 6:31 a.m. 🚩  Report

⚡️ Endpoint

GET https://www.googleapis.com/gmail/v1/users/me/messages?pageToken={{ pagination_token }}&q={{ query }}

Body

None

Headers

Authorization
Bearer {{auth_token}}