# ForeignArchive

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 named type of the API.

Each entry describes a backup archive from another control panel and its current status on the Import page.

## Fields

- `account` (string or null): Username of the account created by the import.
- `changed` (boolean): Whether the file's size or modification time differs from the recorded value. If either differs, the saved inspection is stale and state is new.
- `choices` (ForeignArchiveChoices): These options apply when inspecting or importing a tracked archive. They have the same meaning as in ForeignImportRequest.
- `dir` (string): Directory containing the archive, given from the root of the reseller's home directory for reseller archives.
- `error` (string or null): Reason the import failed.
- `id` (integer)
- `import` (object or null): Full inspection response, including what the import would create and the check results. Only GET /foreign/archives/{id} returns this field.
- `job` (object or null): Import job details while the job record is available. Includes id, status, progress, step (the last line of the job log), started_at and finished_at, with error if the job failed.
- `mtime` (string): File modification time in UTC.
- `name` (string)
- `owner` (string or null): Reseller who owns the archive entry, or null for a server-level entry.
- `path` (string)
- `present` (boolean): Whether the archive file is still present.
- `read_at` (string or null)
- `read_error` (string or null): Reason the most recent inspection failed.
- `seen_at` (string)
- `size` (integer): Current file size in bytes, or the last recorded size if the file is missing.
- `state` (string, one of new, read, unreadable, importing, imported, failed)
- `summary` (object or null): Summary of the saved inspection. It includes ok, stops, installs and warnings, account details in name, old_name, package and owner, counts for domains, databases, skipped_databases, mailboxes, forwarders, certificates, ftp, cron_jobs and not_carried, and the archive's panel_version and hostname.

## Used by

- [GET /foreign/archives](https://urbestack.com/docs/api/get-foreign-archives.md): List tracked hosting account archives
- [POST /foreign/archives/scan](https://urbestack.com/docs/api/post-foreign-archives-scan.md): Scan a directory for account archives or add a single archive
- [GET /foreign/archives/{id}](https://urbestack.com/docs/api/get-foreign-archives-id.md): Get a tracked archive and its saved inspection
- [POST /foreign/archives/{id}/import](https://urbestack.com/docs/api/post-foreign-archives-id-import.md): Queue an import for a tracked archive
- [POST /foreign/archives/{id}/inspect](https://urbestack.com/docs/api/post-foreign-archives-id-inspect.md): Inspect a tracked archive and save the report
