# Flexmail API Documentation

This is the complete API documentation for connecting to the Flexmail API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Flexmail connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/flexmail/actions/{actionSlug}/run
```

## Flexmail actions

- PUT `add-contact-import-records` Add Contact Import Records
- POST `create-contact` Create Contact
- POST `create-contact-import` Create Contact Import
- POST `create-interest-subscription` Create Interest Subscription
- POST `create-webhook` Create Webhook
- DELETE `delete-interest-subscription` Delete Interest Subscription
- DELETE `delete-webhook` Delete Webhook
- GET `get-contact` Get Contact
- GET `get-contact-import` Get Contact Import
- GET `get-webhook` Get Webhook
- GET `list-contact-interest-subscriptions` List Contact Interest Subscriptions
- GET `list-contacts` List Contacts
- GET `list-custom-fields` List Custom Fields
- GET `list-interests` List Interests
- GET `list-opt-in-forms` List Opt-In Forms
- GET `list-segments` List Segments
- GET `list-sources` List Sources
- GET `list-webhooks` List Webhooks
- PUT `replace-contact` Replace Contact
- PUT `start-contact-import` Start Contact Import
- POST `submit-opt-in` Submit Opt-In
- PUT `unsubscribe-contact` Unsubscribe Contact
- PUT `update-contact` Update Contact
- PUT `update-webhook` Update Webhook
