Skip to main content
Returns the full list of tasks currently loaded in WebPublish. Each task includes its configuration and a pre-built URL you can use to access the published content.

Request

GET http://127.0.0.1:12110/getList
No parameters required.

Example

curl http://127.0.0.1:12110/getList

Response

Returns a JSON object with a taskList array.
taskList
array
Array of task objects currently loaded in WebPublish.

Example response

{
  "taskList": [
    {
      "gid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "id": "my-site",
      "name": "My Static Site",
      "path": "/home/user/sites/my-site",
      "enable": true,
      "gzip": true,
      "type": "directory",
      "useData": 204800,
      "limitData": 0,
      "url": "http://127.0.0.1:9090/my-site/"
    },
    {
      "gid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "id": "tiles",
      "name": "World Basemap",
      "path": "/home/user/maps/world.mbtiles",
      "enable": true,
      "gzip": true,
      "type": "mbtiles",
      "useData": 512,
      "limitData": 0,
      "url": "http://127.0.0.1:9090/tiles/{z}/{x}/{y}.png"
    }
  ]
}
The url field in each task is computed using the main server’s host and port, not the API port. Ensure the main server is running for task URLs to be accessible.

Build docs developers (and LLMs) love