Mautic

Open Source Marketing Automation

Go to site
Explore
/
Apps
/
Mautic

Mautic API Integrations

Build and run workflows using the Mautic API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

Mautic's API enables you to build custom integrations and applications on top of Mautic. This means you can connect Mautic to other tools in your tech stack, automate processes, or even build your own Mautic-powered app.

Here are a few examples of what you can build using the Mautic API:

  • A CRM integration that syncs contact data between Mautic and your CRM system
  • An ecommerce integration that tracks purchase data from your store in Mautic
  • A marketing automation workflow that sends automated emails based on contact activity in Mautic
  • A custom app that uses Mautic data to power some unique functionality
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    mautic: {
      type: "app",
      app: "mautic",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `${this.mautic.$auth.mautic_url}/api/users/self`,
      headers: {
        Authorization: `Bearer ${this.mautic.$auth.oauth_access_token}`,
      },
    })
  },
})
Delete Company with Mautic API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Mautic
 
Try it
Send Message (Advanced) with Discord Webhook API on New Form Submission from Mautic API
Mautic + Discord Webhook
 
Try it
Add Contact to a Campaign with Mautic API on New Item in Feed from RSS API
RSS + Mautic
 
Try it
Add Contact to a Campaign with Mautic API on New Message from Discord API
Discord + Mautic
 
Try it
Delete Company with Mautic API on New Message In Channels from Slack API
Slack + Mautic
 
Try it
New Contact from the Mautic API

Emit new event when a contact is created. See the docs

 
Try it
New Form Submission from the Mautic API

Emit new event when a form is submitted. See the docs

 
Try it
Updated Contact from the Mautic API

Emit new event when a contact is updated. See the docs

 
Try it
Add Contact to a Campaign with the Mautic API

Adds a contact to a specific campaign. See docs

 
Try it
Clone Campaign with the Mautic API

Clones an existing campaign. See docs

 
Try it
Create Contact with the Mautic API

Creates a new contact. See docs

 
Try it
Delete Company with the Mautic API

Deletes a company. See docs

 
Try it
Get Campaign with the Mautic API

Gets an individual campaign by ID. See docs

 
Try it

Authentication

Mautic uses OAuth authentication. When you connect your Mautic account, Pipedream will open a popup window where you can sign into Mautic and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Mautic API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. authorization
    GET{{custom_fields.mautic_url}}/oauth/v2/authorize?client_id={{custom_fields.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POST{{custom_fields.mautic_url}}/oauth/v2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POST{{custom_fields.mautic_url}}/oauth/v2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}