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
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.
Response
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.
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}/redeploydeploys 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}/rebuildrebuilds a Python or Node.js app, reinstalling its dependencies. Passsource_preferenceasauto(default),githuborworkspace(the app’s current files).
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}/stoptakes 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}/startbrings a stopped app back online.
Response
{"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.