Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Apps → Verify Credentials

AI-generated

Overview

This node operation verifies the credentials for the Mastodon Apps resource. It checks the provided authentication type (OAuth2 or Access Token) and validates the credentials against the specified Mastodon instance URL. This is useful for ensuring that the credentials are correct and can successfully authenticate with the Mastodon API before performing further actions.

Use Case Examples

  1. Verifying OAuth2 credentials for a Mastodon instance at https://mastodon.social to ensure the app can authenticate properly.
  2. Checking an Access Token credential for a Mastodon app to confirm it has valid access before making API calls.

Properties

Name Meaning
Mastodon URL URL of the Mastodon instance to connect to, used to target the correct Mastodon server for authentication.
Authentication Type Method of authentication to use 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 of the OAuth configuration.

Dependencies

  • Requires either OAuth2 credentials or an Access Token credential for Mastodon authentication.

Troubleshooting

  • If OAuth2 credentials are selected but not provided, the node throws an error prompting to select OAuth2 credentials.
  • If Access Token authentication is selected but no token credential is provided, an error is thrown asking to select the appropriate credential.
  • Authentication operations require OAuth2 credentials; selecting Access Token for authentication operations will cause an error.
  • Errors during credential verification will be thrown unless 'Continue On Fail' is enabled, in which case the error message is returned in the output.

Discussion