import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/ports/{port}/readiness"
payload = {
"kind": "tcp",
"timeout_secs": 30,
"interval_ms": 500
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
{
"ready": true,
"route_ready": true,
"service_ready": true,
"machine_id": "mch_123",
"port": 3000,
"kind": "tcp",
"checked_at": "2026-05-18T12:00:00Z",
"elapsed_ms": 42,
"attempts": 1
}
Machines
Check preview service readiness
Performs an opt-in readiness check from the machine runtime host. This
distinguishes a routable preview port from a service that is actually
listening. URL creation remains non-blocking; failed service readiness
returns 200 with ready: false.
POST
/
v1
/
machines
/
{id}
/
ports
/
{port}
/
readiness
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/ports/{port}/readiness"
payload = {
"kind": "tcp",
"timeout_secs": 30,
"interval_ms": 500
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
{
"ready": true,
"route_ready": true,
"service_ready": true,
"machine_id": "mch_123",
"port": 3000,
"kind": "tcp",
"checked_at": "2026-05-18T12:00:00Z",
"elapsed_ms": 42,
"attempts": 1
}
Path Parameters
Body
application/json
Response
Preview readiness diagnostic result