Capability Sources

Read a Gmail message with its plain-text body as the calling member

Changed on

Reads one Gmail message, including decoded plain-text body content and attachment metadata, using the calling member's connected Google Workspace account. To download an attachment's bytes, pass its attachmentId to the gmail-attachment capability.

get/v1/capabilities/google-workspace/gmail-message/{messageId}

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/capabilities/google-workspace/gmail-message/{messageId}
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

messageIdstring required

Gmail message id.

Response

Gmail message returned.

oktrue required

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 required property / to the response with the status