The terminal cursor blinked. The REST API waited. A TTY session had begun.
A REST API TTY is a secure way to interact with remote systems through HTTP while maintaining an active, bidirectional terminal session. Instead of static request-and-response workflows, a TTY over REST streams data in real time. It pushes output to the client as it's generated and accepts input without closing the connection. This enables precise control of remote processes, inspection of live logs, or execution of commands inside containers or VMs through a browser or script.
At its core, REST API TTY bridges the gap between traditional terminal I/O and stateless REST design. It uses long-lived HTTP connections or WebSockets for transport. Commands typed on the client side pass instantly to the server. Output flows back without delay. No polling, no manual refresh, no broken sessions.
Typical flows: