Connecting & configuring Maestra
Sync checkout email consents to Maestra automatically using an API integration.
Overview
When you connect Maestra, Dataships automatically syncs shoppers who consent to email marketing into your Maestra account. Shoppers can subscribe with single or double opt-in. Dataships also picks up unsubscribes and double opt-in confirmations made in Maestra, so your consent records stay the same on both platforms.
Maestra doesn't have a one-click sign-in. Instead, Maestra builds a dedicated Dataships connection in your account, and you connect it to Dataships using an Endpoint ID and a Secret Key.
Setup has five steps:
- Ask Maestra to prepare your account
- Save your Maestra details in Dataships
- Create a webhook integration in Maestra
- Build the unsubscribe flow in Maestra
- Build the double opt-in confirmation flow in Maestra
Your Dataships CSM will guide you through steps 2 to 5 during onboarding.
Note: The integration supports email only. SMS and WhatsApp consents are not synced to Maestra.
Before You Start: Ask Maestra to Prepare Your Account
Dataships can't set itself up inside your Maestra account, so Maestra needs to prepare it first. Contact your Maestra CSM or support@maestra.io and ask them to set up the following:
- The "Dataships" integration point with the 13 Dataships API methods. This is the connection Dataships uses. Maestra builds it for you.
- A production secret key for the integration point. Maestra will share it with you. Ask for a production key, because test keys expire after 12 hours and won't work.
- The five Dataships email custom properties, added to the Dataships API methods: datashipsComplianceStatusEmail, datashipsEmailConsentDateTimeUtc, datashipsMarketableEmailListType, datashipsNetNewMarketableEmail and datashipsNetNewRepeatPurchaseEmail.
- Account access switched off on the integration point.
Important: Each custom property must be created and added to the Dataships API methods. If a property is only created, Maestra drops the consent data for it without showing an error.
Wait until Maestra confirms that everything is set up before you continue.
Email template you can send to Maestra:
Subject: Dataships setup for [your company] ([project].maestra.io)
Hi Maestra team,
We're connecting Dataships for email consent. Please set up the following in our account:
1. The "Dataships" integration point with the standard 13 Dataships API methods.
2. A production secret key for it, shared with us.
3. These custom properties on the Customer entity, included in the Dataships API methods: datashipsComplianceStatusEmail, datashipsEmailConsentDateTimeUtc, datashipsMarketableEmailListType, datashipsNetNewMarketableEmail, datashipsNetNewRepeatPurchaseEmail.
4. "Account access" switched off on the integration point.Please let us know when it's done. Thanks!
Finding the Integration
In the Control Panel, go to Integrations › Marketing Platforms in the left panel, find the Maestra card and click Install.
If Maestra is already installed, click Configure, then choose Authentication in the sidebar.

Step 1: Save Your Maestra Details in Dataships
- In Maestra, go to Integrations › Integration setup and open the integration point named Dataships.
- Copy its System name (for example, yourproject.Dataships) into the Endpoint ID field in Dataships.
- Paste the production secret key Maestra shared with you into the Secret Key field.
- In Maestra, go to Settings › Brands and copy your brand's system name into the Brand field.
- Optionally, go to Settings › Mailing topics in Maestra and copy a topic's external ID into the Topic field. Shoppers will then be subscribed to that mailing topic as well as your brand.
- Click Save.

