# Mautic

## How to Integrate Optinly with Your Mautic account? <a href="#how-to-integrate-optinly-with-your-mailchimp-account" id="how-to-integrate-optinly-with-your-mailchimp-account"></a>

In this article, you will learn how to integrate Optinly with Mautic. Read and follow the below-mentioned steps to connect Optinly with Mautic.

Here are a few things you should know before you start.

* If you are using any other Email Service Provider other than Mautic, you can find the integration guide here .
* It is best when you integrate with your ESP when you are in the middle of creating a new campaign.
* When you are creating a campaign, you’ll come across the **“Integrations”** section which allows you to integrate with Mautic.

![](/files/7d1hhChabCFgBycHIyYu)

When you click the **“Integrations”** tab, you’ll be displayed the available ESP’s you can connect with. Click on Mautic to initiate the integration process.

When you click Mautic,  you’ll be asked for Mautic Url, username and password&#x20;

Head to your Mautic account and find the API keys.&#x20;

To create API credentials, go to your Mautic administration and follow these steps:

&#x20;Go to Mautic Configuration / API settings and set ‘API enabled’ to ‘Yes’. Save changes.&#x20;

![](/files/GibgafNAafUqvaGOsGxZ)

At the right side menu, the menu item ‘API credentials ‘ should appear. click on it.

![](/files/sSPvQZXszPN63gWWTtEK)

Fill in the ‘Name’ (name of your app or something you recognize)

Redirect URI – Specify the URI that should be allowed API access ( For example, you need Mautic credentials to use it on testsite.com, then the Redirect URI will be testsite.com ). You can add a single or multiple websites separated with a comma.

Make sure you select “OAuth2” as ‘Authorization Protocol’. Save new credentials

![](/files/QAsOBnxwD7p5sdJamtof)

**Mautic will generate ‘Public Key’ and ‘Secret Key’.**

Copy the same and head back to the Integrations page on Optinly.

Paste all the details  and then click submit.

You'll be asked to choose an audience list from the available lists you've already created. Choose the preferred list and click "**Save**".


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.optinly.com/integrations/mautic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
