Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Account → Verify Credentials

AI-generated

Overview

This node operation verifies the credentials for a Mastodon account by connecting to the specified Mastodon instance URL. It supports two authentication types: OAuth2 and Access Token. The node checks the provided credentials and confirms their validity by making an API call to the Mastodon instance. This is useful for ensuring that the credentials are correct before performing further actions with the Mastodon API.

Use Case Examples

  1. Verifying OAuth2 credentials for a Mastodon account before posting a status update.
  2. Checking the validity of an access token for a Mastodon instance to ensure API requests will succeed.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to for verifying credentials.
Authentication Type The method used to authenticate with the Mastodon instance, either OAuth2 or Access Token.

Output

JSON

  • json - The result of the credential verification, typically an object indicating success or details about the authenticated account.

Dependencies

  • Requires Mastodon API credentials, either OAuth2 or Access Token, to authenticate requests.

Troubleshooting

  • If the node throws an error about missing credentials, ensure that the correct credential type is selected and configured in n8n.
  • Authentication operations require OAuth2 credentials; using Access Token for authentication operations will cause an error.
  • If the Mastodon URL is incorrect or unreachable, the node will fail to verify credentials.
  • Errors from the Mastodon API during verification will be thrown unless 'Continue On Fail' is enabled, in which case the error is returned in the output.

Discussion