Skip to content

Connectors / Marketing · HTTP Connector

Flexmail integration and API

Create a contact, create an interest and create a bulk import in Flexmail, and start a workflow when Flexmail sends “Contact created”.

What can you do with Flexmail on Tray.ai?

Flexmail is an email marketing platform for managing contacts, interests and preferences, opt-in forms, and segments used in email campaigns. Tray.ai connects to Flexmail through the HTTP Connector, so your workflows can call the Flexmail API alongside the rest of your stack.

  • When Flexmail sends “Contact updated”, copy the changes to the contact in your CRM.
  • Submit an opt-in to Flexmail when someone ticks the newsletter box at checkout in your online store.
  • Unsubscribe a contact in Flexmail when they opt out in your CRM.
Connects through
HTTP Connector
Authentication
Basic authentication
Base URL
https://api.flexmail.eu

Set it up

Connect Flexmail to Tray.ai

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

Save Flexmail's username and password

Save the credentials Flexmail gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.flexmail.eu as the base URL. Or paste a cURL example from Flexmail's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List contacts”

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

Start workflows from Flexmail events

Give Flexmail the URL of a Tray.ai webhook trigger. “Contact created” can then start a workflow, and so can 1 other event.

Workflows to build with Flexmail

Connect Flexmail with Salesforce and Shopify

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

Send Shopify marketing opt-ins to Flexmail

When

A customer accepts marketing in Shopify

Then

  1. Create a contact
  2. Submit an opt-in for the newsletter

With Shopify

Add new Flexmail contacts to Salesforce

When

Contact created

Then

  1. Find the contact by email in Salesforce
  2. Create or update the contact record in Salesforce

With Salesforce

Unsubscribe Salesforce email opt-outs in Flexmail

When

A contact opts out of email in Salesforce

Then

  1. List contacts to find the email
  2. Unsubscribe a contact

With Salesforce

Apps you can build on Flexmail data

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

Subscriber preference manager

Lists contacts with their interests and lets a marketer update a contact or unsubscribe them.

Event sign-up importer

Lets a team upload a batch of event attendees as contacts through a bulk import and start it.

Give your AI agents Flexmail tools

Build an MCP server on Flexmail 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 interests
  • Create a bulk import
  • Submit an opt-in
  • List webhooks
  • Create a contact
  • Update a contact
  • Unsubscribe a contact

What the Flexmail API covers

5 resources and 16 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
  • Update a contact
  • Unsubscribe a contact

Interests

  • List interests
  • Create an interest
  • Update an interest
  • Delete an interest

Contact imports

  • Create a bulk import
  • Add records to an import
  • Start a bulk import

Opt-ins

  • Submit an opt-in
  • List opt-in forms

Webhooks

  • List webhooks
  • Create a webhook
  • Delete a webhook

Events Flexmail can send to a Tray.ai webhook trigger

  • Contact created
  • Contact updated

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

api.flexmail.eu/documentation

Frequently asked questions

What can a Tray.ai workflow do in Flexmail?

The Flexmail API documents 16 actions across 5 resources (Contacts, Interests, Contact imports, Opt-ins, Webhooks). For example: List contacts; List interests; Create a bulk import. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Flexmail?

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

Which Flexmail events can start a Tray.ai workflow?

Flexmail sends 2 events to a webhook URL, for example: Contact created; Contact updated. A Tray.ai webhook trigger receives them and starts a workflow.

See Flexmail 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.