Skip to content

Mautic credentials#

You can use these credentials to authenticate the following nodes:

Prerequisites#

  • Create an account on a Mautic instance.
  • Ensure the instance has the API enabled in Configuration > API Settings.
  • If using basic auth as your credential authentication method, turn on Enable basic auth? in Mautic's Configuration > API Settings. Refer to the API Settings documentation for more information.

Supported authentication methods#

  • Basic auth
  • OAuth2

Refer to Mautic's API documentation for more information about the service.

Using basic auth#

To configure this credential, be sure that Enable basic auth? in Mautic's API Settings is turned on.

Then you'll need:

  • A URL: Enter the URL of your Mautic instance.
  • A Username: Enter your Mautic username.
  • A Password: Enter your Mautic password.

Using OAuth2#

To configure this credential, you'll need:

  • A Client ID: Generate a Client ID when you create new API Credentials in Configuration > API Credentials. (This option won't appear if an admin hasn't enabled the API.)
  • A Client Secret: Generate a Client ID when you create new API Credentials in Configuration > API Credentials. (This option won't appear if an admin hasn't enabled the API.)
  • A URL: Enter the URL of your Mautic instance.

Refer to What is Mautic's API? for detailed instructions on creating a new API credential.

When you create the new API credential, use these options:

  • Select OAuth 2 as the Authorization Protocol.
  • Copy the OAuth Callback URL from n8n and enter it as the Redirect URI in Mautic.

Once the credential is created, copy the Client ID and Client Secret from Mautic to enter in the corresponding fields in n8n.