Skip to main content
app_id is the app’s UUID. It is shown in the dashboard and returned as app_uid by the list.

List applications

GET /app/list
integer
default:"1"
Page number, from 1.
integer
default:"8"
Apps per page, up to 50.
Filters by app name or domain (up to 120 characters).
Response
state is one of running, deploying, stopped, failed or paused (offline for an unpaid renewal).

Get an application

GET /app/apps/{app_id}
Response
For an API key, config.env lists the app’s variable names with empty values, and secret_keys lists the names of its secrets. Values are never returned to a key.

List deployments

GET /app/apps/{app_id}/deployments Newest first.
integer
default:"20"
Deployments per page, up to 100.
integer
Return deployments older than this deployment id (the last id of the previous page).
Response
A deployment’s status moves through queued, preparing, uploading, deploying and verifying, and ends as success or failed.

Get a deployment

GET /app/apps/{app_id}/deployments/{deployment_id} Returns one deployment, including started_at, finished_at and the build log in deploy_log:
Response

Get a build log

GET /app/apps/{app_id}/deployments/{deployment_id}/log
Response

Request statistics

GET /app/apps/{app_id}/stats Requests and server errors per hour, and deployment results per day, as shown on the app’s Overview.
integer
default:"7"
How many days of requests to return, from 1 to 30.
Response

Deploy

POST /app/apps/{app_id}/deploy Starts a deployment from the app’s source, for example its GitHub branch. The call returns as soon as the deployment is queued; follow it until it finishes.
Response

Redeploy and rebuild

  • POST /app/apps/{app_id}/redeploy deploys the app again from its source. Static HTML and PHP apps not connected to GitHub are edited live and cannot be redeployed.
  • POST /app/apps/{app_id}/rebuild rebuilds a Python or Node.js app, reinstalling its dependencies. Pass source_preference as auto (default), github or workspace (the app’s current files).
Both return the same response as Deploy.

Restart

POST /app/apps/{app_id}/restart Restarts a running Python or Node.js app without rebuilding it, for example after changing variables.

Stop and start

  • POST /app/apps/{app_id}/stop takes the app offline and stops its process. Its files and subdomain are kept. Only a running app with a successful build can be stopped.
  • POST /app/apps/{app_id}/start brings a stopped app back online.
Response
Starting returns {"success": true, "state": "running"}. If the app has no successful build yet, start only clears the stop and returns its current state, for example failed.