GET/v1/sandboxes/{id}/ports
Auth: API key
List this sandbox's preview URLs.
Parameters
- idrequiredpath · string
Answer 200 · PortList · application/json
- portsrequiredPort[]
- sandbox_idrequiredstring
8 routes of the published API contract, generated from it.
Auth: API key
List this sandbox's preview URLs.
Auth: API key
Mint a preview URL for a port in the sandbox. Anyone holding the URL can reach the port — it is a bearer token in a link, so pass ttl_s to make it stop working on its own rather than relying on someone remembering to revoke it. url is the form to use; path_url and host_url are always returned by name, so a client that needs one specifically never has to parse url.
DELETE /v1/sandboxes/{id}/ports/{token_or_port} to revoke this one URL.Auth: API key
Revoke one URL by its token, or every URL for a port by the port number.
Auth: API key · upgrades to a WebSocket
A WebSocket terminal, relayed byte for byte. ?cols=&rows=&cmd=. Authenticated by the Authorization header, never a query string. Its open event carries resume: send it back in the promigence-resume header (from a browser, as the subprotocol promigence.resume.<resume>), with ?received= the output bytes you have, to pick the same terminal up where it left off after a dropped connection or a service update. If some of its output was not kept meanwhile, the open event's dropped says how many bytes. One that can no longer be picked up again answers 404.
Auth: API key
The keys this sandbox will accept over SSH, and for how long.
Auth: API key
Authorise an ssh-ed25519 public key for this sandbox and mint the short-lived credential an SSH connection to it uses. The login name is the sandbox id; the answer carries the sandbox's own host key, so a client can pin it instead of turning host verification off.
SHA256:… of the public key that was authorised, as ssh-keygen -lf prints it.ssh. It is an alias resolved by the tunnel, not a routable name.known_hosts line body (ssh-ed25519 AAAA…). Pin it instead of turning host verification off; it is minted for this sandbox and dies with it.SHA256:… of host_key, which is what ssh prints on a first connection.ProxyCommand that carries the connection: promigence sandbox ssh <id> --proxy.ssh command line, for pasting.Auth: API key
Revoke one key by id or fingerprint, and the access credential issued with it. Idempotent: revoked: false means neither existed.
Auth: API key · upgrades to a WebSocket
A WebSocket carrying the SSH byte stream, relayed byte for byte. Accepts either an API key or the short-lived per-sandbox credential from POST /v1/sandboxes/:id/ssh, in the Authorization header. This is what promigence sandbox ssh <id> --proxy speaks; you do not call it by hand.