On this page & docs navigation

How to use

The local service embedded in the client runs automatically with the client, listening on http://127.0.0.1:19861. Every command is sent through the same entry point: cmd names the command, and the remaining fields of the request body are that command's parameters.

# 1. Get the real command list for the current version
curl http://127.0.0.1:19861/api/commands

# 2. Send any command: cmd names the command, the remaining fields are its parameters
curl -X POST http://127.0.0.1:19861/api/command \\
  -H "Content-Type: application/json" \\
  -d '{"cmd":"AutoPrint","target":"C:\\\\Reports\\\\order-1024.pdf","copies":2,"duplex":"duplexlong"}'

# 3. Success returns code=200; failure returns code + error (no msg field)
{"code":200,"data":{ ... }}

This page lists 73 commands. The "Key parameters" column lists only each command's own parameters; target, printer, copies, duplex, color, paperKind and other general print parameters apply to every print command; for values and defaults see "Print parameters & defaults". The command list is whatever this machine's GET /api/commands returns in real time — allowlists differ slightly between versions; compare against "Versions & capabilities".

Print execution

Commands that really send content to the printer. Apart from those marked "sync", queue commands are covered in the next section.

CommandWhat it doesKey parameters
AutoPrint Default behaviour when cmd is omitted: the source (inline content / local file / network address) and file form are identified from the content actually present in the request, the matching print method is chosen automatically, and a failed preferred printer triggers an automatic retry with the next printer in the candidate chain target, or content/base64 + filename; html/templateUrl switch to template printing; general print parameters
PrintFile Print a local or network file of any supported type (returns synchronously) target; general print parameters
PrintPdf PDF print command (kept for compatibility; reuses the multi-type print engine) target (label also accepted: a local path or http(s) address); general print parameters
PrintBarcode Generate a barcode / QR code and print it directly (sync) value (required), format (qr/code128/code39/ean13…, default qr), width/height (px, default 400), caption, printer, copies, paperKind
PrintToPdf Print to a PDF file (virtual printer output) target, output; general print parameters
PrintToXps Print to an XPS file (virtual printer output) target, output/outPath; general print parameters
PrintEscPos ESC/POS raw printing: text / 1D barcode / QR code sent directly as a byte stream (receipt scenarios) printer (local printer name or host:port), text, barcode + barcodeValue + barcodeFormat, qrcode, encoding
TemplatePrint Template printing (template + data mode): placeholders are replaced automatically and HTML-escaped template (inline HTML, a local template path or a template URL), data (placeholder → value mapping); general print parameters

Queue & scheduling

Asynchronous execution: jobs are written to the local queue and printed by the client in the background, with offline catch-up, idempotent de-duplication and batch waves.

CommandWhat it doesKey parameters
QueuePrint Write a print job to the local queue for asynchronous execution target, group/groupId, groupOrder, dueAt, idempotencyKey; general print parameters
GetQueue List every job in the current queue, with a summary None
RetryJob Retry a failed job id
CancelJob Cancel a queued or failed job id
RecallJob Recall a job that is queued but has not started printing, leaving an audit trail; jobs that have already printed cannot be withdrawn id/jobId, reason
ClearQueue Clear the queue finishedOnly (default true: finished jobs only)
SchedulePrint Schedule a print job to enter the queue automatically at the set time dueAt, job (target/printer/copies, etc.), idempotencyKey, note
ListSchedulePlans List all scheduled jobs (with status and next trigger time) None
RemoveSchedulePlan Withdraw a scheduled job that has not triggered yet planId/id
PrintBatch Batch / wave printing: a batch of jobs enters the queue in order under the same group jobs[] (each with target/printer/copies…), group/groupId, idempotencyKey, dueAt
RecommendPlan Recommend off-peak time slots based on the last 14 days of local print history count (1–200, default 1), startAt, withinHours, printer

Printer management

Query, select and maintain printers. The data foundation for scheduled scanning and automatic printer selection is the printer profile store.

CommandWhat it doesKey parameters
GetPrinterList List of installed printers on this machine (keeps the legacy printers/primary structure, with details and sources) None
GetPrinterDetail Installed printer details (driver, port, capabilities) None
CheckPrinterDriver Read-only check of whether this machine's printers and drivers are usable; nothing is downloaded or installed printer
SetDefaultPrinter Set a specified printer as the system default printer/name
PrintTestPage Send a test page to a specified printer printer/name
MatchPrinter Three-layer smart printer selection: file category → paper width → historical preference target (required), paperWidthMm (0 = no filtering), prefer
SetPrinterPreference Record the preferred printer for a file category (called after a manual user selection) category (pdf/office/image/text/html/svg/xps/ofd/escpos), printer
GetPrinterPreferences List the recorded file category → preferred printer mappings None
GetPdfDriverConfig Read the PDF virtual printer driver configuration None
SetPdfPrintDriverConfig Save the PDF virtual printer driver configuration config
ScanLanPrinters Read-only LAN printer scan: installed network printers + SSDP/WSD + mDNS + active subnet probing methods (active probing must be declared explicitly), subnets, maxHosts, timeoutMs
PrintToIp Smart direct sending to network printers: no driver installed locally, 631/IPP preferred with automatic fallback to 9100/RAW ip (port optional), target, copies
GetPrinterProfiles Read the printer profile store maintained by scheduled scanning (the data foundation for automatic printer selection) onlyOnline
GetCentralPrinters Centre side: list printer profiles aggregated across machines None
AddPrinterSlug Add a printer alias: hide a complex target behind a friendly name slug (required), target, mode, note
RemovePrinterSlug Delete an alias slug
ListPrintSlugs List all aliases and their mappings slug (optional: look up exactly one)

