hosting
GET /v1/migrations/account-imports/{importId}
Every picked site's state in a whole-account import.
Authentication
Send an API key as a bearer token. The key must carry the hosting.import.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 GET https://api.zinndigital.com/v1/migrations/account-imports/{importId} \
-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
One row per picked site: the item's outcome (pending, succeeded, failed, skipped) with its machine error_code and keyed refusal for a failure, and, once the site exists, its site_id and its migration's status (the copy itself runs for hours on the site's own migration; poll that for its detail). Scoped to the caller's own organisations - another tenant's import is a 404. Requires hosting.import.manage.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
importId (path) | Uuid | Yes | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
id | Uuid | Yes | UUIDv7 identifier — sortable by creation time. |
status | string | Yes | — |
source | string | Yes | — |
host | string | Yes | — |
created_at | string | Yes | — |
sites | AccountImportSite[] | Yes | — |
Errors this endpoint can return
401 · 403 · 404