Capability Sources

Read a Gmail draft

Changed on

Returns Google's draft and message content, capped at 6 MiB. Use format=raw for the base64url RFC 2822 message including MIME attachments. Requires gmail.readonly, gmail.compose or gmail.modify. Uses only the calling member's selected connected Google account. Perform writes only when explicitly requested by the user; capability discovery or selection is not authorization. Never automatically retry an uncertain write.

get/v1/capabilities/google-workspace/gmail-draft/{draftId}

Request

  • Base URL
    https://api.openworklabs.com
  • URL
    https://api.openworklabs.com/v1/capabilities/google-workspace/gmail-draft/{draftId}
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

draftIdstring required

Existing Gmail draft ID, not its message ID.

Query parameters

format'minimal' | 'full' | 'raw' | 'metadata'

Response

Google's validated response.

idstring required

Changes

    • info

      response property details/items/path/items/ list-of-types was narrowed by removing types number from media type application/json of response 400

    • info

      added the optional property to the response with the status