Audit, quota & policy

Recording and reconciliation of print history, usage quotas and costs, and print policy control.

CommandWhat it doesKey parameters
ListPrintEvents Print audit query: search history by machine / time range / outcome host, fromTs/toTs (Unix seconds), ok, limit
ArchivePrintEvents Archive old history to keep the local database small keepDays (default 30; 0 = clear everything)
ListHeldJobs Secure printing: list jobs waiting for PIN / badge-card release None
ReleaseJob Release a pending job after authentication jobId, pin, releasedBy
GetQuota Query a specified user's monthly quota and usage userId (empty = default)
SetQuota Set a user's monthly total-page and colour-page limits (0 = unlimited) userId, monthlyLimit, colorLimit
GetCostReport Cost history query userId, fromTs/toTs, limit
GetPrintReport Aggregate print statistics by dimension fromTs/toTs, groupBy (printer/user/hour/color/engine)
ListPolicies List all print policies None
SetPolicy Add or update a policy (supplying an id updates it) id, name, userId, printer, forceDuplex, forceBW, denyColor, enabled, startHour
RemovePolicy Delete a policy id
GetArchive Query a job's archive information jobId/id
CleanArchive Clean up archive directories older than a set number of days keepDays

Drivers, ink & preview

Driver package management, supply queries and pre-print preview.

CommandWhat it doesKey parameters
ListDriverPackages List the local INF driver packages bundled with the client (nothing is fetched online) None
InstallPrinterDriver Silently install a printer driver from a local INF infPath, driverName
GetTonerLevels Query printer toner / ink levels (requires SNMP support on the printer) host
PreviewJob Render specified pages of a document as an image preview (base64 thumbnails) target, maxPages

Scan drop & notifications

Scan-directory onboarding and notification channels.

CommandWhat it doesKey parameters
ListInboxFiles List files waiting in the scan drop directory None
PrintInboxFile Queue a specified file from the scan drop directory for printing name
ListNotifications Query recent notification delivery history limit
TestNotification Send a test notification to verify the channel configuration works message

Identity & central sync

Account authentication and cross-node aggregation.

CommandWhat it doesKey parameters
AuthenticateUser LDAP / AD bind authentication, with local identity as fallback; returns a userId for quota / policy / audit use user/username, password
ListIdentityProviders List the currently enabled identity providers None
SyncCentral Manually trigger an incremental report None
GetCentralStatus View this machine's sync status and central aggregate statistics None
ListCentralClients List the reported central nodes None

System, disk & updates

Settings, status, disk cleanup and version updates.

CommandWhat it doesKey parameters
ScanDisk Scan for cleanable files (read-only preview; nothing is deleted) maxAgeDays, minSizeMB
CleanDisk Clean the disk: dry-run by default; files are only actually deleted when dryRun:false is set explicitly path, dryRun, useRecycleBin
CleanAppTemp Clean up temporary files produced by the client; dry-run by default dryRun, useRecycleBin, maxAgeDays, minSizeMB
GetDiskInfo Disk usage information None
GetSettings Read client settings None
SaveSettings Save client settings settings (the settings object, with the same fields GetSettings returns)
GetStatus Runtime status overview (version, queue, printers, service) None
GetMachineFingerprint Machine fingerprint: stable across sessions, used as a device identifier None
CheckUpdate Fetch official version information for comparison; nothing is actually downloaded None
ApplyUpdate Download, verify the SHA256, and replace the current directory None
TriggerSilentUpdate Idle-time silent upgrade: download and replace only when the user is idle and the print queue is empty; no immediate restart None

FAQ

What happens if cmd is not specified?

The same as AutoPrint: the source and file form are identified from the content actually present in the request (inline content / local file / network address), then printed automatically; if the preferred printer fails, another printer is tried automatically.

Why do some commands return 403 on older versions?

The command allowlist grows with each version: older versions only allow the commands implemented at the time. A "command not in allowlist" response means that command needs a client upgrade; version differences are covered in "Versions & capabilities".

Which general print parameters are there?

target, printer, copies, duplex, color, collate, fit, paperKind, printPages, margin, bin, dpi, scale/orientation and more — see "Print parameters & defaults" for every field and default.

Does printing automatically switch printers on failure?

Yes. AutoPrint automatically retries with the next printer in the candidate chain when the preferred printer hits a printer-side failure (connection refused / timeout / offline / paper jam / driver, etc.); the response includes data.reverseRoute.attempts[] with each printer's attempt result. Rendering failures, missing files and other errors where switching printers would not help are not retried.

Next steps