brevo.listEmailEvents queries Brevo’s transactional event log with offset pagination.
Example
Inputs
limit defaults to 250 and accepts up to 5,000. offset defaults to 0, and sort defaults to desc. Filter by recipient email, messageId, a non-empty tags array, or positive templateId. event accepts bounces, hardBounces, softBounces, delivered, spam, requests, opened, clicks, invalid, deferred, blocked, unsubscribed, error, or loadedByProxy. For time, use days from 1–90 or provide both inclusive startDate and endDate in YYYY-MM-DD form, never both approaches. Second argument { account } selects the Brevo binding.
Output
Returns{ events: EmailEvent[] }. Each event has date, email, event, messageId, and optional from, reason, tag, and templateId. There is no total count or next token. Advance offset by the number returned. Event filters use Brevo API names, not trigger helper names.