Block until a matching message arrives (wait_for_email)
POST /v1/inboxes/{inbox_id}/wait
The killer primitive. Blocks (IMAP poll) until the next matching message arrives in this inbox or the timeout elapses, returning the message plus an extracted OTP code / verification link.
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.
Request Body
Section titled “Request Body ”Block until a matching message arrives. The inbox is taken from the path on POST /v1/inboxes/{inbox_id}/wait; on the legacy POST /v1/wait it is the address field.
object
Required on POST /v1/wait; ignored on the inbox-scoped path.
Substring match on the From header.
Substring match on the Subject header.
Regex matched over subject + body.
Hint to bias verification-link extraction.
Max seconds to block (default 300, capped at 600).
When true (default), match only arrivals after the wait begins.
Responses
Section titled “ Responses ”Matched or timed out.
object
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).
OTP code / verification link extracted from the matched message.
object
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