Skip to main content
POST
Create Application
The application has two mutually exclusive sources — send exactly one of file or snapshot_id. Neither → SOURCE_REQUIRED; both → SOURCE_CONFLICT.
file
The ZIP file containing the application code (maximum size: 100 MB). Absent when the source is snapshot_id.
string
Alternative source to file: the id of an application snapshot to create the app from. The snapshot already carries the vertracloud.config. Sent as a text field of the multipart body. A snapshot of any size works as long as its content fits in the new application’s storage: the 100 MB limit of file does not apply. See the response below for how the restore runs.
string
The amount of RAM to allocate for the application in MB. Minimum 100 MB. Required with file; with snapshot_id it is optional and falls back to the snapshot’s vertracloud.config. When a subdomain is requested the value is raised to at least 512 MB automatically — web applications have their own memory floor.
string
The application startup command. It must be a single line.
string
An optional build command, up to 512 characters, on a single line (e.g. npm run build). Runs after dependency installation and before the application starts, with a 10-minute timeout. devDependencies are installed when a build command is set. Available on every plan. See Update Application Configuration to change it later.
boolean
Optional, true by default. Whether the application restarts by itself after a crash. See Update Application Configuration. When the field is omitted, AUTORESTART (true or false) in the vertracloud.config applies.
string
The main file of the application. Required with file; with snapshot_id it is optional and falls back to the snapshot’s vertracloud.config.
string
Optional. Forces the runtime language instead of detecting it from the project: one of javascript, typescript, bun, python, static, php, go, ruby, java, rust, deno, dotnet, elixir. Precedence: this field, then LANGUAGE= in vertracloud.config, then detection. Any other value is refused with INVALID_LANGUAGE.
string
Required with file; with snapshot_id it falls back to the snapshot’s vertracloud.config. The application runtime version: recommended, latest, or a specific version supported by the detected runtime (e.g. 22).
string
required
The application display name. Maximum 50 characters.
string
An application description.
string
The workspace ID to associate with the application, if applicable.
string
The subdomain for the application (e.g., myapp). Whitespace is replaced with - and the value is lowercased before validation; the accepted format is ^[a-z0-9-]+$. Send random to let the platform pick one for you. Omit the field entirely to create a private application with no web publishing — you can turn it on later with Publish Application on the Web.Requires plan support for web publishing.
string
A JSON string containing an array of environment variables, each with key, value and an optional note. Maximum key length 255, maximum value length 3072, maximum note length 50.

Response

With snapshot_id, the response is 202 with the application and a restore_job_id: the application is created first and its files come back from the snapshot in the background. Follow the job on Get Snapshot Job (with the new application’s ID) until it is ready; the application starts when the restore finishes. If the restore fails, an application created from a code snapshot is deleted, and one that runs a custom Docker image is kept as it is and started again; the job’s reason says why. With file, creation is asynchronous: the response is 202 Accepted with the application in status: "building". Follow it with Application Details or the real-time logs until status is up or down. While it is building, start, stop, restart, file deploys, rollback, snapshots, restores and configuration changes answer 409 APP_BUILDING; deleting the application is allowed. If the build is interrupted, the application stays down and BUILD_INTERRUPTED appears in its log; if the platform cancels the creation (for example, the queue is full), the application no longer exists and Application Details answers 404.
object
The details of the created application.

Error Responses

string
The error code indicating the reason for the failure. Possible values:
  • VALIDATION_ERROR: The multipart body failed validation (400). The response also carries message and details.path pointing at the offending field.
  • USER_NOT_FOUND: The authenticated user could not be resolved (401).
  • MAX_APPS_REACHED: The plan’s application limit has been reached (403).
  • INVALID_ZIP: The uploaded file is not a readable ZIP (truncated or corrupted) (400).
  • MAIN_FILE_NOT_FOUND: The file named in main does not exist inside the ZIP (400).
  • ZIP_TOO_SMALL: The uploaded file is smaller than 100 bytes (400).
  • FILE_TOO_LARGE: The uploaded file exceeds the 100 MB limit (400).
  • SOURCE_REQUIRED: Neither file nor snapshot_id was sent (400).
  • SOURCE_CONFLICT: Both file and snapshot_id were sent (400).
  • SNAPSHOT_NOT_FOUND: The snapshot_id was not found (404).
  • SNAPSHOT_TYPE_MISMATCH: The snapshot is a database snapshot, not an application one (400).
  • SNAPSHOT_EXCEEDS_STORAGE: The snapshot’s content does not fit in the new application’s storage (400). details has required_bytes and available_bytes.
  • RESTORE_COOLDOWN: With snapshot_id, the user asked for another restore within 60 seconds (429). Nothing was created; wait and retry.
  • MEMORY_REQUIRED: memory was omitted and the snapshot’s vertracloud.config has no usable MEMORY (400).
  • PLAN_REQUIRED: The owner has no active plan, so a new application can’t be created, or a subdomain was requested without one (403).
  • PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH: A subdomain was requested but the owner’s plan does not include web publishing (403).
  • INVALID_MEMORY_FORMAT: memory is not a number (400).
  • MEMORY_MUST_BE_INTEGER: memory is not an integer (400).
  • MEMORY_BELOW_MINIMUM: memory is below the minimum for the application type (400).
  • MEMORY_LIMIT_EXCEEDED: The requested memory exceeds the memory still available on the plan (400).
  • SUBDOMAIN_TAKEN: Another application already uses that subdomain (409).
  • SUBDOMAIN_FORBIDDEN: The requested subdomain is on the platform’s reserved list (400).
  • USER_LIMITS_NOT_FOUND: The owner’s limits record could not be loaded (404).
  • INVALID_LANGUAGE: The language is not supported, or could not be determined (400).
  • DEPLOY_RATE_LIMITED: The account’s hourly deploy budget for its plan was reached (429). See API Reference Introduction.
  • INTERNAL_SERVER_ERROR: Unexpected failure, including an application that was created but could not be read back (500).
string
A descriptive message providing additional details about the error. Present on VALIDATION_ERROR.
An application created without subdomain stays private. You can turn web publishing on later with Publish Application on the Web, and off again with the same route.
Last modified on November 24, 2026