GET /api/status
Returns the current server state: how many file operations are in progress and which WIM is open.Response
Number of ongoing file operations (extract, add, delete, replace, batch-import).
Absolute path of the currently open WIM file, or
null if no file is open.Example
GET /api/wimlib-version
Returns the version of the bundledwimlib-imagex.exe.
Response
Parsed version string, e.g.
"1.14.4".The full first line of
wimlib-imagex --version output, e.g. "wimlib-imagex 1.14.4".Example
GET /api/7z-status
Returns the current 7-Zip detection status without re-running detection.Response
true if a usable 7z.exe was found.Full path to the detected
7z.exe, or an empty string if not found.Detection source, e.g.
"system-7z" or "not-found".Error message when
available is false, otherwise an empty string.Example
POST /api/7z-test
Re-runs 7-Zip detection and verifies the detected executable is callable. Updates the server’s internal status. No request body is required.Response
Same fields asGET /api/7z-status, plus:
First line of
7z --help output (e.g. "7-Zip 24.08 (x64)"). Only present when 7-Zip is available.Example
POST /api/7z-install
Installs 7-Zip usingwinget install 7zip.7zip --silent. Requires winget to be available in the system PATH (included by default in Windows 11 and Windows 10 1809+).
After a successful install, the server re-runs detection and updates its internal status.
No request body is required.
Response
On success, returns the updated 7-Zip status plus:true when winget reported a successful install.Errors
| Status | Condition |
|---|---|
500 | winget failed or is not available |
Example
POST /api/7z-set-path
Configures a custom directory to search for7z.exe. Useful when 7-Zip is installed in a non-standard location.
Request
Absolute path to the directory containing
7z.exe.Example: C:\\MyTools\\7-ZipResponse
On success, returns the updated 7-Zip status plus:true when 7z.exe was found in the specified directory.Errors
| Status | Condition |
|---|---|
400 | dirPath was not provided |
404 | 7z.exe was not found in the specified directory |
Example
GET /api/pick-file
Opens a native Windows file picker dialog using PowerShell. Blocks until the user selects a file or dismisses the dialog.This endpoint may take up to 120 seconds to respond if the user takes time with the dialog. Do not set short client timeouts for this call.
Response
Absolute path of the selected file, or
null if the dialog was dismissed.Example
GET /api/pick-folder
Opens a native Windows folder picker dialog using PowerShell. Blocks until the user selects a folder or dismisses the dialog.This endpoint may take up to 120 seconds to respond. Do not set short client timeouts.
Response
Absolute path of the selected folder, or
null if the dialog was dismissed.Example
POST /api/wimlib-cmd
Runs an arbitrarywimlib-imagex command and returns its output. Intended for advanced use and the built-in terminal UI.
Request
Arguments to pass to
wimlib-imagex, as a single string. Quoted arguments are supported.The shorthand -help is automatically normalized to --help.Example: "info install.wim 1"Response
Standard output from the command.
Standard error output from the command.
Process exit code.
0 indicates success.Example
GET /api/logs/stream
Opens a Server-Sent Events (SSE) connection that streams log entries in real time as the server performs operations. The connection stays open until the client disconnects.Response
Content-Type:text/event-stream
The first event sent immediately after connecting:
ISO 8601 timestamp of the log entry.
Log level/category. One of:
"info", "warn", "error", "op", "cmd", "7z", "debug".Log message text.
Example
GET /api/logs/history
Returns the last 200 log entries buffered in memory since the server started.Response
A JSON array of log entry objects. Each entry has the same shape as an SSE event fromGET /api/logs/stream:
ISO 8601 timestamp.
Log level/category.
Log message.
Example
POST /api/exit
Shuts down the WimExplorer server process. The server responds before exiting, with a 500 ms delay to allow the response to be delivered.Request
When
false (default), the shutdown is blocked if any file operations are currently in progress. Set to true to force an immediate exit regardless.Response
When operations are in progress andforce is false:
true — the exit was prevented.Number of operations currently running.
Human-readable explanation, e.g.
"Hay 1 operación(es) en curso".true — the server will exit after 500 ms.