Import history
POST
/mailboxes/{id}/importsStarts bringing a mailbox’s older mail into DMU Mail. New mail arrives by itself; this is for the years before the mailbox was connected.
Needs the permissionimports:start
The import runs in the background, newest mail first. Follow it with List imports, and stop it whenever you like: what’s imported by then stays. A mailbox runs one import at a time.
Path parameters
idstringrequired- The mailbox.
Body
folderslist of stringsrequired- The folders to import, by
path. List imports with?folders=1shows what’s on the server. rangestringoptionalall,1y,6mor1m. Defaults toall.
Returns
idstring- The import. Pass it as
runIdto stop it. statusstring- Always
queued.
Errors
400bad_rangerangeisn’t one of the four.400import_refused- It couldn’t start, for example with no folders. The message says why.
401invalid_key- The key is wrong, expired or revoked. With no Authorization header at all, the code is
missing_credentials. 403missing_scope- The key doesn’t have
imports:start. TheX-Required-Scopeheader names what’s missing. 404not_found- There’s no such mailbox, or the key’s owner can’t see it.
409import_running- This mailbox already has an import running.
429rate_limited- More than 120 requests a minute from this key. Wait for
Retry-Afterseconds.