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:
- In Mautic, go to Configuration > API Settings.
- 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.
- In n8n, enter the Base URL of your Mautic instance.
- Enter your Mautic Username.
- 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:
- In Mautic, go to Configuration > Settings.
- 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).
- Select the option to Create new client.
- Select OAuth 2 as the Authorization Protocol.
- Enter a Name for your credential, like
n8n integration. - In n8n, copy the OAuth Callback URL and enter it as the Redirect URI in Mautic.
- Select Apply.
- Copy the Client ID from Mautic and enter it in your n8n credential.
- Copy the Client Secret from Mautic and enter it in your n8n credential.
- 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:
- Go to Settings > Configuration.
- Select API Settings.
- Set API enabled? to Yes.
- Save your changes.
Refer to How to use the Mautic API (opens in a new tab) for more information.