Full-text search messages in an inbox
GET /v1/inboxes/{inbox_id}/messages/search
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Opaque inbox id (the canonical path key). The inbox’s email address is also accepted here as a within-project alias. Treat the id as opaque.
Query Parameters
Section titled “Query Parameters ”Search query (required).
IMAP folder to read (default INBOX).
Page size for the cursor-paginated agent surface (default 50; clamped to the 1-100 range).
Result offset for the legacy offset-paginated surface.
Responses
Section titled “ Responses ”Ok
A paginated page of messages.
object
The canonical message wire shape (agent plane).
object
Opaque
Example
msg_8TzExample
thr_9aBExample
agent7@extrovertmail.comDerived relative to the owning inbox.
A structured RFC5322 address.
object
Example
Acme SupportExample
support@acme.testA structured RFC5322 address.
object
Example
Acme SupportExample
support@acme.testA structured RFC5322 address.
object
Example
Acme SupportExample
support@acme.testA structured RFC5322 address.
object
Example
Acme SupportExample
support@acme.testDecoded UTF-8 text/plain MIME alternative; null when the message had no plain-text part. Never derived from HTML.
Decoded text/html MIME alternative; null for text-only mail. Never synthesized from plain text.
Best-effort derivative of text with quoted history and signatures removed; null when text is absent or no authored text remains. Not authoritative.
Best-effort derivative of html with common quoted-history containers removed; null when html is absent or no authored HTML remains. Not authoritative.
Original Date header value.
RFC5322 Message-ID.
RFC5322 In-Reply-To header.
RFC5322 References header chain.
Native IMAP \Seen flag (read state).
Present when more results remain; pass the opaque value back as cursor.
Invalid request.
The canonical error envelope. error is a stable machine code.
object
Stable error code (e.g. unauthorized, forbidden, not_found, invalid, quota_exceeded, rate_limited).
Example
forbiddenHuman-readable detail (never leaks internals).
Example
missing required scopeMissing or invalid credential.
The canonical error envelope. error is a stable machine code.
object
Stable error code (e.g. unauthorized, forbidden, not_found, invalid, quota_exceeded, rate_limited).
Example
forbiddenHuman-readable detail (never leaks internals).
Example
missing required scope