Skip to content
Mautic logo

Connectors / Marketing · HTTP Connector

Mautic integration and API

Create a contact, create a segment and create a campaign in Mautic, and start a workflow when Mautic sends “Contact created”.

What can you do with Mautic on Tray.ai?

Mautic is open source marketing automation software that teams host themselves to manage contacts, segments, email campaigns, forms and lead scoring. Tray.ai connects to Mautic through the HTTP Connector, so your workflows can call the Mautic API alongside the rest of your stack.

  • When Mautic sends “Form submitted”, create a lead in your CRM and alert the sales owner in your team chat.
  • Update the lead score in your CRM when Mautic sends “Contact points changed”, so sales sees who is warming up.
  • Add contact to segment when a deal closes in your CRM, so new customers drop out of prospect emails.
  • Create a contact for every webinar registrant, ready for follow-up email campaigns.
Connects through
HTTP Connector
Authentication
OAuth 2.0 or basic authentication
Base URL
https://{your-mautic-domain}/api

Set it up

Connect Mautic to Tray.ai

Each step uses Mautic's own API details, from its documentation.

Sign in to Mautic with OAuth 2.0

Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with Mautic. Sign in once and every step reads the token from there.

Point the HTTP Client at the API

Add an HTTP Client step and use https://{your-mautic-domain}/api as the base URL. Or paste a cURL example from Mautic's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List contacts”

It's one of 21 documented actions, under Contacts. The response comes back as data the next step can map into your other apps.

Start workflows from Mautic events

Give Mautic the URL of a Tray.ai webhook trigger. “Contact created” can then start a workflow, and so can 9 other events.

Workflows to build with Mautic

Connect Mautic with Salesforce, Slack and Shopify

Each one uses actions and events from Mautic's own API documentation.

Send Mautic form leads to Salesforce

When

Form submitted

Then

  1. Create a lead in Salesforce
  2. Add contact to segment for new leads

With Salesforce

Alert sales in Slack when a Mautic score jumps

When

Contact points changed

Then

  1. Create a task for the account owner in Salesforce
  2. Post the contact and score to the sales channel in Slack

With Salesforce and Slack

Add Shopify buyers to a Mautic campaign

When

An order is placed in Shopify

Then

  1. Create a contact
  2. Add contact to campaign for post-purchase emails

With Shopify

Apps you can build on Mautic data

Internal tools your team can build with an AI assistant, each one using Mautic calls from its API documentation.

Lead scoring review

Shows contacts whose points changed and lets a marketer add points or move the contact into a segment.

Form submission inbox

Lists new form submissions with the contact record and lets sales add the contact to a campaign.

Account contact list

Lists companies with their contacts so sales can see who engaged and edit company details.

Give your AI agents Mautic tools

Build an MCP server on Mautic in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List contacts
  • List segments
  • List campaigns
  • List emails
  • List companies
  • Create a contact
  • Edit a contact
  • Delete a contact

What the Mautic API covers

5 resources and 21 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Contacts

  • List contacts
  • Create a contact
  • Edit a contact
  • Delete a contact
  • Add points

Segments

  • List segments
  • Create a segment
  • Add contact to segment
  • Remove contact from segment

Campaigns

  • List campaigns
  • Create a campaign
  • Add contact to campaign
  • Remove contact from campaign

Emails

  • List emails
  • Create an email
  • Send email to contact
  • Send email to segment

Companies

  • List companies
  • Create a company
  • Edit a company
  • Delete a company

Events Mautic can send to a Tray.ai webhook trigger

  • Contact created
  • Contact updated
  • Contact deleted
  • Contact points changed
  • Form submitted
  • Email opened
  • Email sent
  • Page hit
  • Company saved
  • Company deleted

Checked against Mautic's own documentation on 2026-10-22

devdocs.mautic.org/en/latest/rest_api/getting_started.html

Frequently asked questions

What can a Tray.ai workflow do in Mautic?

The Mautic API documents 21 actions across 5 resources (Contacts, Segments, Campaigns, Emails, Companies). For example: List contacts; List segments; List campaigns. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Mautic?

The Mautic API uses OAuth 2.0 and basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Mautic events can start a Tray.ai workflow?

Mautic sends 10 events to a webhook URL, for example: Contact created; Contact updated; Contact deleted; Contact points changed; Form submitted; Email opened; Email sent; Page hit. A Tray.ai webhook trigger receives them and starts a workflow.

See Mautic working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.