Get Mail sync status
GET
/api/v1/mail/accounts/{id}/sync
const url = 'https://example.com/api/v1/mail/accounts/example/sync';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/mail/accounts/example/sync \ --header 'Authorization: Bearer <token>'Requires a signed-in User. It returns the account’s last sync times, retry time, last error and folder progress. It returns 404 when the account is missing. Route: /api/v1/mail/accounts/{id}/sync. Inputs: id. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Media typeapplication/json
object
account_id
required
string
backfill_complete
required
boolean
enabled
required
boolean
folders
required
Array<object>
object
account_id
required
string
backfill_complete
required
boolean
backfill_top_uid
integer | null format: int32
delimiter
string | null
id
required
string
low_water_uid
integer | null format: int32
message_count
required
integer format: int64
name
required
string
selectable
required
boolean
special_use
required
string
uid_validity
integer | null format: int32
unread_count
required
Live messages in this folder without \Seen (sidebar badge, #396).
integer format: int64
last_attempt_at
string | null
last_error
string | null
last_sync_at
string | null
retry_after
string | null
Examplegenerated
{ "account_id": "example", "backfill_complete": true, "enabled": true, "folders": [ { "account_id": "example", "backfill_complete": true, "backfill_top_uid": 1, "delimiter": "example", "id": "example", "low_water_uid": 1, "message_count": 1, "name": "example", "selectable": true, "special_use": "example", "uid_validity": 1, "unread_count": 1 } ], "last_attempt_at": "example", "last_error": "example", "last_sync_at": "example", "retry_after": "example"}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}