---
title: "Heartbeat worker"
method: POST
path: "/workers/{workerID}/heartbeat"
tags: ["workers"]
---

# Heartbeat worker

`POST /workers/{workerID}/heartbeat`

Create or update worker registry state for a worker

## Path parameters

- `workerID` string, required

## Request body

- InternalApiRoutesWorkerHeartbeatRequest
  - `capabilities` string[]
  - `capacity` object
  - `hostname` string
  - `providers` string[]
  - `status` string

## Response `200`

OK

- InternalApiRoutesWorkerResponse
  - `capabilities` string[]
  - `capacity` object
  - `created_at` string
  - `hostname` string
  - `id` string
  - `last_heartbeat` string
  - `providers` string[]
  - `stale` boolean
  - `status` string
  - `updated_at` string

---

[API](https://skmtc.dev/stacyos/apis/stacyvm-api.md) · [All operations](https://skmtc.dev/stacyos/apis/stacyvm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stacyos/stacyvm-api/revisions/d8b1ebf10293/schema)
