Quickstart
Make a key in the console, start an instance, run a command, stop it. Every call takes Authorization: Bearer dc_…. Base address https://compute.digibuffer.com.
1. Start an instance
curl -X POST https://compute.digibuffer.com/v1/instances \
-H "Authorization: Bearer $DC_KEY" -H "Content-Type: application/json" \
-d '{"size":"small","timeoutSec":600,"network":"none","env":{"MODE":"test"},"metadata":{"run":"4821"}}'
201 {"id":"inst_8f2k1q9vx3","status":"running","size":"small",
"limits":{"cpus":1,"memoryMb":1024,"diskGb":5},"network":"none",
"expiresAt":"…","envNames":["MODE"]}
2. Run a command, move files
POST /v1/instances/:id/exec {"command":"python3 app.py","env":{"DEBUG":"1"},"timeoutSec":60}
PUT /v1/instances/:id/files?path=/work/app.py (the body is the file)
GET /v1/instances/:id/files?path=/work/out.json
GET /v1/instances/:id/list?path=/work
3. Extend or stop
POST /v1/instances/:id/extend {"seconds":1800}
DELETE /v1/instances/:id
Sizes
network: none (no network), limited (allowed hosts only) or open, when your plan includes the internet.