Skip to main content
DELETE
Close a terminal

Authorizations

Authorization
string
header
required

A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

Path Parameters

id
string
required

Stable public computer identifier.

Minimum string length: 1
Example:

"cmp_123"

pty_id
string
required

Terminal identity, <computer_id>.pty.<32 lowercase hex>.

Pattern: ^cmp_[0-9a-f]{24}\.pty\.[0-9a-f]{32}$

Query Parameters

if_idle
boolean

Close only when the shell runs nothing else.

Response

The terminal was closed.