Skip to content

Mautic credentials#

You can use these credentials to authenticate the following nodes:

Supported authentication methods#

  • Basic auth
  • OAuth2

Refer to Mautic's API documentation 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 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 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 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.

  3. Select the option to Create new client.

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

Refer to What is Mautic's API? 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 for more information.