Mark a message read or unread
PATCH /v1/inboxes/{inbox_id}/messages/{id}
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.
Opaque message id (msg_...). Encodes its owning inbox.
Request Body required
Section titled “Request Body required ”object
Set the native IMAP \Seen flag (true = read, false = unread).
Responses
Section titled “ Responses ”The updated message.
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).
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 scopeResource not found.
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