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
| Method | Path | Description |
|---|---|---|
GET | /v1/apps/plans | List app plans |
GET | /v1/apps/regions | List app regions |
GET | /v1/apps | List apps |
POST | /v1/apps | Create 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/image | Deploy from image |
POST | /v1/apps/{app_id}/start | Start app |
POST | /v1/apps/{app_id}/stop | Stop app |
POST | /v1/apps/{app_id}/restart | Restart app |
GET | /v1/apps/{app_id}/logs | Get app logs |
GET /v1/apps/plans
List app plans
Get available App Platform plans with CPU, memory, storage, and pricing information.
Response:
Example:
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:
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:
| Field | Type | Description |
|---|---|---|
apps | array | |
total | integer | |
page | integer | |
page_size | integer |
Example:
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:
| Field | Type | Description |
|---|---|---|
name | string | Required. Display name for the app |
slug | string | URL slug. Auto-generated from name if omitted. Lowercase letters, numbers, and hyphens only. |
region | string | Region code (from GET /v1/apps/regions) |
plan | string | Plan ID (from GET /v1/apps/plans). Uses account default if omitted. |
port | integer | Port the app listens on |
health_check_path | string | Health check endpoint path |
env_vars | object | Environment variables as key-value pairs |
Response:
| Field | Type | Description |
|---|---|---|
id | string | |
name | string | |
slug | string | |
short_id | string | |
region | string | |
plan_id | string | |
plan_name | string | |
status | string | Values: creating, building, deploying, running, stopped, stopping, error, failed, deleting |
status_message | string | |
status_summary | object | Readable summary of status_message when it matches a known error; null otherwise |
default_url | string | |
port | integer | |
health_check_path | string | |
min_instances | integer | |
max_instances | integer | |
scale_to_zero_enabled | boolean | |
idle_timeout_minutes | integer | |
scaled_to_zero_at | string | |
is_scaled_to_zero | boolean | |
active_revision_id | string | |
active_deployment_id | string | |
last_deployed_at | string | |
active_image | string | Currently deployed container image URI |
created_at | string | |
updated_at | string | |
volume | object | Persistent volume metadata. Null if no volume attached. |
instances | array | Container instances with their lifecycle status, runtime_status and health counters. Filled in by GET /v1/apps/{app_id}. |
domains | array | Domains serving the app, with verification and TLS status. Filled in by GET /v1/apps/{app_id}. |
Example:
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:
| Field | Type | Description |
|---|---|---|
id | string | |
name | string | |
slug | string | |
short_id | string | |
region | string | |
plan_id | string | |
plan_name | string | |
status | string | Values: creating, building, deploying, running, stopped, stopping, error, failed, deleting |
status_message | string | |
status_summary | object | Readable summary of status_message when it matches a known error; null otherwise |
default_url | string | |
port | integer | |
health_check_path | string | |
min_instances | integer | |
max_instances | integer | |
scale_to_zero_enabled | boolean | |
idle_timeout_minutes | integer | |
scaled_to_zero_at | string | |
is_scaled_to_zero | boolean | |
active_revision_id | string | |
active_deployment_id | string | |
last_deployed_at | string | |
active_image | string | Currently deployed container image URI |
created_at | string | |
updated_at | string | |
volume | object | Persistent volume metadata. Null if no volume attached. |
instances | array | Container instances with their lifecycle status, runtime_status and health counters. Filled in by GET /v1/apps/{app_id}. |
domains | array | Domains serving the app, with verification and TLS status. Filled in by GET /v1/apps/{app_id}. |
Example:
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:
| Field | Type | Description |
|---|---|---|
name | string | |
port | integer | |
health_check_path | string | |
min_instances | integer | Minimum instances. Set to 0 to allow scale-to-zero. |
max_instances | integer | |
env_vars | object | Replaces the entire environment variable set. Not a merge — omitted variables are removed. |
scale_to_zero_enabled | boolean | Enable scale-to-zero when app is idle |
idle_timeout_minutes | integer | Minutes of inactivity before scaling to zero |
Response:
| Field | Type | Description |
|---|---|---|
id | string | |
name | string | |
slug | string | |
short_id | string | |
region | string | |
plan_id | string | |
plan_name | string | |
status | string | Values: creating, building, deploying, running, stopped, stopping, error, failed, deleting |
status_message | string | |
status_summary | object | Readable summary of status_message when it matches a known error; null otherwise |
default_url | string | |
port | integer | |
health_check_path | string | |
min_instances | integer | |
max_instances | integer | |
scale_to_zero_enabled | boolean | |
idle_timeout_minutes | integer | |
scaled_to_zero_at | string | |
is_scaled_to_zero | boolean | |
active_revision_id | string | |
active_deployment_id | string | |
last_deployed_at | string | |
active_image | string | Currently deployed container image URI |
created_at | string | |
updated_at | string | |
volume | object | Persistent volume metadata. Null if no volume attached. |
instances | array | Container instances with their lifecycle status, runtime_status and health counters. Filled in by GET /v1/apps/{app_id}. |
domains | array | Domains serving the app, with verification and TLS status. Filled in by GET /v1/apps/{app_id}. |
Example:
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:
| Field | Type | Description |
|---|---|---|
success | boolean | |
message | string |
Example:
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:
| Field | Type | Description |
|---|---|---|
image_uri | string | Required. Container image URI |
Response:
| Field | Type | Description |
|---|---|---|
app_id | string | |
revision_id | string | Empty for a repo deploy until the build has produced a revision |
deployment_id | string | The build id for a repo deploy |
status | string | Initial status: "deploying" for an image deploy, "building" for a repo deploy |
message | string | |
preflight_warnings | array | Warnings from pre-deploy checks (image deploys; a repo deploy writes them to the app events instead) |
Example:
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:
| Field | Type | Description |
|---|---|---|
status | string | |
message | string |
Example:
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:
| Field | Type | Description |
|---|---|---|
status | string | |
message | string |
Example:
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:
| Field | Type | Description |
|---|---|---|
success | boolean | |
message | string |
Example:
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:
| Field | Type | Description |
|---|---|---|
app_id | string | |
instance_id | string | |
logs | array | Log entries from container output |
has_more | boolean | True if more log lines are available beyond the requested limit |
status_hint | string | Why 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:
curl https://api.wayscloud.services/v1/apps/{app_id}/logs \
-H "X-API-Key: YOUR_API_KEY"