Skip to content

Apps API ​

Container App Platform. Deploy and manage container apps with scaling controls, scale-to-zero, persistent storage, and HTTPS with automated certificate management.

Endpoints ​

MethodPathDescription
GET/v1/apps/plansList app plans
GET/v1/apps/regionsList app regions
GET/v1/appsList apps
POST/v1/appsCreate app
GET/v1/apps/{app_id}Get app
PATCH/v1/apps/{app_id}Update app
DELETE/v1/apps/{app_id}Delete app
POST/v1/apps/{app_id}/deploy/imageDeploy from image
POST/v1/apps/{app_id}/startStart app
POST/v1/apps/{app_id}/stopStop app
POST/v1/apps/{app_id}/restartRestart app
GET/v1/apps/{app_id}/logsGet app logs

GET /v1/apps/plans ​

List app plans

Get available App Platform plans with CPU, memory, storage, and pricing information.

Response:

Example:

bash
curl https://api.wayscloud.services/v1/apps/plans \
  -H "X-API-Key: YOUR_API_KEY"

GET /v1/apps/regions ​

List app regions

Get available regions for App Platform with availability status.

Response:

Example:

bash
curl https://api.wayscloud.services/v1/apps/regions \
  -H "X-API-Key: YOUR_API_KEY"

GET /v1/apps ​

List apps

Get a paginated list of all apps for the authenticated account.

Response:

FieldTypeDescription
appsarray
totalinteger
pageinteger
page_sizeinteger

Example:

bash
curl https://api.wayscloud.services/v1/apps \
  -H "X-API-Key: YOUR_API_KEY"

POST /v1/apps ​

Create app

Create a new container app. Only name is required — all other fields have sensible defaults.

Request Body:

FieldTypeDescription
namestringRequired. Display name for the app
slugstringURL slug. Auto-generated from name if omitted. Lowercase letters, numbers, and hyphens only.
regionstringRegion code (from GET /v1/apps/regions)
planstringPlan ID (from GET /v1/apps/plans). Uses account default if omitted.
portintegerPort the app listens on
health_check_pathstringHealth check endpoint path
env_varsobjectEnvironment variables as key-value pairs

Response:

FieldTypeDescription
idstring
namestring
slugstring
short_idstring
regionstring
plan_idstring
plan_namestring
statusstringValues: creating, building, deploying, running, stopped, stopping, error, failed, deleting
status_messagestring
status_summaryobjectReadable summary of status_message when it matches a known error; null otherwise
default_urlstring
portinteger
health_check_pathstring
min_instancesinteger
max_instancesinteger
scale_to_zero_enabledboolean
idle_timeout_minutesinteger
scaled_to_zero_atstring
is_scaled_to_zeroboolean
active_revision_idstring
active_deployment_idstring
last_deployed_atstring
active_imagestringCurrently deployed container image URI
created_atstring
updated_atstring
volumeobjectPersistent volume metadata. Null if no volume attached.
instancesarrayContainer instances with their lifecycle status, runtime_status and health counters. Filled in by GET /v1/apps/{app_id}.
domainsarrayDomains serving the app, with verification and TLS status. Filled in by GET /v1/apps/{app_id}.

Example:

bash
curl -X POST https://api.wayscloud.services/v1/apps \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'

GET /v1/apps/ ​

Get app

Get full details of a specific app including configuration, deployment status, and scaling settings.

Response:

FieldTypeDescription
idstring
namestring
slugstring
short_idstring
regionstring
plan_idstring
plan_namestring
statusstringValues: creating, building, deploying, running, stopped, stopping, error, failed, deleting
status_messagestring
status_summaryobjectReadable summary of status_message when it matches a known error; null otherwise
default_urlstring
portinteger
health_check_pathstring
min_instancesinteger
max_instancesinteger
scale_to_zero_enabledboolean
idle_timeout_minutesinteger
scaled_to_zero_atstring
is_scaled_to_zeroboolean
active_revision_idstring
active_deployment_idstring
last_deployed_atstring
active_imagestringCurrently deployed container image URI
created_atstring
updated_atstring
volumeobjectPersistent volume metadata. Null if no volume attached.
instancesarrayContainer instances with their lifecycle status, runtime_status and health counters. Filled in by GET /v1/apps/{app_id}.
domainsarrayDomains serving the app, with verification and TLS status. Filled in by GET /v1/apps/{app_id}.

Example:

bash
curl https://api.wayscloud.services/v1/apps/{app_id} \
  -H "X-API-Key: YOUR_API_KEY"

PATCH /v1/apps/ ​

Update app

Update app configuration. All fields are optional — only provided fields are updated.

Mutable fields: name, port, health_check_path, min_instances, max_instances, env_vars, scale_to_zero_enabled, idle_timeout_minutes

Not mutable: plan, region, slug cannot be changed after creation.

