Enabling the API
Open Settings
Click the gear icon in the toolbar, or right-click the system-tray icon and choose Settings.
Enable the API toggle
In Settings, find the API or REST API section and turn on the Enable API toggle.
Set the API port (optional)
The default port is
12110. Change it if that port is already in use on your machine.API server settings
| Setting | Config key | Default | Description |
|---|---|---|---|
| API enabled | api-enabled | false | Whether the REST API server is running. |
| API port | api-port | 12110 | The TCP port the API server listens on. |
The API server always binds to
127.0.0.1 (localhost). It is not exposed to the network even if you have changed the main server address to a LAN IP.CORS
The API server allows cross-origin requests from any origin. The following headers are set on every response:| Header | Value |
|---|---|
Access-Control-Allow-Origin | * |
Access-Control-Allow-Methods | PUT, POST, GET, DELETE, OPTIONS |
Access-Control-Allow-Headers | * |
Access-Control-Allow-Private-Network | true |
Available endpoints
GET /getList
Returns all current publishing tasks, each with its live URL.
GET /addTask
Adds a new publishing task by providing a local file path.
Security
Because the API always binds to127.0.0.1, remote access is blocked by default. If you use port forwarding, a reverse proxy, or a VPN that routes traffic to localhost, be aware that the API will be reachable over those paths without any credential check.
To minimize exposure:
- Enable the API only when you need it, and disable it when you are done.
- Do not forward the API port through your firewall or router.
- If you need remote API access, place an authenticating reverse proxy (such as nginx with HTTP basic auth) in front of the API port.
Related pages
API reference
Full endpoint reference for the WebPublish REST API
Settings
All application settings and their default values