Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Authentication → Register Application

AI-generated

Overview

This node operation registers a new application on a specified Mastodon instance. It is useful for developers who want to create and authenticate their own Mastodon applications by obtaining client credentials. For example, a user can register their app by providing the Mastodon instance URL, client name, redirect URIs, scopes, and optionally a website URL.

Use Case Examples

  1. Register a Mastodon app to enable OAuth2 authentication for your custom client.
  2. Create an application registration to obtain client credentials for API access.

Properties

Name Meaning
Mastodon URL URL of the Mastodon instance to connect to.
Authentication Type Choose how to authenticate with your Mastodon instance, either OAuth2 or Access Token.
Client Name Name of your application to register.
Redirect URIs Where the user should be redirected after authorization.
Scopes Space-separated list of scopes for the application.
Website URL of your website (optional).

Output

JSON

  • json
    • client_id - The client ID assigned to the registered application.
    • client_secret - The client secret assigned to the registered application.
    • redirect_uris - The redirect URIs registered for the application.
    • scopes - The scopes granted to the application.
    • website - The website URL associated with the application.

Dependencies

  • Requires OAuth2 credentials for authentication when performing authentication operations.

Troubleshooting

  • If OAuth2 credentials are not selected when performing authentication operations, the node throws an error indicating OAuth2 credentials are required.
  • If no Mastodon Access Token credential is selected when using token authentication, an error is thrown prompting the user to select the appropriate credential.
  • Errors may occur if the Mastodon instance URL is invalid or unreachable.
  • Operation not implemented errors occur if the specified operation is not supported for the resource.

Discussion