Automate Fastmail Inbox Unread Messages Fetch with n8n

Save time and reduce manual errors by automating the retrieval of unread emails from your Fastmail inbox using n8n’s HTTP Request nodes. This workflow queries your Fastmail mailbox, fetching latest unread messages quickly and efficiently.
manualTrigger
httpRequest
set
+1
Workflow Identifier: 2446
NODES in Use: Manual Trigger, HTTP Request, Set, Sticky Note
Automate Fastmail inbox with n8n

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow gets the latest 3 unread emails from your Fastmail Inbox.
It fetches mailboxes, finds the Inbox ID, then queries unread messages there.
You get sender, subject, date, and other email details back every time you run it.

It solves the problem of manually checking unread emails and missing important messages.
You save time and reduce errors in tracking unread emails.


Who Should Use This Workflow

This is good for people who get many emails daily and want to quickly focus on unread important messages.
If manual inbox review wastes your time or causes you to miss emails, this helps.


Tools and Services Used

  • Fastmail JMAP API: Source to get mailbox and email data.
  • n8n Automation Platform: Used to build and run the workflow.
  • HTTP Header Auth Credential in n8n: To authorize API requests.

Beginner Step-By-Step: How to Use This Workflow in n8n

Importing Workflow

  1. Click the Download button on this page to save the workflow file.
  2. Inside your n8n editor, click on “Import from File” and upload the saved workflow.

Configuration

  1. Add your Fastmail API Key in n8n Credentials as HTTP Header Auth.
  2. Verify or update account or mailbox IDs if workflow needs it. Usually default settings work.
  3. Check any email addresses or channels if workflow connects to notifications. Update as needed.

Testing and Activation

  1. Test run the workflow manually with the Manual Trigger. Watch the output for unread emails.
  2. If results look good, activate the workflow by toggling its status.
  3. Optionally replace the Manual Trigger with a Cron node for periodic automation.

The workflow then runs automatically or on demand to get unread Fastmail emails.

Click self-host n8n if you want to run workflows on your own server.


Inputs, Process, and Outputs Explained

Inputs

  • Your Fastmail API Key as API Key credential.
  • The manual trigger or cron event that starts the workflow.

Processing Steps

  • Send API request to get session details and primary account ID.
  • Use another API call to get all mailboxes in your account.
  • Find the Inbox mailbox ID by searching mailbox with role “inbox”.
  • Query for 3 latest unread emails using the Inbox ID and account ID.
  • Get detailed email data including sender, subject, received date, and keywords.

Outputs

  • A list of up to 3 unread emails with key information.
  • Data can be used for follow-ups, notifications, or other automation.

Common Issues and How to Fix Them

401 Unauthorized Error: Happens if Fastmail API Key is wrong or expired.
Fix by updating the API Key in n8n Credentials.

Nothing Returns or Null Inbox ID: Could be wrong mailbox role or broken JSON path.
Fix by inspecting mailbox list output and correcting expression to find Inbox.


Ways to Customize This Workflow

  • Change the number of unread emails fetched by adjusting “limit” in the final HTTP Request node.
  • Get emails from other mailboxes by changing mailbox role filter in the Set node.
  • Switch from manual to scheduled runs by adding a Cron node instead of a Manual Trigger.
  • Add formatting steps to convert email details into Slack messages or email summaries.

Summary and Results

✓ The workflow gets the latest 3 unread emails from Fastmail Inbox.

✓ Saves time by removing manual inbox checks.

✓ Gives clear email details ready for next steps.

→ Use manual or automatic triggers to run the workflow.

→ Can customize for more emails or other mailboxes.


Automate Fastmail inbox with n8n

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

This happens when the Fastmail API Key is invalid or expired. Update the API Key in the n8n HTTP Header Auth credentials.
The workflow reads all mailboxes via API then selects the mailbox with the role labeled ‘inbox’ to get its ID.
Yes, modify the ‘limit’ field in the final HTTP Request node’s JSON body to fetch more or fewer emails.
Yes, replace the Manual Trigger with a Cron node to schedule the workflow to run periodically.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.