/v1/apps/create
This endpoint creates a new application.
multipart/form-data. The file must be a .zip (max. 100 MB) and environmentVariables must be sent as a JSON encoded string.mainFile or startupCommand is required, except on runtimes that do not start from a file (mainFile: false in GET /v1/runtimes, like Go). Without buildCommand, the runtime’s own build runs, when it has one. When exposedViaWeb is true, port and assignedSubdomain are required too. Fields that are not listed below are rejected with 400.Authorizations
Body
Application data to create
Unknown fields are rejected with 400. Either mainFile or startupCommand must be provided, except on runtimes that do not start from a file (mainFile: false in GET /v1/runtimes, like Go).
Custom command used to start the application. When omitted, the runtime's startCommand from GET /v1/runtimes is used: node <mainFile>, bun <mainFile>, python -u <mainFile>, or a command of its own like ./server for Go. Required unless mainFile is sent or the runtime does not start from a file.
"node index.js"
Response
Application created successfully.
An application with its team referenced by ID.
Present while status is suspended: the CamposCloud team turned the application off. A suspended application cannot be started or changed, but its files can still be listed and downloaded. See Why an application stopped.
Present when the platform turned the application off by itself because it sent too many requests. It is removed when the application is started or restarted again. See Why an application stopped.