Mailhooks icon

Mailhooks

Consume the Mailhooks API

Email → Get

AI-generated

Summary

Retrieve a specific email by its ID and optionally mark it as read when fetching it.

Inputs

  • Email ID (required) — The ID of the email to retrieve.
  • Mark as Read on Get — Whether to mark the email as read upon retrieval. Defaults to false.

Output shape

a single record representing the email, including all accessible details from the Mailhooks API for that email ID

The output JSON contains the email object as returned by the Mailhooks API. If 'Mark as Read on Get' is set to true, the email will be marked as read in the mailbox upon retrieval.

Examples

Example 1: Fetch email without marking as read

Set Email ID and leave 'Mark as Read on Get' false or unset. Returns email data without changing read status.

Example 2: Fetch email and mark as read

Set Email ID and enable 'Mark as Read on Get'. Returns email data, marking it read in the mailbox.

Links

Discussion