Cancel a mail migration
Stops a migration and forgets the passwords it was given; on a finished migration it only forgets the passwords. Mail already copied stays. Needs the admin role.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/mail/migrations/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "migration": { "id": "string", "domain": "string", "provider": "google", "status": "pending", "source": { "host": "string", "account": "string" }, "authorize": { "url": "string", "clientId": "string", "scopes": [ "string" ] }, "mailboxes": [ { "from": "string", "to": "string", "status": "pending", "messages": -9007199254740991, "copied": -9007199254740991, "error": "string" } ], "error": "string", "createdAt": "string", "startedAt": "string", "finishedAt": "string" }}Move mail in from another provider POST
Copies mailboxes with their folders, read state and flags into the workspace's mailboxes on a domain with email on, and contacts too from Microsoft 365, creating mailboxes that don't exist yet without a password (reset one in updateMailbox). Google Workspace needs a super administrator to allow Cloady's client ID with domain-wide delegation, Microsoft 365 a global administrator's consent: `authorize` says how, and copying starts once it's done (runEmailMigration starts it at once). Only mailboxes the provider lists on the domain are copied, from a Google customer or Microsoft 365 tenant that owns the domain; a listed mailbox it doesn't list ends `canceled`. Google Workspace and Microsoft 365 answer 503 `provider_unavailable` while Cloady isn't set up for them. Migrations need a card on the workspace owner's account (402 `payment_required`), create missing mailboxes at 2 GB within the mailbox and storage limits (409 `mailbox_limit`, `storage_limit`, `storage_full`), copy one mailbox at a time per workspace, and refuse IMAP servers that resolve into a private network or the cluster (400 `bad_host`). Zoho and other IMAP servers copy mail with each mailbox's password, which is kept encrypted until the migration is canceled or 14 days after its last copy. Switch the domain's MX when the copy is done, then run the migration again to copy what arrived meanwhile. Needs the admin role.
Copy a migration's mail now POST
Starts copying once the old provider's administrator has allowed it, or copies what arrived at the old provider since the last run, as after switching the domain's MX. Answers 409 `not_authorized` while `authorize` is still to do, `running` while a copy runs, and `unverified` while sending from the domain is paused because the workspace no longer proves it's its own. Needs the admin role.