Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions docs/content/docs/cua/reference/computer-sdk/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1023,26 +1023,30 @@ resp = await provider.restart_vm("my-vm-name")

### HTTP API

You can also manage sandboxes via HTTP:
You can also manage sandboxes via the REST API:

```bash
# List sandboxes
curl -H "Authorization: Bearer $CUA_API_KEY" \
"https://api.cua.ai/v1/vms"

# Create sandbox
curl -X POST -H "Authorization: Bearer $CUA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"os": "linux", "configuration": "small", "region": "north-america"}' \
"https://api.cua.ai/v1/vms"

# Start sandbox
curl -X POST -H "Authorization: Bearer $CUA_API_KEY" \
"https://api.cua.ai/v1/vms/my-vm-name/start"

# Stop sandbox
curl -X POST -H "Authorization: Bearer $CUA_API_KEY" \
"https://api.cua.ai/v1/vms/my-vm-name/stop"

# Restart sandbox
curl -X POST -H "Authorization: Bearer $CUA_API_KEY" \
"https://api.cua.ai/v1/vms/my-vm-name/restart"
```

For the complete HTTP API reference, see the [REST API Reference](/cua/reference/rest-api).

---

## Types
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/cua/reference/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"title": "Reference",
"description": "SDK and CLI API reference",
"icon": "FileText",
"pages": ["desktop-sandbox", "computer-sdk", "agent-sdk", "mcp-server", "cloud-cli"]
"pages": ["desktop-sandbox", "computer-sdk", "agent-sdk", "mcp-server", "cloud-cli", "rest-api"]
}
Loading