Skip to main content
Sync your Better Auth users to Sequenzy with a simple plugin. When users sign up, they’re automatically added as subscribers—enabling welcome emails, onboarding sequences, and more.

Installation

Install the official Sequenzy plugin for Better Auth:

Quick Setup

1. Get Your API Key

  1. Go to Settings → API Keys in Sequenzy
  2. Click Create API Key
  3. Copy the key and add it to your environment variables:

2. Add the Plugin

Add the Sequenzy plugin to your Better Auth configuration:
auth.ts

3. Add Client Plugin (Optional)

For TypeScript type inference, add the client plugin:
auth-client.ts
That’s it! New users will now be automatically synced to Sequenzy.

Configuration Options

What Gets Synced

When a user signs up through Better Auth, Sequenzy automatically:
  1. Creates a new subscriber with their email
  2. Syncs profile data (name parsed into first/last)
  3. Adds to specified lists (or your workspace default lists if not specified)
  4. Triggers any matching automations

Synced Attributes

List Assignment

Use Workspace Default Lists

By default, new subscribers use the default lists you choose in workspace settings:

Add to Specific Lists

To add subscribers to specific lists only:

Add to No Lists

To create subscribers without list assignment:

Supported Auth Methods

The plugin hooks into these Better Auth flows: Both new registrations and new OAuth sign-ups are synced. Returning OAuth users (already have an account) are not re-synced.

Using with Automations

Welcome Sequence

Create an automation to welcome every new user:
  1. Go to AutomationsCreate New
  2. Set trigger to Contact Added
  3. Add your welcome email sequence
  4. Activate the automation
Every Better Auth signup will now receive your welcome sequence.

Personalization

Use synced attributes in your emails:

Error Handling

The plugin is non-blocking by design. If Sequenzy is unavailable:
  • Authentication succeeds normally
  • User account is created
  • Error is logged (if onError is set)

Custom Attributes

Add any data you want to track:
These attributes are available in:
  • Subscriber profiles
  • Email personalization
  • Segment filters
  • Automation conditions

Tagging Signups

Tag new subscribers for organization or automation triggers:
You can then:
  • Filter subscribers by tag
  • Trigger automations on tag assignment
  • Create segments based on tags

FAQ

No, only new sign-ups after adding the plugin are synced. Existing users need to be imported separately via the API or CSV upload.
The plugin uses Sequenzy’s upsert API—existing subscribers get their attributes merged, not duplicated.
Yes, set enrollInSequences: false to create subscribers without triggering automations.
No. The plugin runs asynchronously after authentication succeeds. Auth flow is never delayed or blocked.
Authentication succeeds normally. The sync failure is logged via onError if provided.
Yes, the Better Auth integration is included at no extra cost.

Source Code

The plugin is open source:

GitHub Repository

View source, report issues, or contribute