How to find Mautic Base URL, Public Key and Secret Key

Home » Autoresponder Configuration » How to find Mautic Base URL, Public Key and Secret Key

Cloud Hosted Mautic

Assuming you already have Mautic account and it’s successfully installed on your website. To successfully configure the Autoresponder you’ll be requiring three parameters.

  1.  Base URL : Your website url with mautic. E.g. http://yourwebsitename.com/mautic
  2.  Public Key : Check the below guide to find your Public Key.
  3.  Secret Key : Check the below guide to find your Secret Key.

Step 1: Login to your Mautic account on your website. Once logged in click on the gear icon and go to Configuration > API Settings. Here enable the API & HTTP basic auth by switching the toggle to Yes. Under Access token lifetime and Refresh token lifetime add maximum value as possible such as 100000000 minutes and 999 days, when done click on Save & Close button.

Note: If you’ll not enter maximum value and will assign limited time duration such as 60 min or 1 day, your login session will expire accordingly and you have to refresh the connection frequently.

Step 2: Click on settings icon and go to API Credentials.

Step 3: If you have not created an API key earlier then click on New button and add the required parameters and click on Save & Close button.
Note: Make sure you select OAuth 2 option while creating a new key.

  • Assign any name to this API configuration.
  • Redirect URI can be found from the Autoresponder Configuration area, from where you have to copy the parameters. (screenshot below)

Step 4: Once the configuration is saved, you’ll get the Public and Secret Key.

Self Hosted Mautic

Assuming you have purchased a package of self hosted Mautic. Login into your account and follow below steps.

Step 1: From your dashboard go to Companies and create a new company by clicking on New button. Add the required parameters and click on Save & Close button.

Note: If you have multiple users than you need to select one user name under Company Owner.

Step 2: Click on the gear icon and go to Configuration > API Settings. Here enable the API & HTTP basic auth by switching the toggle to Yes. Under Access token lifetime and Refresh token lifetime add maximum value as possible such as 100000000 minutes and 999 days, when done click on Save & Close button.

Note: If you’ll not enter maximum value and will assign limited time duration such as 60 min or 1 day, your login session will expire accordingly and you have to refresh the connection frequently.

 

Step 3: Once the API is enabled you’ll find an API Credentials menu under settings.

Step 4: Click on new button and create a new API and add the required parameters and click on Save & Close button.
Note: Make sure you select OAuth 2 option while creating a new key.

  • Assign any name to this API configuration.
  • Redirect URI can be found from the Autoresponder Configuration area, from where you have to copy the parameters. (screenshot below)

Step 5: Once the configuration is saved, you’ll get the Public and Secret Key.