---
title: "Bridge to a guest port."
method: GET
path: "/v1/machines/{id}/connect/{port}"
tags: ["machines"]
---

# Bridge to a guest port.

`GET /v1/machines/{id}/connect/{port}`

## Request

- Base URL: `https://api.smolmachines.com`
- URL: `https://api.smolmachines.com/v1/machines/{id}/connect/{port}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/smolmachines/apis/smolfleet-api/docs/v1/machines/:id/connect/:port/get.ts> (a function with typed inputs; its response is checked against the schema)

Forward an HTTP request (any method, body included, up to 10 MiB) or a WebSocket upgrade to a published guest port. Append a path after the port to reach a subpath: `/v1/machines/{id}/connect/{port}/{rest}`.

## Path parameters

- `id` string, required
- `port` integer, required

## Response `200`

The guest service's response, status and body passed through

## Other responses

- `101`: Switching to the machine's TCP bridge
- `401`: Missing or invalid API key
- `403`: Key lacks the required scope
- `404`: Machine or published port not found
- `429`: Rate limited; retry after the Retry-After header
- `500`: Internal error
- `503`: Machine is not running

## Changes

- **2026-10-16** `bc31fc04a568`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/smolmachines/apis/smolfleet-api/changes/v1/machines/:id/connect/:port/get.md)

---

[API](https://skmtc.dev/smolmachines/apis/smolfleet-api.md) - [All operations](https://skmtc.dev/smolmachines/apis/smolfleet-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smolmachines/apis/smolfleet-api/revisions/bc31fc04a568?raw)
