Skip to main content
POST
Read Workers

Headers

x-prefect-api-version
string

Path Parameters

work_pool_name
string
required

The work pool name

Body

application/json
workers
WorkerFilter · object | null

Filter by Worker.last_heartbeat_time.

offset
integer
default:0
Required range: x >= 0
limit
integer

Defaults to PREFECT_API_DEFAULT_LIMIT if not provided.

Response

Successful Response

id
string<uuid>
required
created
string<date-time> | null
required
updated
string<date-time> | null
required
name
string
required

The name of the worker.

work_pool_id
string<uuid>
required

The work pool with which the queue is associated.

last_heartbeat_time
string<date-time> | null

The last time the worker process sent a heartbeat.

heartbeat_interval_seconds
integer | null

The number of seconds to expect between heartbeats sent by the worker.

status
enum<string>
default:OFFLINE

Current status of the worker.

Available options:
ONLINE,
OFFLINE