/api/admin/import/*, which needs an admin token/api/setup/import/*, which is open only while the first-run setup wizard is running
Connection
preview and run both take the connection fields:
[{"from": "/data/movies", "to": "/media/movies"}] when the source sees your files at different paths than Kernel doessuggested_username, whether it was already_imported, and whether an existing Kernel account matched by name (with matched_username).
Run
On top of the connection fields,run takes what to import:
One plan per source user:
source_user_id, target (new, existing or skip), plus username for a new account or existing_user_id to merge into an existing one. PIN-protected Plex Home users also take a pin.GET /theme/{item_id} (see Libraries & Items).
Plex Home PIN sync
A Plex Home user protected by a PIN can’t be synced during the admin’s import. That user can sync their own watch state and watchlist later by entering the PIN once:GET /api/user/me/plex-sync: whether the signed-in user has a pending PIN syncPOST /api/user/me/plex-sync: run it. Body:{"pin": "1234"}
