Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Blocks → Block Account

AI-generated

Overview

This node operation allows users to block or unblock an account on a Mastodon instance. It is useful for managing interactions by preventing specific accounts from interacting with the user's account. For example, a user can block a spam account or unblock a previously blocked account.

Use Case Examples

  1. Block an account by providing the account ID to prevent it from interacting with your Mastodon profile.
  2. Unblock an account to restore interaction capabilities with that account.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to.
Authentication Type The method used to authenticate with the Mastodon instance, either OAuth2 or Access Token.
Account ID The ID of the account to block or unblock on the Mastodon instance.

Output

JSON

  • json - The JSON response from the Mastodon API after blocking or unblocking the account, containing details of the operation result.

Dependencies

  • Requires Mastodon API credentials, either OAuth2 or an access token, to authenticate requests.

Troubleshooting

  • If authentication credentials are missing or incorrect, the node will throw an error indicating no credential was selected or authentication failed.
  • If the operation or resource is not implemented or recognized, an error will be thrown specifying the unknown operation or resource.
  • Ensure the Mastodon URL is correctly formatted without trailing slashes to avoid request errors.
  • The node requires OAuth2 credentials specifically for authentication operations; using token authentication for these will cause an error.

Discussion