# Flexmail integrations: contacts and interests

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

**Canonical page:** https://tray.ai/connectors/flexmail-integrations/
**Categories:** Marketing
**Connects through:** HTTP Connector

## Overview

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.

## Use cases

### Contacts

Read, create, and update contacts in Flexmail from any Tray.ai workflow. The Flexmail API covers calls such as list contacts and create a contact.

- List contacts
- Create a contact
- Update a contact

### Interests

Read, create, update, and delete interests in Flexmail from any Tray.ai workflow. The Flexmail API covers calls such as list interests and create an interest.

- List interests
- Create an interest
- Update an interest

### Contact imports

Create contact imports in Flexmail from any Tray.ai workflow. The Flexmail API covers calls such as create a bulk import and add records to an import.

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

### Opt-ins

Read and create opt-ins in Flexmail from any Tray.ai workflow. The Flexmail API covers calls such as submit an opt-in and list opt-in forms.

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

### Webhooks

Read, create, and delete webhooks in Flexmail from any Tray.ai workflow. The Flexmail API covers calls such as list webhooks and create a webhook.

- List webhooks
- Create a webhook
- Delete a webhook

### Flexmail events

Start a Tray.ai workflow the moment something happens in Flexmail. Flexmail sends events such as contact created and contact updated to a Tray.ai webhook trigger.

- Contact created
- Contact updated

## Challenges Tray.ai solves

### Keeping Flexmail credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Flexmail credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Flexmail API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Flexmail API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Flexmail?

Yes. Tray.ai connects to Flexmail through the HTTP Connector, which calls the Flexmail API directly. Any call the Flexmail API documents can run as a step in a Tray.ai workflow.

### 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.

### Can I get a dedicated Flexmail connector?

Flexmail runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Flexmail connector from the Flexmail API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
