Get email sync status for an account
Returns the latest historical-sync progress for a connected mailbox: whether a sync is in flight, last completion timestamp, and progress counters. Use this to drive a progress indicator after kicking off POST /api/email/messages/sync.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Internal _id of the EmailAccount to query.
Response
Sync status returned
Response from GET /api/email/messages/sync/status.
The account this status belongs to.
True while a historical sync is currently running.
Timestamp of the most recent successful sync, or null if none has completed.
Cumulative count of messages persisted by the latest sync run.
Best-effort estimate of total messages the sync will touch, or null when the provider does not expose a count.
Last error message if the most recent run failed; otherwise omitted.