| Field | Required | What to enter |
| Endpoint ID | Yes | The integration point's System name, for example yourproject.Dataships |
| Secret Key | Yes | The production secret key for the Dataships integration point |
| Brand | Yes | Your brand's system name from Settings › Brands. Defaults to your project name |
| Topic | No | A mailing topic external ID from Settings › Mailing topics. Leave empty to subscribe at brand level only |
Your Secret Key is stored encrypted and handled like a password.
Step 2: Create a Webhook Integration in Maestra
Dataships uses webhooks to find out about unsubscribes and double opt-in confirmations that happen in Maestra. You only need to create the webhook integration once.
In the Control Panel, go to Integrations › Maestra › Configure › Email configuration. This page shows two values you'll need:
- Webhook URL: paste this into Maestra in the steps below.
- dataships_token: identifies your account to Dataships. It's already filled in to the request bodies on the page. Keep it private, like a password.
Then, in Maestra:
- Go to Integrations › Webhooks, click Create, then Create integration.
- Under General settings, click Edit, paste the Webhook URL, set Request rate limit per second to 5 and click Save.
- Keep the Content-Type header (application/json) that Maestra adds, then click Create.
- Wait until the status changes from Creating integration to No requests. This takes about a minute.
Step 3: Build the Unsubscribe Flow in Maestra
This flow tells Dataships when a shopper unsubscribes from email in Maestra.
- On the webhook integration, create a webhook with the System name DatashipsEmailUnsubscribe, method POST and an idempotency key.
- Replace the sample request body with the body shown on the Email configuration page, then click Save.
- Go to Campaigns › Campaign Manager and create an Automations › Flow.
- Set the Launch settings to Event-based, with Triggering Event set to Subscription preference changed, After set to Unsubscribed, In brand set to your brand and In channel set to Email.
- Add a Call webhook step that calls DatashipsEmailUnsubscribe and connect it to the event.
- Rename the flow to Dataships Email Unsubscribe Sync and click Launch.
Step 4: Build the Double Opt-In Confirmation Flow in Maestra
This flow tells Dataships when a shopper confirms a double opt-in. Follow the steps and use the request body shown in the Email configuration section of the Control Panel.
The confirmation email itself is sent by your own Maestra flow, so make sure that flow is live too.
Important: If you don't build these two flows, unsubscribes and double opt-in confirmations made in Maestra won't reach Dataships, and your consent records will stop matching.
How Consent Is Synced
- Single opt-in: Dataships subscribes the shopper to email in your Maestra brand, and to your mailing topic as well if you've set one.
- Double opt-in: your Maestra flow sends the confirmation email. When the shopper confirms, the double opt-in confirmation flow tells Dataships.
- Subscriptions made directly in Maestra: these also reach Dataships through the double opt-in confirmation flow. Dataships removes any duplicates.
- Unsubscribes in Maestra: sent to Dataships through the unsubscribe flow, and the shopper's consent record is updated.
- Consent details: Dataships writes consent details to the five Dataships custom properties on each contact in Maestra, so you can use them to build segments.
Viewing Your Subscribers in Maestra
Open a contact in Maestra and check their email subscription status for your brand (and your mailing topic, if you set one). The Dataships custom properties show the consent details for that contact.
New subscribers appear as orders come in, so you may not see any right after setup.
Uninstalling the Integration
Go to Integrations › Marketing Platforms, click the trash icon on the Maestra card and confirm in the modal.
Uninstalling stops future syncing. Existing contacts in Maestra are not changed.
Frequently Asked Questions
Why do I need Maestra to set things up before I connect?
The Dataships integration point and its API methods can only be created by Maestra. Dataships needs it to sync consents to your account.
Why do I need an Endpoint ID and Secret Key instead of a connect button?
Maestra doesn't support one-click sign-in for integrations. The Endpoint ID and Secret Key connect Dataships to the integration point Maestra built for you.
Where do I find my Secret Key?
Maestra shares it with you when they create the integration point. Keys are only shown once, so if you've lost it, ask your Maestra CSM for its value or for a new one.
Can I use a test key?
No. Test keys expire after 12 hours. Use a production key.
Can I subscribe shoppers to a specific mailing topic?
Yes. Add the topic's external ID to the Topic field in Configure › Authentication. Leave it empty to subscribe at brand level only.
Does Dataships sync SMS or WhatsApp consent to Maestra?
No. The integration supports email only.
Can I update my details later?
Yes. Go to Integrations › Marketing Platforms › Maestra › Configure › Authentication.
Troubleshooting
- Authentication error: check that the Endpoint ID is the full System name (for example, yourproject.Dataships) and that you're using a production key, not a test key.
- Contacts not found: Account access is switched on for the integration point. Ask Maestra to switch it off.
- Consent details missing on contacts: a Dataships custom property is missing, its name doesn't match exactly, or it hasn't been added to the Dataships API methods. Ask Maestra to check all five.
- Unsubscribes not showing in Dataships: check that the webhook integration is active, the DatashipsEmailUnsubscribe webhook uses the request body from the Email configuration page, and the Dataships Email Unsubscribe Sync flow is launched for your brand on the Email channel.
- Double opt-in confirmations not showing in Dataships: check that your confirmation email flow and the double opt-in confirmation flow are both live.