cloadyDocs
API ReferenceEndpointsWorkspaces

Copy a migration's mail now

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.

POST
/api/workspaces/{workspaceSlug}/mail/migrations/{id}/run
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
id*string
Match^([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)$
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/mail/migrations/497f6eca-6276-4993-bfeb-53cbbbba6f08/run"
{  "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"  }}