Actions115
- Account Actions
- Announcements Actions
- Apps Actions
- Authentication Actions
- Blocks Actions
- Bookmarks Actions
- Canonical Email Blocks Actions
- Cohorts Actions
- Conversations Actions
- Custom Emojis Actions
- Directory Actions
- Domains (Allowed) Actions
- Domains (Blocked) Actions
- Domains (Email Blocked) Actions
- Emails Actions
- Endorsements Actions
- Favourites Actions
- Featured Tags Actions
- Filters Actions
- Follow Requests Actions
- Followed Tags Actions
- Instance Actions
- IPs Actions
- Lists Actions
- Markers Actions
- Measures Actions
- Media Actions
- Mutes Actions
- Notifications Actions
- oEmbed Actions
- Polls Actions
- Preferences Actions
- Profile Actions
- Proofs Actions
- Push Actions
- Reports Actions
- Retention Actions
- Scheduled Statuses Actions
- Search Actions
- Status Actions
- Streaming Actions
- Suggestions Actions
- Tags Actions
- Timeline Actions
Blocks → Block Account
AI-generatedOverview
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
- Block an account by providing the account ID to prevent it from interacting with your Mastodon profile.
- 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.