GET /v1/analytics/events is a unified event feed across four domains: email, automation, trigger, and inbound. Filter by recipient to get one contact’s email events (a recipient filter narrows the feed to the email domain), or by eventType / automationId / sendId to slice the whole brand. Requires the emails scope.
Every delivery event attaches to the sendId it came from, so you can also scope the feed to a single send: pass ?sendId= here, or read that send with GET /v1/sends/{sendId}?include=events for a bounded first page on the row itself. See Monitor Email Sends.
When from/to are omitted the API defaults to the last 7 days, except for a sendId or automationRunId read, which spans that send or run unless from/to are given. The response carries { data, pagination, range }.
One Contact’s Email Events
Export Every Page
The SDK auto-pager walks every page so you never touch the cursor:Filter by Event Type or Automation
eventType takes one exact type, such as delivered, opened, clicked or bounced (not open or click); any other value is a 400 INVALID_REQUEST. A sendId read covers the whole send, so the last example needs no from.
The filter is recipient; the row field it matches is recipientEmail. Each EventRow carries domain, eventType, recipientEmail?, sendId?, emailId?/emailName?, automationId?/automationName?, nodeId?, mode? (live | test), and a human summary?.
Count Events Instead of Listing Them
AddgroupBy, bucket, or both to count the email events the same filters list instead of returning them. groupBy takes one or two comma-separated fields: eventType, emailId, automationId, sendId, source, link, recipientDomain, unsubscribeReason. bucket takes day, week or month (UTC; weeks start Monday).
In the SDK and CLI, counting is its own call: analytics.eventCounts() and brew-cli analytics event-counts. Since SDK 13.4.0, analytics.events() refuses groupBy and bucket with a BrewInputError.
count for the total and otherCount for the groups left out. On a busy window it answers truncated: true; narrow from/to or add eventType to count all of it. The GET /v1/analytics/events page in the Public API v1 reference has the full response and limits.
A count takes no cursor or automationRunId (400), and limit is ignored. count counts events, not unique recipients, and an unsubscribe counts once per reason it gave. On a group of opened, clicked or delivered events (not grouped by link), recipients counts each recipient once per message within range, leaving out repeat and machine opens and clicks; with bucket, a recipient falls in the period of their first open or click. For windowed unique totals across the brand, use GET /v1/analytics/overview. Over MCP, get_email_analytics with report.kind: "events" takes the same groupBy and bucket.
The Open-Time Profile
Brew keeps one open-time profile per contact: when in the day they open email. Ask a contact read foropenProfile to get it. Intelligent send doesn’t read this profile. It times each contact from their human opens and clicks directly.
openProfile is null until Brew has recorded an open for the contact. Otherwise it holds a 48-slot histogram of opens per UTC half hour. With enough history, it also names bestSendMinuteUtc (minutes after midnight UTC) and a confidence from 0 to 1. The contact read in the Public API v1 reference lists every field.
The profile counts opens as the mail provider reports them. Privacy proxies and security scanners that fetch images on delivery look like opens here, and nothing in the profile tells them apart, so don’t use it for bot detection. The event feed does classify each open: GET /v1/analytics/events leaves machine-classified opens out unless you pass includeMachineOpens=true.
For a Page of Contacts
POST /v1/contacts/search takes include: ["openProfile"] in its body and attaches the profile to each returned contact. Each row costs a profile read, so a page holds at most 10 contacts, whatever limit asks; pagination.limit reports the size read. count: true can’t be combined with it (400 INVALID_REQUEST). Over MCP, search_contacts takes the same include.
emails scope as well as contacts, because the profile is engagement data. A contacts-only key gets 403 INSUFFICIENT_PERMISSIONS when it asks for openProfile, and reads contacts without it as before.
Related
GET /v1/analytics/eventsin the Public API v1 reference (sidebar): full schema + filters.- Reading analytics: the dashboard view of the same data.
- Pagination: cursor semantics.
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.