- Events. A member added to an organization can start a published automation, such as a welcome email.
- Contacts. New members add a contact to your audience, with
stytchfields.
How It Connects
Stytch sends the events selected on its webhook endpoint to Brew. Adirect.member.create event can start a published automation that uses Stytch - Member Added.
A member update can reach an existing contact even when no automation uses the update trigger. Recent events marks each verified delivery signature ok.
Requirements
- A Stytch B2B project and a Brew brand.
- A Stytch webhook endpoint that points to Brew and subscribes to the B2B events you want Brew to receive.
Setup
To check an existing connection, open Webhooks in your Stytch B2B project. Check the subscriptions on the endpoint that points to Brew. For the member welcome, check that the endpoint subscribes todirect.member.create.
Events
Brew has seven Stytch triggers, for Consumer and B2B events. All seven declareemail as a required string and createdAt as an optional integer. They also declare firstName and lastName as optional strings.
Use these fields as merge tags. To see a trigger’s fields in Brew, open it in the automation editor. Its Payload section lists the Fields and an Example JSON.
Contacts
Brew can create a contact when a B2B member is added. The contact can includefirstName and lastName, and these stytch fields:
stytchMemberId,stytchOrganizationId, andstytchProjectstytchAccountStatus,stytchOrgRole,stytchCreatedAt, andstytchEmailVerified
updatedAt on the existing contact. Its email, member ID, and organization ID stay the same.
A new Stytch member contact can be subscribed, with no consent record. Confirm the person opted in before you send marketing email.
Check It Works
- Confirm the project is connected. Review the published automations that use Stytch - Member Added.
- Create a test member through the Stytch B2B API in the connected project.
- In Brew’s Recent events, look for
direct.member.createwith FIRED and signature ok. Check the matched and started counts. - Look up the test member’s email in Brew to check the contact.
Common Patterns
- Welcome new members. Bind a welcome automation to Stytch - Member Added. To check delivery, look for Sent and Delivered in Analytics with Stytch - Member Added in the Source column.
- Confirm a member update reached the contact. Find the Stytch - Member Updated receipt, then read the contact. Check that
updatedAtadvanced and the member ID is unchanged.
Limits
- Organization events. Brew records
direct.organization.create, but it has no member to email. Its receipt readsrejectedwithunresolved_recipientand zero runs. Readiness still readsreceivedfor it. - Receipts. A receipt shows its processing state and the runs it started, not the event’s values. Read the payload contract for declared fields and the contact for stored values.
Troubleshooting
A member event is missing
A member event is missing
Check the event subscriptions on the webhook endpoint in the connected Stytch project.
A member receipt has zero matches or runs
A member receipt has zero matches or runs
Check which published automations use that trigger.
From an Agent or Code
Connecting Stytch is app-only. After that, an agent connected over MCP can check deliveries and build automations. Ask in plain English:“Has Brew received a direct.member.create event from Stytch, and did it start a run?”
“Build a welcome automation on Stytch Member Added and test it as a draft without sending email.”From code:
GET /v1/integrationsshows whether Stytch is connected.GET /v1/automations/triggers/{triggerEventId}/readinessreturnsdelivery.delivery.statusanddelivery.lastReceivedAtshow whether Brew saw an event and when.GET /v1/automations/trigger-instanceslists each receipt with its state, any rejection reason, and the runs it started.GET /v1/automations/triggers/{triggerEventId}/contractreturns the trigger’s declared fields.
Need Help?
Our team is ready to support you at every step of your journey with Brew. Choose the option that works best for you:- Self-Service Tools
- Talk to Our Team
Search Documentation
Type in the “Ask any question” search bar at the top left to instantly find relevant documentation pages.
Ask ChatGPT or Claude
Click here to open the Copy page menu at the top of this page, then send the page to ChatGPT, Claude, or your editor.