Create a builder from your own code
Deploys the supplied files to a cloud sandbox and starts your app. Returns the running builder with a public URL. To build from a description instead, use POST /api/v1/builder-agents.
Authorizations
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
Body
Builder name (lowercase letters, digits, dashes).
"my-api"
Command that starts your app. It must listen on 0.0.0.0 at port.
"python3 main.py"
Map of relative path → file contents. Include requirements.txt to pip-install before start.
{
"main.py": "...source...",
"requirements.txt": "flask"
}Port your app listens on. Default 8000.
8000
Non-secret environment variables.
{ "MY_FLAG": "1" }VM size. Defaults to 1 vCPU / 1 GB / 3 GB.
always_on, one_time "always_on"
0 disables backups.
0