Stay.ai is a subscription management platform designed for ecommerce brands. By connecting Stay.ai with Omnisend, you can automatically sync subscription data, trigger automation workflows based on subscription events (like new subscriptions, cancellations, or upcoming payments), and create personalized campaigns for your subscribers.
In this article, you'll learn how to set up the integration between Stay.ai and Omnisend using an API key with webhook access.
Before You Begin
You need an active Stay.ai account with access to API and webhook settings.
You must have admin access to your Omnisend account.
This integration requires a Stay.ai API key with the following scopes:
Read Subscriptions
Read Webhooks
Update Webhooks
Delete Webhooks
Benefits
Automate subscription workflows: Trigger emails or SMS based on subscription events (e.g., upcoming order reminders, failed payment recovery, cancellation win-back).
Segment your subscribers: Contacts get a
stayai_subscription_activeproperty, so you can target active or canceled subscribers.Personalize messages: Use subscription details such as products, next billing date, and billing interval in your emails and SMS.
Setup Process
Step 1. Generate an API Key in Stay.AI.
In Stay.AI, go to Account → API tokens.
Click on New API Key.
Enable the following scopes:
✅ Read Subscriptions
✅ Read Webhooks
✅ Update Webhooks
✅ Delete Webhooks
Click OK and copy the API key.
Step 2. Connect Stay.ai to Omnisend.
Log in to your Omnisend account → Go to the Omnisend App Market and search for Stay.ai. Click the 'Connect now' button and wait a few moments.
Paste the API key you copied from Stay.ai and click "Connect".
Note: If you receive an error at this step, make sure your API key has all the scopes listed above.
Step 3. Enable integration
Select all events that you want to be tracked
Click Update settings
Your Stay.ai integration is now active! Selected subscription events will automatically sync with Omnisend, and you can start building automation workflows based on those events.
What Data is Passed
Each selected Stay.ai event creates a custom event in Omnisend for that customer. Subscription details (products, prices, next billing date, billing interval, address) are available in the custom event details.
Stay.ai can create the following custom events in Omnisend:
Event in Omnisend | When it’s sent |
Stay.ai - New subscription | When a customer creates a new subscription. Also sets |
Stay.ai - Cancelled Subscription | When a subscription is cancelled. Also sets |
Stay.ai - Successful payment | When a subscription payment succeeds. |
Stay.ai - Failed payment | When a subscription payment fails for the first time in a billing cycle. Later retries by Stay.ai don’t send new events. |
Stay.ai - Upcoming Order | 3 days before the next billing date of an active subscription. Not sent for paused or cancelled subscriptions, or ones with a failing payment. |
💡 You can use these events as triggers in Automation workflows to send targeted emails or SMS.
FAQ
How quickly do events arrive in Omnisend?
Successful payment events arrive in real time. All other events are checked every 15 minutes, so they can take up to about 15 minutes to appear.
Why didn’t a customer receive an event?
Events are only sent for customers with an email address or a valid phone number in international format (e.g., +1…). Events that happened before you connected the integration are not imported.
How should I set up a failed payment flow?
Because only the first failed payment of a billing cycle creates an event, use delays inside your Omnisend automation (for example, follow-ups after 2 and 5 days) instead of waiting for more events. The payment decline reason is not included in the event details.
Why doesn’t anything happen when I try to enable event tracking?
If clicking on "update settings" and the event has not "started," the event is most likely occupied by a different integration. Check if any known integrations are using this event and disable it, or delete it yourself (note: needs a tech-savvy person) before trying to enable event tracking.
Can I trigger workflows based on subscription data?
Yes. Use custom events from Stay.ai as triggers in Omnisend automation workflows, and use the event details (e.g., product names or the next billing date) in your messages. Learn more about custom events.
What happens if the connection fails?
Check that your API key is correct, has the required webhook scopes enabled, and that your Stay.ai integration is active.
Stuck or unsure what to do next? Please feel free to reach out to our Support Team anytime via in-app chat or at [email protected]. For Stay.ai-specific questions, contact Stay.ai support.



