Credentials
Mautic credentials

Mautic credentials

You can use these credentials to authenticate the following nodes:

Supported authentication methods

  • Basic auth
  • OAuth2

Related resources

Refer to Mautic's API documentation (opens in a new tab) for more information about the service.

Using basic auth

API enabled: To set up this credential, your Mautic instance must have the API enabled. Refer to Enable the API for instructions.

To configure this credential, you'll need an account on a Mautic (opens in a new tab) instance and:

  • Your URL
  • A Username
  • A Password

To set it up:

  1. In Mautic, go to Configuration > API Settings.
  2. If Enable HTTP basic auth? is set to No, change it to Yes and save. Refer to the API Settings documentation (opens in a new tab) for more information.
  3. In n8n, enter the Base URL of your Mautic instance.
  4. Enter your Mautic Username.
  5. Enter your Mautic Password.

Using OAuth2

API enabled: To set up this credential, your Mautic instance must have the API enabled. Refer to Enable the API for instructions.

To configure this credential, you'll need an account on a Mautic (opens in a new tab) instance and:

  • A Client ID: Generated when you create new API credentials.
  • A Client Secret: Generated when you create new API credentials.
  • Your URL

To set it up:

  1. In Mautic, go to Configuration > Settings.
  2. Select API Credentials.

No API Credentials menu: If you don't see the API Credentials option under Configuration > Settings, be sure to Enable the API. If you've enabled the API and you still don't see the option, try manually clearing the cache (opens in a new tab).

  1. Select the option to Create new client.
  2. Select OAuth 2 as the Authorization Protocol.
  3. Enter a Name for your credential, like n8n integration.
  4. In n8n, copy the OAuth Callback URL and enter it as the Redirect URI in Mautic.
  5. Select Apply.
  6. Copy the Client ID from Mautic and enter it in your n8n credential.
  7. Copy the Client Secret from Mautic and enter it in your n8n credential.
  8. Enter the Base URL of your Mautic instance.

Refer to What is Mautic's API? (opens in a new tab) for more information.

Enable the API

To enable the API in your Mautic instance:

  1. Go to Settings > Configuration.
  2. Select API Settings.
  3. Set API enabled? to Yes.
  4. Save your changes.

Refer to How to use the Mautic API (opens in a new tab) for more information.