---
title: "Re-run the network measurement (host owner/admin); queues a NETTEST command, result lands with the agent's next contact"
method: POST
path: "/api/v1/hosts/machines/{id}/nettest"
tags: ["hosts"]
---

# Re-run the network measurement (host owner/admin); queues a NETTEST command, result lands with the agent's next contact

`POST /api/v1/hosts/machines/{id}/nettest`

## Request

- Base URL: `https://amplerun-api.spiry.org`
- URL: `https://amplerun-api.spiry.org/api/v1/hosts/machines/{id}/nettest`
- Auth: HTTP bearer

netfacts lane. The agent measures download/upload Mbps and latency from the HOST network namespace against a public endpoint (bounded 30 s) and answers with a machine.nettest receipt that updates the machine's net facts. 202 = queued, never the measurement itself.

## Path parameters

- `id` string, uuid, required

## Headers

- `Idempotency-Key` string, uuid, required

## Response `202`

Queued; body carries machine_id, command_id, state=QUEUED.

## Other responses

- `default`: Error envelope. 401 unauthenticated, 403/404 forbidden, 409 conflict, 422 invalid input, 429 rate limited (code UNAVAILABLE, retryable:true, no Retry-After header), 503 unavailable money/provider state with retryable:true.

---

[API](https://skmtc.dev/amplerun/apis/amplerun-business-api.md) · [All operations](https://skmtc.dev/amplerun/apis/amplerun-business-api/llms.txt) · [OpenAPI document](https://skmtc.dev/amplerun/apis/amplerun-business-api/revisions/40944687fa52?raw)
