Who is this workflow for? This n8n workflow template enables you to generate a masked email address via the Fastmail API, activated through a webhook. It is ideal for creating disposable email addresses to enhance privacy or for testing purposes in various applications..

What does this workflow do?

1. Webhook Trigger

The workflow starts when a POST request is sent to a designated webhook URL. The request should include a JSON payload with state and description fields to specify the masked email’s status and purpose.

2. Session Retrieval

Upon triggering, the workflow sends an HTTP request to the Fastmail API to obtain session information. This session data is essential for authenticating subsequent API requests.

3. Create Masked Email

Using the retrieved session data, the workflow makes a POST request to Fastmail’s JMAP API to create a new masked email address. The request incorporates the state and description provided in the initial webhook payload to customize the masked email accordingly.

4. Prepare Output

After successfully creating the masked email, the workflow extracts the new email address and associates it with the provided description. This information is structured for any further processing or storage needs.

5. Respond to Webhook

Finally, the workflow sends a response back to the original webhook request, including the newly created masked email address and its description. This confirms the successful creation and provides the necessary details for the requester.

curl -X POST -H 'Content-Type: application/json' https://your-n8n-instance/webhook/87f9abd1-2c9b-4d1f-8c7f-2261f4698c3c -d '{"state": "pending", "description": "my mega fancy masked email"}'

Additional Resources

For added convenience, a companion shortcut is available. Update the authorization header within the shortcut as needed.

Download the Shortcut

This workflow seamlessly integrates with tools such as Slack, WordPress, and Zoom, among others, enhancing its versatility and applicability across various platforms.

🤖 Why Use This Automation Workflow?

  • Privacy Protection: Generate disposable email addresses to protect your primary inbox from spam and unwanted communications.
  • Efficient Testing: Create temporary email addresses for testing user sign-ups, form submissions, or other application features without using real emails.
  • Automation Integration: Seamlessly integrate masked email creation into your existing automated workflows, enhancing functionality with minimal effort.

👨‍💻 Who is This Workflow For?

  • Developers: Looking to implement temporary email functionalities within their applications or services.
  • Privacy Enthusiasts: Individuals seeking to protect their personal email addresses from exposure and spam.
  • Businesses: Organizations needing to manage disposable emails for customer interactions, support, or testing environments.

🎯 Use Cases

  1. User Registration Testing: Automatically generate temporary email addresses to test the user registration process without cluttering the main email system.
  2. Privacy-Conscious Communication: Provide customers or clients with masked emails for inquiries, ensuring their personal email addresses remain private.
  3. Spam Prevention: Use disposable emails for newsletter sign-ups or online forms to prevent spam from reaching your primary inbox.

TL;DR

This n8n workflow template streamlines the creation of masked email addresses through the Fastmail API, initiated by a simple webhook. It offers a reliable solution for enhancing privacy, facilitating testing, and integrating disposable email functionalities into your projects with ease.

Dependencies

  • Fastmail API Access: Ensure you have valid Fastmail API credentials with HTTP Header Authentication configured.
  • Authorization Setup: It’s recommended to secure your webhook if it’s accessible over the internet to prevent unauthorized use.
  • Custom Webhook Request: Use tools like curl or create a shortcut on macOS/iOS to send a POST request to the webhook with the required JSON payload.

Example curl Command

Help us find the best n8n templates

About

A curated directory of the best n8n templates for workflow automations.