Capability Sources
List or search Gmail messages as the calling member
Changed onReads and searches inbox mail in the calling member's Gmail mailbox, using the Google account they connected through the org Google Workspace connection. Returns needs_connection when the member has not connected their Google account yet or the connection lacks Gmail read permission.
get/v1/capabilities/google-workspace/gmail-messages
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Query parameters
q, string
Optional Gmail search query, using Gmail's search syntax.
maxResults, integer
Maximum messages to return, capped at 25.
pageToken, string
nextPageToken from a previous page of the same Gmail search.
Response
Gmail messages returned.
Google Workspace Gmail Messages Response required
ok, true required
messages, Google Workspace Gmail Message Summary[] required
nextPageToken, string
Changes
- info
the endpoint scheme security
bearerAuthwas added to the API - info
the endpoint scheme security
denApiKeywas added to the API
- info
- info
added the new optional
queryrequest parameterpageToken
1 more change in this revision
- info