Mastodon icon

Mastodon

Interact with Mastodon API

Overview

The node interacts with the Mastodon API, specifically handling follow requests among other Mastodon resources. The "Authorize Follow Request" operation under the "Follow Requests" resource allows a user to approve a pending follow request from another account on a Mastodon instance.

This is useful in scenarios where a Mastodon user has a private account and wants to manually approve who can follow them. For example, a social media manager or community moderator might use this node to automate the approval of trusted followers or integrate it into workflows that manage follower relationships programmatically.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to (e.g., https://mastodon.social).
Account ID The ID of the account requesting to follow, which you want to authorize or reject.

Output

The output is a JSON object representing the result of the authorization action for the follow request. This typically includes confirmation details about the authorized follow request or any relevant metadata returned by the Mastodon API.

No binary data output is involved in this operation.

Dependencies

  • Requires an API authentication token credential configured in n8n to authenticate requests to the Mastodon instance.
  • Needs network access to the specified Mastodon instance URL.
  • The node depends on the Mastodon API's follow request endpoints to perform authorization actions.

Troubleshooting

  • Common Issues:

    • Incorrect Mastodon URL or unreachable instance will cause connection failures.
    • Invalid or missing account ID will prevent the node from authorizing the correct follow request.
    • Insufficient permissions or invalid API credentials may lead to authorization errors.
  • Error Messages:

    • "The operation "authorize" for resource "followRequests" is not implemented!" indicates a misconfiguration or unsupported operation; ensure the operation name is correct.
    • Network or authentication errors usually manifest as HTTP errors; verify credentials and instance accessibility.
    • If the node throws an error about unknown resource or operation, confirm that "Follow Requests" and "Authorize" are correctly selected.
  • Resolution Tips:

    • Double-check the Mastodon instance URL and ensure it is accessible.
    • Verify the account ID corresponds to a valid pending follow request.
    • Ensure the API key or OAuth token has the necessary scopes to manage follow requests.
    • Use the "continue on fail" option in n8n to handle errors gracefully in workflows.

Links and References

Discussion