Send an event to Brew to trigger automations and update contact data. Events can trigger automations, update contact properties, add contacts to subscription groups, and update basic contact information like names and user IDs. Perfect for tracking user actions like signups, purchases, or feature usage while keeping contact data in sync.
Include your Brew API key as a Bearer token in the Authorization header. Example: Authorization: Bearer bw_api_your_key_here
Unique identifier to prevent duplicate events. Especially important for purchase events or other critical actions where duplicates could cause issues.
100Provide the contact's email, event details, and optionally contact information to update. Event properties become available as variables in triggered emails.
JSON request body fields for sending an event
Email address of the contact to associate with this event
Name of the event (used to trigger automations)
"purchaseComplete"
Contact's first name (will update contact if they exist, or set when creating new contact)
"Alex"
Contact's last name (will update contact if they exist, or set when creating new contact)
"Johnson"
Unique external user ID (e.g., from your app or CRM)
"user_12345"
Custom source value to track where the contact came from (defaults to "API")
"Website signup"
Whether the contact is subscribed to marketing emails
Additional data about the event (available as variables in triggered emails)
{
"orderTotal": 149.99,
"productName": "Pro Plan",
"isFirstPurchase": true
}Subscription groups to add the contact to
{ "sg_customers": true }Event sent successfully and will trigger any matching automations
Success response for event sending
Indicates the event was processed successfully
true