Skip to content
Webfold Docs
Esc
↑↓navigate↵open⌘Jpreview

Create a sandbox computer

Creates a sandbox desktop through the computer-use gateway, owned by your account. The tenant is taken from your API key, never from the request. Metered as computer.create; the other computer endpoints require the computer.access entitlement. Pass a gateway capability token in the X-Computer-Token header on calls that need one.

POST/v1/computers
Authorization
AuthorizationBearer token (JWT) · headerrequired

Bearer API key issued for your account. Send Authorization: Bearer <key>.

Request body
application/json
widthinteger
heightinteger
workloadstring
max_lifetime_secsinteger
idle_timeout_secsinteger
Responses
201

The computer, as the gateway returns it.

object
400

Bad request

string
401

Missing or invalid bearer token

string
403

Billing or plan entitlement blocked the request

string
502

Upstream service (arXiv, YouTube, web page) failed

string
503

The backing service is not configured or is busy

string
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://api.webfold.ai/v1/computers' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "width": 0,
  "height": 0,
  "workload": "string",
  "max_lifetime_secs": 0,
  "idle_timeout_secs": 0
}'
Response
{}