Skip to main content
GET

Path Parameters

string
required
Full mailbox address (eva@wireboxmail.com) or local agent handle (eva).

Query Parameters

integer
default:"50"
Number of messages to return (1–100).
boolean
Filter by read state: true returns read messages, false returns unread messages.

Response

object[]
Message summaries ordered by created_at descending.
string
Unique message identifier (msg_ prefix).
string
Conversation thread this message belongs to.
string
inbound or outbound.
string
Sender email address.
string[]
Recipient email addresses.
string
Subject line.
string
Short preview of the message body.
boolean
Whether the message has been read.
boolean
Whether the message is starred.
boolean
Whether the message has attachments.
string
ISO 8601 creation timestamp.
string | null
Pagination cursor. Reserved for future use; currently always null.
boolean
Whether more messages are available. Reserved for future use; currently always false.

Search Messages

Runs a full-text search across the mailbox — subject, body, sender, and snippet — and returns matches ranked by relevance. Each result uses the same message shape as the list endpoint, plus a highlight fragment around the best match when available.

Path Parameters

string
required
Full mailbox address (eva@wireboxmail.com) or local agent handle (eva).

Query Parameters

string
required
Search terms. Required — an empty query returns 400 invalid_request.
integer
default:"50"
Maximum number of matches to return (1–100).

Response

object[]
Matching messages, ranked by relevance.
object[]
The same array as items, kept for compatibility with the list endpoint.
integer
Number of matches returned.
Notes:
  • Each result includes highlight and highlights.text when the search engine can produce a highlighted fragment; substring fallback matches omit them.
  • MCP clients can run the same search with the wirebox_mail_search tool — see the MCP.