Mastodon icon

Mastodon

Interact with Mastodon API

Overview

This node interacts with the Mastodon API to manage follow requests, specifically allowing the authorization of follow requests. It is useful for Mastodon instance administrators or users who want to programmatically approve follow requests from other accounts. For example, it can be used to automate the approval process of followers on a Mastodon account.

Use Case Examples

  1. Automatically approve follow requests for a Mastodon account based on certain criteria.
  2. Integrate Mastodon follow request authorization into a larger workflow for social media management.

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 is required to authorize the follow request.

Output

JSON

  • json - The JSON response from the Mastodon API after authorizing the follow request, typically containing details about the authorized follow request or confirmation of the 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.
  • The Account ID must be valid and correspond to an existing follow request; otherwise, the authorization will fail.
  • API authentication errors may occur if the OAuth2 credentials are invalid or expired; re-authenticate if needed.
  • If the operation is not implemented or the resource is unknown, the node will throw an error indicating the unsupported operation or resource.

Discussion