What a record holds
Every audited send stores the recipient and display name, the subject, both the plain-text and HTML bodies exactly as they were sent, the delivery outcome (pending, sent, or failed), and the timestamps.
It also stores context — a small set of key/value tags describing what the
message was about. This is the part that makes the log genuinely queryable, and
it exists because the recipient is very often not the subject. A new-lead alert
is addressed to your sales desk, so filtering by recipient tells you nothing
about which lead it concerned. Tag the send instead:
Context values are flat text. Nested objects and arrays are dropped rather than
stored, because the lookup that reads them back matches on flat key/value pairs —
keeping them would advertise a query that could never work.
Reading the log
GET /v1/emails lists your organization’s mail, newest first, filtered by
recipient (to), by time (since, an RFC 3339 timestamp), or by subject text
(search). Bodies are omitted from the listing so a page of results doesn’t drag
a page of HTML documents with it.
POST /v1/emails-query — a query string can’t carry a
key/value map, so the structured probe travels in a JSON body. The probe is a
containment match: name only the keys you care about and rows carrying those
plus others still match.
GET /v1/emails/{emailID} returns one message in full, including both bodies as
they were sent.
Listings report a total alongside the page, so you can page without having to
discover the end by requesting an empty result.
Tagging what you send
Thesend_email action takes an optional context object, wherever you invoke
it — from an agent, from a script.run step on an event pipeline, or from a
scripted job:
Access
The log is scoped to the organization of the caller, enforced in the query itself. Requesting a message id belonging to another organization returns not found — identical to an id that doesn’t exist, so the endpoint can’t be used to probe for someone else’s mail.Related
Inboxes
The other direction — an address Erdo can receive at.
Event pipelines
Where lead-arrival alerts are usually sent from.

