Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Notifications → Get Unread Count

AI-generated

Overview

This node interacts with the Mastodon API to retrieve the count of unread notifications for a user. It is useful for monitoring new notifications on a Mastodon instance, enabling automation workflows to respond to unread notifications, such as alerting users or triggering other actions based on notification counts.

Use Case Examples

  1. Automatically check the number of unread notifications on a Mastodon account and send an alert if there are any.
  2. Integrate Mastodon unread notification counts into a dashboard for social media monitoring.

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.

Output

JSON

  • json
    • unread_count - The number of unread notifications retrieved from the Mastodon instance.

Dependencies

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

Troubleshooting

  • Error indicating no Mastodon Access Token or OAuth2 credential selected means the user must configure the appropriate authentication credentials in the node settings.
  • If the operation is 'authentication' but the selected authentication type is not OAuth2, an error is thrown because authentication operations require OAuth2 credentials.
  • Errors about unimplemented operations or unknown resources indicate a mismatch between the selected resource/operation and the node's supported methods. Verify the resource and operation names are correct.

Discussion