Warning: Providing env_vars replaces the entire environment variable set for the app. To add a single variable, first GET the current app, merge your changes, then PATCH with the full set.

Request Body:

FieldTypeDescription
namestring
portinteger
health_check_pathstring
min_instancesintegerMinimum instances. Set to 0 to allow scale-to-zero.
max_instancesinteger
env_varsobjectReplaces the entire environment variable set. Not a merge — omitted variables are removed.
scale_to_zero_enabledbooleanEnable scale-to-zero when app is idle
idle_timeout_minutesintegerMinutes of inactivity before scaling to zero

Response:

FieldTypeDescription
idstring
namestring
slugstring
short_idstring
regionstring
plan_idstring
plan_namestring
statusstringValues: creating, building, deploying, running, stopped, stopping, error, failed, deleting
status_messagestring
status_summaryobjectReadable summary of status_message when it matches a known error; null otherwise
default_urlstring
portinteger
health_check_pathstring
min_instancesinteger
max_instancesinteger
scale_to_zero_enabledboolean
idle_timeout_minutesinteger
scaled_to_zero_atstring
is_scaled_to_zeroboolean
active_revision_idstring
active_deployment_idstring
last_deployed_atstring
active_imagestringCurrently deployed container image URI
created_atstring
updated_atstring
volumeobjectPersistent volume metadata. Null if no volume attached.
instancesarrayContainer instances with their lifecycle status, runtime_status and health counters. Filled in by GET /v1/apps/{app_id}.
domainsarrayDomains serving the app, with verification and TLS status. Filled in by GET /v1/apps/{app_id}.

Example:

bash
curl -X PATCH https://api.wayscloud.services/v1/apps/{app_id} \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'

DELETE /v1/apps/ ​

Delete app

Soft-delete an app. The app is marked as deleted and permanent cleanup happens asynchronously according to platform retention policies.

Response:

FieldTypeDescription
successboolean
messagestring

Example:

bash
curl -X DELETE https://api.wayscloud.services/v1/apps/{app_id} \
  -H "X-API-Key: YOUR_API_KEY"

POST /v1/apps/{app_id}/deploy/image ​

Deploy from image

Deploy the app from a container image. The deployment is asynchronous — poll GET /v1/apps/{app_id} for status updates.

Supported registries include: registry.wayscloud.services/, ghcr.io/, docker.io/, and Docker Hub shorthand (e.g. nginx:latest, traefik/whoami).

Request Body:

FieldTypeDescription
image_uristringRequired. Container image URI

Response:

FieldTypeDescription
app_idstring
revision_idstringEmpty for a repo deploy until the build has produced a revision
deployment_idstringThe build id for a repo deploy
statusstringInitial status: "deploying" for an image deploy, "building" for a repo deploy
messagestring
preflight_warningsarrayWarnings from pre-deploy checks (image deploys; a repo deploy writes them to the app events instead)

Example:

bash
curl -X POST https://api.wayscloud.services/v1/apps/{app_id}/deploy/image \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'

POST /v1/apps/{app_id}/start ​

Start app

Start a stopped app or wake it from scale-to-zero state.

Response:

FieldTypeDescription
statusstring
messagestring

Example:

bash
curl -X POST https://api.wayscloud.services/v1/apps/{app_id}/start \
  -H "X-API-Key: YOUR_API_KEY"

POST /v1/apps/{app_id}/stop ​

Stop app

Stop all running instances. The app can be restarted later.

Response:

FieldTypeDescription
statusstring
messagestring

Example:

bash
curl -X POST https://api.wayscloud.services/v1/apps/{app_id}/stop \
  -H "X-API-Key: YOUR_API_KEY"

POST /v1/apps/{app_id}/restart ​

Restart app

Restart the app by recreating running instances.

Response:

FieldTypeDescription
successboolean
messagestring

Example:

bash
curl -X POST https://api.wayscloud.services/v1/apps/{app_id}/restart \
  -H "X-API-Key: YOUR_API_KEY"

GET /v1/apps/{app_id}/logs ​

Get app logs

Returns the most recent container log output (stdout/stderr). This is live container output, not a historical log archive. Logs may be empty for stopped or idle apps. For persistent logging, configure your app to ship logs to an external service.

Response:

FieldTypeDescription
app_idstring
instance_idstring
logsarrayLog entries from container output
has_morebooleanTrue if more log lines are available beyond the requested limit
status_hintstringWhy there is nothing to show, when there is nothing to show. Absent or null means the entries in logs are real container output. When set, logs carries a single human-readable explanation instead: scaled_to_zero (app is idle, no container to read from), stopped (app is stopped), no_instance (nothing deployed yet). Branch on this rather than matching the text of the message, which is English-only and may be reworded. Values: scaled_to_zero, stopped, no_instance

Example:

bash
curl https://api.wayscloud.services/v1/apps/{app_id}/logs \
  -H "X-API-Key: YOUR_API_KEY"