Capability Sources

List or search Gmail messages as the calling member

Changed on

Reads 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 URL
    https://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.

GoogleWorkspaceGmailMessagesResponse required
ok, true required
messages, GoogleWorkspaceGmailMessageSummary[] required
nextPageToken, string

Changes

    • info

      the endpoint scheme security bearerAuth was added to the API

    • info

      the endpoint scheme security denApiKey was added to the API

    • info

      added the new optional query request parameter pageToken

    1 more change in this revision