The mailbox's own analytics

GET/api/v1/mailbox/insights
Requires amailbox token— it acts as one mailbox holder, not as the organization.

Server-side aggregation over this mailbox's INBOX, Sent and Drafts headers: attention backlog, response times, weekly rhythm, relationships and hygiene, threaded by RFC 5322 identifiers. Every top-level block is independent -- a block that cannot be computed is omitted, and the client hides that section. Results are cached per window; window.to is the compute time. refresh=true recomputes, rate-limited per mailbox; when throttled, the cached copy is served.

Parameters

NameInTypeDescription
windowquerystring
refreshqueryboolean

Request

GET/api/v1/mailbox/insights
curl -X GET 'https://app.mailyte.com/api/v1/mailbox/insights' \
  -H 'Authorization: Bearer MAILBOX_TOKEN'
The key names its own organization, so no X-Organization-ID header is needed.

Response

Successful Response

Returned inside the standard envelope.

Errors

StatusWhen
422Validation Error

Every status, with what causes it and what to do, is on the error reference.