# Heartbeat worker

```http
POST /agent-workers/workers/{worker_id}/heartbeat
```

Heartbeat a worker.

## Parameters

| Name        | In   | Required | Description |
| ----------- | ---- | -------- | ----------- |
| `worker_id` | path | Yes      |             |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Refreshes the liveness timestamp for an existing agent worker after verifying project access.               |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 404    | Not found                                                                                                   |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
