Integrations

Connect Veil Mail with your favorite platforms to sync subscribers, automate workflows, and send emails from the tools you already use.

Available Integrations

Webflow

Automatically sync form submissions and e-commerce orders from your Webflow site to Veil Mail audiences.

  • Sync form submissions to audiences
  • E-commerce order webhooks
  • OAuth 2.0 authentication
  • Automatic token refresh

Ghost

Sync Ghost members and send new post notifications through Veil Mail. Perfect for newsletters and content creators.

  • Bi-directional member sync
  • New post notifications
  • Paid member filtering
  • Webhook signature verification

Shopify

Coming Soon

Connect your Shopify store to send transactional and marketing emails with full PII protection.

  • Order confirmation emails
  • Abandoned cart recovery
  • Customer sync to audiences

Self-Hosted Integrations

Our integrations are open-source and can be self-hosted. Each integration is a standalone Node.js application that connects to your Veil Mail account via the API.

Integration Repository

Find all integration source code, Docker configurations, and deployment guides in the integrations folder of our repository.

# Clone the repository
git clone https://github.com/veilmail/veil-mail.git

# Navigate to integrations
cd veil-mail/integrations

# Available integrations:
# - webflow/  - Webflow form and e-commerce sync
# - ghost/    - Ghost member and post sync
# - shopify/  - Shopify (coming soon)

Webflow Integration Setup

1

Create a Webflow App

Go to your Webflow Dashboard and create a new App with the following permissions:

  • forms:read - Read form submissions
  • ecommerce:read - Read e-commerce orders
  • sites:read - Read site information
2

Configure Environment Variables

WEBFLOW_CLIENT_ID=your_client_id
WEBFLOW_CLIENT_SECRET=your_client_secret
VEIL_API_KEY=veil_live_xxxxx
VEIL_AUDIENCE_ID=aud_xxxxx
DATABASE_URL=postgresql://...
3

Deploy the Integration

Deploy using Docker or your preferred hosting platform:

docker build -t veil-webflow .
docker run -p 3002:3002 --env-file .env veil-webflow

Ghost Integration Setup

1

Get Ghost Admin API Key

In your Ghost admin panel, go to Settings → Integrations → Add Custom Integration. Copy the Admin API Key.

2

Configure the Integration

# Create a site configuration
curl -X POST http://localhost:3002/api/sites \
  -H "Content-Type: application/json" \
  -d '{
    "ghostUrl": "https://your-blog.ghost.io",
    "ghostAdminApiKey": "xxx:yyy",
    "veilApiKey": "veil_live_xxxxx",
    "veilAudienceId": "aud_xxxxx",
    "syncMembers": true,
    "sendNewPostEmails": true
  }'
3

Configure Webhooks in Ghost

Add the webhook URLs provided by the integration to Ghost:

  • member.added: https://your-integration/webhooks/member.added
  • member.updated: https://your-integration/webhooks/member.updated
  • post.published: https://your-integration/webhooks/post.published

Build Custom Integrations

Use our REST API and webhooks to build custom integrations with any platform.

Key API Endpoints

  • POST /v1/emailsSend transactional emails
  • POST /v1/audiences/:id/subscribersAdd subscribers to an audience
  • POST /v1/campaignsCreate and send campaigns