IntegrationAuth event triggers
Connect Clerk to start branded emails when someone signs up, joins an organization, starts a Clerk Billing subscription, or joins your waitlist. Clerk signs each webhook, and Brew turns 17 event types into automation triggers.
Clerk remains responsible for sign-in, organizations, and billing. Brew only listens for events. It cannot change users, create organizations, or charge subscriptions.
organization.created carries no email address. Brew looks up the creator's user ID among the identities it has already seen in earlier Clerk events on the current connection. If it finds a real email, the event proceeds. If not, Brew records the event as an unresolved recipient, creates no contact, and starts no automation.
Subscribe to user.created as well, so Brew can learn creator addresses. For an email that must reach a person every time, use organizationMembership.created, which carries the member address.
Brew supports these 17 event types:
Each verified event with a real email address creates or updates a Brew contact, matched by email, whether or not an automation uses the event. When the data is present, Brew sets first and last name and clerk_user_id.
user.created and user.updated set clerk_account_status, clerk_created_at, clerk_last_sign_in_at, clerk_last_active_at, clerk_email_verified, clerk_phone, clerk_username, clerk_avatar_url, clerk_auth_provider, and clerk_external_id. Scalar values in public_metadata land as clerk_metadata_<key>.
clerk_account_status is active, banned when Clerk bans the user, or deleted after user.deleted. A ban or a deletion unsubscribes an existing contact unless it holds a different clerk_user_id, and never creates a contact. An unban sets the status back to active but does not resubscribe the contact. user.deleted carries only the user ID, so Brew uses the email address it saw for that user on an earlier Clerk event. Without one, the event is recorded as unresolved.
Invitation and membership events set clerk_organization_id, clerk_org_role, and clerk_org_role_name, and clerk_organization_name and clerk_organization_slug when the event carries them. clerk_org_membership_status is invited, active, or removed. Leaving an organization does not unsubscribe the contact.
Billing events set clerk_subscription_status with Stripe's values, such as trialing, active, past_due, canceled, and incomplete_expired. subscriptionItem.canceled keeps the status active and sets clerk_cancel_at_period_end to true, because Clerk keeps the plan until its period ends. subscriptionItem.ended then sets it to canceled and clears the plan fields. Billing events also set clerk_subscription_plan, clerk_subscription_plan_slug, clerk_plan_amount_cents, clerk_plan_interval, clerk_currency, clerk_renews_at, and clerk_trial_ends_at when the event carries them.
paymentAttempt.created sets clerk_last_payment_attempt_status, clerk_last_payment_attempt_at, and clerk_last_payment_amount_cents. Fields ending in _cents are in the smallest currency unit, and clerk_currency is a lower-case ISO 4217 code, such as usd. waitlistEntry.created sets clerk_waitlist_status.
Use the selected event's declared payload schema for merge tags. Every event includes email, firstName, lastName, and createdAt. Other fields depend on the event, such as planName, planAmount, roleName, organizationName, and grandTotalFormatted. planAmount and grandTotalAmount are in the smallest currency unit, so 2000 is $20.00 in USD. Timestamps are Unix seconds.
Clerk object IDs, such as user, organization, and subscription IDs, are not merge tags. The user ID lands on the contact as clerk_user_id.
A Clerk account does not establish consent for marketing email. Record consent at sign-up and check it before promotional sends.
Not reliably. Brew receives paymentAttempt.created only, not later updates to the attempt. Its status field can read pending, paid, or failed, but a payment that fails after the attempt is created reaches Brew as an unsupported event. For missed payments, use subscriptionItem.pastDue. For a total in email copy, grandTotalFormatted holds a pre-formatted value such as $22.00.
Receiving an event and sending an email are separate steps. Confirm a matching automation is Live, then check its filters, execution history, recipient eligibility, and sending domain. A Send Example delivery verifies the webhook but never starts an automation, and an organization.created or user.deleted event without a known email address is recorded as unresolved.
7-day free trial. Card required, cancel any time.