Agentiff Gmail API icon

Agentiff Gmail API

Interact with Gmail API using injected access tokens from Agentiff.AI

Actions4

Message → Get

AI-generated

Summary

Retrieve a Gmail message by its ID with selectable format using an access token from a previous node or a custom expression.

Inputs

  • Access Token Source (required) — Select whether to use the access_token from a previous node or provide a custom expression.
  • Access Token (required) — Provide the Gmail API access token when using a custom expression as the source.
  • Message ID (required) — The ID of the Gmail message to retrieve.
  • Format (required) — The format in which to retrieve the message: full (body and headers), metadata (headers only), minimal, or raw (RFC822 format).

Output shape

a single JSON object representing the Gmail message, structured according to the selected format

Returns the message data retrieved from the Gmail API, accessible via the node's main output. On error, an error message is returned if 'Continue On Fail' is enabled.

Examples

Example 1: Get full message details

Set Message ID to the desired message's ID and Format to 'Full' to retrieve complete message data including body and headers.

Links

Discussion