---
search:
  tags:
    - ports
    - POST
seo:
  description: >-
    The port is the one inside the machine. Nothing has to be listening…
    Reference for the POST /v1/machines/{machine_id}/ports endpoint in the
    Computer API API.
sidebar:
  badge: POST
  label: publish a port on the machine at its own https url
title: publish a port on the machine at its own https url
type: openapi-operation
---
The port is the one inside the machine. Nothing has to be listening on it yet: a preview for a port with no server answers `compute_unavailable` until one starts, which is the ordinary state of a dev server that is still booting. A private preview's `secret` and `access_url` are in this response and in no other.

<Operation source="api" id="ports-expose" />
