POST /v1/mail/mailboxes/{mailboxId}/imports/{importId}/resync
Copy new mail from the other provider now.
Authentication
Send an API key as a bearer token. The key must carry the mail.manage permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/mail/mailboxes/{mailboxId}/imports/{importId}/resync \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Asks a synced import to copy what has arrived at the other provider since its last sync, now rather than at the next 6-hourly re-sync. Only a synced import (409 otherwise). Requires mail.manage.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
mailboxId (path) | Uuid | Yes | Mailbox ID (UUIDv7). |
importId (path) | Uuid | Yes | Mailbox import ID (UUIDv7). |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
id | string | Yes | — |
mailbox_id | string | Yes | — |
status | string<pending, syncing, synced, finished, failed, cancelled> | Yes | — |
source_host | string | Yes | — |
source_port | integer | Yes | — |
source_username | string | Yes | — |
messages_copied | integer | Yes | — |
folders | MailboxImportFolder[] | Yes | — |
folders_skipped | string[] | Yes | Folders not copied on purpose (Trash, Spam, All Mail). |
error_code | string | Yes | Why a failed import failed: source_login_refused, source_host_refused, source_unreachable, source_secret_missing, destination_refused, copy_failed, not_started;… |
last_synced_at | string | Yes | — |
finished_at | string | Yes | — |
auto_finish_at | string | Yes | When an open import finishes by itself. |
created_at | string | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 409