Mastodon icon

Mastodon

Interact with Mastodon API

Overview

This node interacts with the Mastodon API to perform various operations related to Mastodon resources. Specifically, for the 'Blocks' resource with the 'Block Account' operation, it allows users to block a specified account on a Mastodon instance. This is useful for managing interactions and controlling unwanted communications on Mastodon. For example, a user can block an account by providing the Mastodon instance URL and the account ID to be blocked.

Use Case Examples

  1. Blocking a spam account on a Mastodon instance by specifying the instance URL and the spam account's ID.
  2. Automating the blocking of multiple accounts based on certain criteria by iterating over account IDs.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to for performing the block operation.
Account ID The ID of the account to block on the specified Mastodon instance.

Output

JSON

  • json - The JSON response from the Mastodon API after attempting to block the specified account, which may include details about the blocked account or confirmation of the block action.

Dependencies

  • Requires an OAuth2 API credential for Mastodon to authenticate API requests.

Troubleshooting

  • Ensure the Mastodon URL is correct and accessible; incorrect URLs will cause connection failures.
  • Verify that the Account ID is valid and exists on the specified Mastodon instance; invalid IDs will result in errors.
  • Check that the OAuth2 credentials are correctly configured and have the necessary permissions to perform block operations.
  • Common error messages include 'The operation is not implemented' if an unsupported operation is requested, or API errors returned from Mastodon if the block action fails.

Discussion