Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Domains (Email Blocked) → Block Email Domain

AI-generated

Overview

This node operation allows users to block an email domain from registering on a Mastodon instance. It is useful for administrators who want to prevent users from certain email domains from signing up, enhancing control over the user base and reducing spam or unwanted registrations.

Use Case Examples

  1. Blocking a spammy email domain like 'spamdomain.com' to prevent registrations from that domain.
  2. Blocking disposable email domains to ensure only legitimate users can register.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to, e.g., https://mastodon.social.
Authentication Type The method used to authenticate with the Mastodon instance, either OAuth2 or Access Token.
Domain The email domain to block from registration on the Mastodon instance.

Output

JSON

  • json - The JSON response from the Mastodon API after attempting to block the specified email domain.

Dependencies

  • Requires authentication credentials for the Mastodon instance, either OAuth2 or an access token.

Troubleshooting

  • Ensure the correct authentication type is selected and valid credentials are provided; OAuth2 is required for authentication operations.
  • If the node throws an error about missing credentials, verify that the appropriate Mastodon credentials are configured in n8n.
  • Check that the Mastodon instance URL is correct and accessible.
  • If the operation is not implemented error occurs, verify that the resource and operation names are correctly set to 'emailBlockedDomains' and 'blockEmailDomain' respectively.

Discussion