puter.workers.list()


⚠️ This is a beta feature. The API may change in future releases.

Lists all workers in your account with their details.

Syntax

puter.workers.list()

Parameters

None.

Return Value

A Promise that resolves to a JavaScript object where:

  • Keys: Worker names
  • Values: Objects containing worker details:
    • url (String) - The public URL of the worker
    • filePath (String) - The path to the source file
    • deployTime (Number) - Unix timestamp of when the worker was deployed

Example Output Structure

{
  "my-api": {
    "url": "https://my-api.puter.work",
    "filePath": "/username/Desktop/api-server.js",
    "deployTime": 1672531200
  },
  "blog-backend": {
    "url": "https://blog-backend.puter.work", 
    "filePath": "/username/Desktop/blog.js",
    "deployTime": 1672617600
  },
  "test-worker": {
    "url": "https://test-worker.puter.work",
    "filePath": "/username/Desktop/test.js",
    "deployTime": 1672704000
  }
}