Skip to main content
POST
Create a computer

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.

Headers

Idempotency-Key
string

A caller-generated key for safely retrying this side effect. The server retains the key and response for 24 hours. Reusing it with the same request replays the original response, except after a failure that proves nothing happened: that is kept for one minute, and one that sets Retry-After is not kept, so a retry after it runs the request again; reusing it with different input returns 409.

Required string length: 1 - 128
Pattern: ^[!-~]+$
Example:

"req_01J6M6Y9TF9Q9QF6M1ZP8K4R2A"

Body

application/json
name
string

Optional stable name, such as agent-atlas. A name that breaks the pattern answers 400 invalid_slug with the nearest valid name as a suggestion; a name the service holds answers 400 reserved_slug.

Maximum string length: 63
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
visibility
enum<string>
default:public
Available options:
private,
public
auto_delete_after
string

Positive Go duration such as 24h.

network_policy
object

Outbound access policy. open allows public destinations, none blocks outbound access, and allowlist permits only the named public hosts. Private and reserved addresses remain blocked.

Response

The computer, running on its own VM.

id
string
required
hostname
string
required
name
string
required
ip
string
required
status
string
required

artifact (no VM), creating, running, stopped while its account's Pro has lapsed (its VM is stopped and deleted at auto_delete_at unless Pro returns; once Pro returns it can show running briefly until the reconciler has started its VM), or deleting from when its deletion begins until it is gone.

visibility
enum<string>
required
Available options:
private,
public
access
enum<string>
required

What the caller holds: owner, can_use for a computer shared with them, or claim_key in the response to a publish without an account, whose claim key republishes to the computer and claims it.

Available options:
owner,
can_use,
claim_key
copy_enabled
boolean
required

People other than the owner may copy the computer into their own accounts (PUT /api/computers/{id}/copy-settings).

site
boolean
required

The URL serves the computer's published files: from the edge, or from its VM's built-in site server until a port is first exposed, when the program on it takes every path but the functions' for good.

network_policy
object
required

Outbound access policy. open allows public destinations, none blocks outbound access, and allowlist permits only the named public hosts. Private and reserved addresses remain blocked.

created_at
string<date-time>
required
url
string<uri>
email_address
string<email>
auto_delete_at
string<date-time> | null

When the computer is deleted by itself: its own auto-delete deadline, or, for a VM of an account whose Pro lapsed, when its stopped VMs are deleted, whichever comes first.

creation_mode
string