Get an API key
Domain

records.import()

domain.records.import(zoneFile?) → Promise<{ added, parsed, skipped }>

Copies what the domain served elsewhere into our zone. Without an argument it takes what the search found — skipping the records that must not be copied.

the takeoverskips opaque recordsa zone file is the reliable path
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await domain.records.import();              // what the search found
await domain.records.import(zoneFileText);  // a zone file from the old host
domain.records.import_zone()                 # what the search found
domain.records.import_zone(zone_file_text)   # a zone file from the old host

A zone file is the reliable path

Only it carries the real lifetimes and the records nothing can observe

Observation finds what answers; it cannot enumerate. A zone file holds everything, with its real values, and most hosts can export one. Without it you are copying what was visible.

What is skipped, and why

SkippedBecause
An opaque addressIt is a proxy's, not the origin's. Copying it points the domain at a service that has never heard of it.
NS and the zone's authority recordsThey would delegate back to the host being left.

The opaque ones stay listed in migration().opaque — to finish by hand, or with a zone file.

Returns

{ added: 15, parsed: 23, skipped: [{ type, name, reason }] }
{"added": 15, "parsed": 23, "skipped": [{"type": ..., "name": ..., "reason": ...}]}

Read skipped: it is the list of what is still missing, and each entry says why.

Records are created, one by one

Each one goes through the ordinary path, and the result is reported per record. A record that did not land is named rather than lost in a batch result — run the import again, or write the missing one.

Verify before advising a switch

await domain.records.import();
const plan = await domain.migration();
if (plan.safeToSwitch) { /* now the registrar can be pointed here */ }
domain.records.import_zone()
plan = domain.migration()
if plan["safeToSwitch"]:
    pass  # now the registrar can be pointed here