Search events
search_eventsSearch email events (sends, deliveries, bounces, complaints, opens, clicks), newest first. Returns compact rows; use get_message with a row's ses_message_id for the full timeline. The date window defaults to the last 30 days — pass date_range "all_time" to search everything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows per page (default 25) | |
| query | No | Substring match against recipient email addresses and message subjects | |
| cursor | No | next_cursor value from the previous page | |
| to_date | No | ISO 8601 date or timestamp; only with date_range custom | |
| from_date | No | ISO 8601 date or timestamp; only with date_range custom | |
| source_id | No | Limit to one source (id from list_sources); omit to search all sources | |
| date_range | No | Date window preset (default last_30_days); use custom with from_date/to_date | |
| event_types | No | Only these event types | |
| bounce_types | No | Only these bounce subtypes (combine with event_types ["bounce"]) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | Present when the page is empty and a wider date window may help | |
| events | Yes | ||
| has_more | Yes | ||
| next_cursor | Yes | ||
| applied_date_range | Yes |