{
    "openapi": "3.0.0",
    "x-origin": [
        {
            "url": "https://app.lyngbak.com/api/v1/docs",
            "format": "swagger",
            "version": "2.0",
            "converter": {
                "url": "https://github.com/mermade/oas-kit",
                "version": "7.0.8"
            }
        }
    ],
    "info": {
        "title": "Lyngbak API",
        "description": "API for managing applications, resources, and services on Lyngbak (formerly Miget), the agentic infrastructure cloud.",
        "contact": {
            "name": "Lyngbak Support",
            "email": "support@lyngbak.com",
            "url": "https://lyngbak.com/join-discord"
        },
        "version": "0.0.1"
    },
    "security": [
        {
            "bearer": []
        }
    ],
    "tags": [
        {
            "name": "App Secret Files",
            "description": "Operations about App Secret Files"
        },
        {
            "name": "App Preview Environments",
            "description": "Operations about App Preview Environments"
        },
        {
            "name": "App Ports",
            "description": "Operations about App Ports"
        },
        {
            "name": "Git Credentials",
            "description": "Operations about Git Credentials"
        },
        {
            "name": "Issues",
            "description": "Operations about Issues"
        },
        {
            "name": "Project Secret Files",
            "description": "Operations about Project Secret Files"
        },
        {
            "name": "Static Sites",
            "description": "Operations about Static Sites"
        },
        {
            "name": "Webhooks",
            "description": "Operations about Webhooks"
        },
        {
            "name": "Authentication",
            "description": "User authentication and token management"
        },
        {
            "name": "Apps",
            "description": "Application lifecycle management"
        },
        {
            "name": "App Domains",
            "description": "Custom domain configuration for applications"
        },
        {
            "name": "App Add-ons",
            "description": "Application add-ons (databases, caches, storage)"
        },
        {
            "name": "App Environment Variables",
            "description": "Application environment variable management"
        },
        {
            "name": "App Cron Jobs",
            "description": "Scheduled task management for applications"
        },
        {
            "name": "App Deployments",
            "description": "Deployment history and build logs"
        },
        {
            "name": "Buckets",
            "description": "S3-compatible object storage bucket management"
        },
        {
            "name": "Bucket Objects",
            "description": "File and folder operations within storage buckets"
        },
        {
            "name": "Container Registry Credentials",
            "description": "Stored credentials for pulling images from private container registries (Docker Hub, GitHub, GitLab, AWS ECR, Azure, DigitalOcean, Quay, generic)"
        },
        {
            "name": "Projects",
            "description": "Project organization and management"
        },
        {
            "name": "Project Environment Variables",
            "description": "Shared environment variables across project applications"
        },
        {
            "name": "Services",
            "description": "Standalone services (shared databases, storage)"
        },
        {
            "name": "Stacks",
            "description": "Docker Compose stack management"
        },
        {
            "name": "Stack Deployments",
            "description": "Stack deployment history"
        },
        {
            "name": "Resources",
            "description": "Compute resource provisioning and management"
        },
        {
            "name": "Plans",
            "description": "Available pricing plans"
        },
        {
            "name": "Regions",
            "description": "Deployment regions"
        },
        {
            "name": "VPCs",
            "description": "Private networks, their subnets and the workloads attached to them"
        },
        {
            "name": "VPC VPN",
            "description": "Reaching a VPC from outside: WireGuard devices, Tailscale and Cloudflare WARP gateways, peer routes and site-to-site tunnels"
        },
        {
            "name": "Components",
            "description": "Purchasable resource add-ons (extra RAM, CPU, disk)"
        },
        {
            "name": "Users",
            "description": "User profile management"
        },
        {
            "name": "Users - SSH Keys",
            "description": "SSH key management for Git access"
        },
        {
            "name": "Users - Credits",
            "description": "Referral credit balance and history"
        },
        {
            "name": "Workspaces",
            "description": "The workspaces a token can act in"
        },
        {
            "name": "Workspace",
            "description": "What the workspace has run up this billing cycle, and the ceiling an admin puts on it"
        }
    ],
    "paths": {
        "/api/v1/apps": {
            "get": {
                "summary": "List all applications",
                "description": "Returns a list of all applications in the current workspace. Each application includes its configuration, status, assigned resource, and associated add-ons.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "name",
                        "description": "Only the application with exactly this name (the generated name, such as my-app-x7k2p, not the label). Empty list when none matches.",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List all applications",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_App"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "listApps"
            },
            "post": {
                "summary": "Create a new application",
                "description": "Creates a new application in the specified project. You can choose between auto detection (buildpacks) for automatic build detection, Dockerfile for custom container builds, or custom builder for language-specific build detection.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createApp"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a new application",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_App"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "createApp"
            }
        },
        "/api/v1/apps/{uuid}": {
            "get": {
                "summary": "Get application details",
                "description": "Retrieves detailed information about a specific application, including its configuration, status, resource allocation, add-ons, and cron jobs.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get application details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_App"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "getApp"
            },
            "put": {
                "summary": "Update application settings",
                "description": "Updates the configuration of an existing application. You can modify build settings, resource allocation, deployment method, and maintenance mode.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateApp"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update application settings",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_App"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "updateApp"
            },
            "delete": {
                "summary": "Delete an application",
                "description": "Permanently deletes an application and all its associated data, including add-ons, domains, environment variables, and cron jobs. This action cannot be undone.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete an application"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "deleteApp"
            }
        },
        "/api/v1/apps/{uuid}/state": {
            "patch": {
                "summary": "Change application state",
                "description": "Schedules a state change for the application. The operation is performed asynchronously and you will receive a notification when complete.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppState"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Change application state",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "updateAppState"
            }
        },
        "/api/v1/apps/{uuid}/security": {
            "put": {
                "summary": "Update security settings",
                "description": "Configures the application's network security settings, including whether to allow internal connections from other applications in your workspace, and Basic Authentication settings.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppSecurity"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update security settings",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "updateAppSecurity"
            }
        },
        "/api/v1/apps/{uuid}/clone": {
            "post": {
                "summary": "Clone an application",
                "description": "Creates a copy of an existing application with optional cloning of environment variables, secret files, scaling settings, health checks, add-ons, and cron jobs. The copy runs on a resource (resource_id), on Usage Billing (billing pay_per_use) or, on an enterprise contract, in the workspace pool (billing workspace_pool). When the target resource is assigned to projects, the target project must be one of them. Without a resource the copy keeps the source's CPU and RAM unless size is given, CPU capped at the largest workload without a resource; it is refused with 422 when the application or a cloned add-on needs more RAM or disk than such a workload can have, or while Usage Billing is still being set up in the region, and with 422 and checkout_url when the workspace has to pay the Usage Billing monthly minimum first.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Source application UUID to clone from",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/cloneApp"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Clone an application",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_App"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "cloneApp"
            }
        },
        "/api/v1/apps/{uuid}/deploy": {
            "post": {
                "summary": "Deploy application",
                "description": "Triggers a deployment of the application. You can optionally specify a custom image tag, commit SHA, or branch to deploy.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/deployApp"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Deploy application",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "409": {
                        "description": "A deployment is already in progress"
                    },
                    "422": {
                        "description": "Deployment failed"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "deployApp"
            }
        },
        "/api/v1/apps/{uuid}/deployment": {
            "put": {
                "summary": "Update application deployment configuration",
                "description": "Updates the deployment method and configuration of an existing application. Use this to switch between Git-based deployments, container registry deployments, parent image inheritance, or update Kamal SSH keys. `deployment_config_attributes` is applied as a patch: fields you omit keep their stored value, and a field sent as an empty string is cleared. Sending a different `deployment_method` builds the configuration from scratch, so every field that method needs must be supplied.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppDeployment"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update application deployment configuration",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_App"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "updateAppDeployment"
            }
        },
        "/api/v1/apps/{uuid}/activity": {
            "get": {
                "summary": "Get an application activity",
                "description": "Returns a paginated activity feed for the application, including deployments, configuration changes, and other audit events.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "page",
                        "description": "Page number",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int32",
                            "default": 1
                        }
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "description": "Number of items per page",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int32",
                            "default": 7
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get an application activity",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_ActivityFeed"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "getAppActivity"
            }
        },
        "/api/v1/apps/{uuid}/scaling_profile": {
            "put": {
                "summary": "Update scaling profile",
                "description": "Configures auto-scaling behavior for the application. Set replica counts, CPU/memory thresholds for scaling triggers, and optional time-based scaling windows. Not available on free plans. An application on Usage Billing can also have a monthly budget: when its own usage this billing cycle (not its add-ons') reaches it, admins are emailed at 50% and 75% and at the budget if budget_notification_enabled, and with stop_at_budget_limit_enabled it is scaled down to one replica. It keeps running and serving, its storage and that replica keep being charged for, and a scale-up is refused with 422 until the next cycle, when it gets back the scaling it had, or until the budget is raised above its usage, removed, or stop_at_budget_limit_enabled is turned off, which puts that scaling back at once. A budget on an application on a resource or in a workspace pool is refused with 422.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppScalingProfile"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update scaling profile",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Feature not available on free plan"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "updateAppScalingProfile"
            }
        },
        "/api/v1/apps/{uuid}/workers/{name}": {
            "put": {
                "summary": "Scale a worker",
                "description": "Scales one worker of the application, a process its Procfile runs besides the web, on its own: a fixed number of replicas, or autoscaling between a minimum and a maximum on CPU or memory use, optionally inside a daily window. The web and the application's other workers keep theirs. Like anything app.json declares, the change lasts until the next deploy, which sets the replicas app.json's formation gives the worker again. On Usage Billing, a worker may run up to the workspace's replicas_per_process limit (GET /api/v1/workspace/limits); on a resource, as many as the RAM the web and the other workers leave on it; on free compute, none until the workspace starts Usage Billing. Growing past that answers 422; scaling down is always accepted. Takes apps:deploy, apps:operate or apps:manage, as the application's own scaling does. Not available on free plans. Returns the worker.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "name",
                        "description": "The worker's name, as GET /api/v1/apps/{uuid} lists it under workers",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/scaleAppWorker"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Scale a worker",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Worker"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden, or not available on free plans"
                    },
                    "404": {
                        "description": "App or worker not found"
                    },
                    "422": {
                        "description": "Past the worker's limit, or invalid scaling"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "scaleAppWorker"
            }
        },
        "/api/v1/apps/{uuid}/health_checks": {
            "put": {
                "summary": "Update health checks",
                "description": "Configures Kubernetes health probes (liveness, readiness, startup) for the application. Health checks ensure your application is running correctly and ready to receive traffic.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppHealthChecks"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update health checks",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Apps"
                ],
                "operationId": "updateAppHealthChecks"
            }
        },
        "/api/v1/apps/{uuid}/domains": {
            "get": {
                "summary": "List application domains",
                "description": "Returns all custom domains configured for the specified application. Each domain includes its DNS target for CNAME configuration.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List application domains",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Domain"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "listAppDomains"
            },
            "post": {
                "summary": "Add a custom domain",
                "description": "Configures a custom domain for the application. The response includes verification_token (publish as TXT _migetapp-verify.<domain>) and the empty dns_target placeholder; once verification succeeds (poll GET endpoint or trigger via POST .../verify), dns_target is filled in with the CNAME target you publish on the apex/subdomain itself.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "$ref": "#/components/requestBodies/createAppDomain"
                },
                "responses": {
                    "201": {
                        "description": "Add a custom domain",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Domain"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "createAppDomain"
            }
        },
        "/api/v1/apps/{uuid}/domains/{domain_uuid}": {
            "get": {
                "summary": "Get domain details",
                "description": "Retrieves detailed information about a specific custom domain, including its DNS target for CNAME configuration.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "domain_uuid",
                        "description": "Unique domain identifier (UUID)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get domain details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Domain"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Domain not found"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "getAppDomain"
            },
            "put": {
                "summary": "Update a custom domain",
                "description": "Updates the configuration of an existing custom domain.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "domain_uuid",
                        "description": "Unique domain identifier (UUID)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "$ref": "#/components/requestBodies/updateAppDomain"
                },
                "responses": {
                    "200": {
                        "description": "Update a custom domain",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Domain"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Domain not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "updateAppDomain"
            },
            "delete": {
                "summary": "Remove a custom domain",
                "description": "Removes a custom domain from the application. The domain will no longer route traffic to your application.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "domain_uuid",
                        "description": "Unique domain identifier (UUID)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Remove a custom domain"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Domain not found"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "deleteAppDomain"
            }
        },
        "/api/v1/apps/{uuid}/domains/{domain_uuid}/verify": {
            "post": {
                "summary": "Trigger domain verification",
                "description": "Re-runs the DNS verification check for a custom domain. Caller is expected to have already configured the TXT record at _migetapp-verify.<domain> with the value from `verification_token`. The check runs asynchronously (retried at growing intervals for up to 60 minutes); poll the show endpoint to track status. If the domain is already verified, the call is a no-op and returns the current state. If the domain doesn't need verification (e.g. www subdomain whose root is verified), the call returns the current state without scheduling work.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "domain_uuid",
                        "description": "Unique domain identifier (UUID)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Trigger domain verification",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Domain"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Domain not found"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "verifyAppDomain"
            }
        },
        "/api/v1/apps/{uuid}/addons": {
            "get": {
                "summary": "List application add-ons",
                "description": "Returns all add-ons (databases, caches, storage) attached to the specified application, excluding cron jobs.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List application add-ons",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Addon"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "listAppAddons"
            },
            "post": {
                "summary": "Create a new add-on",
                "description": "Provisions a new add-on (database, cache, or storage) for the application. Connection credentials are automatically injected as environment variables. A storage add-on is sized by disk_size alone: size, cpu_size and ram_size are refused with 422. With service_id it mounts that shared storage service's volume and has no size of its own: disk_size is refused with 422 as well. On Usage Billing an add-on is billed even on an application on free compute, so it starts the Usage Billing monthly minimum first, answered with 422 and checkout_url when the workspace has to pay it.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createAppAddon"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a new add-on",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Addon"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "createAppAddon"
            }
        },
        "/api/v1/apps/{uuid}/addons/{id}": {
            "get": {
                "summary": "Get add-on details",
                "description": "Retrieves detailed information about a specific add-on, including its configuration, connection details, and resource allocation.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Add-on ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get add-on details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Addon"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Add-on not found"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "getAppAddon"
            },
            "put": {
                "summary": "Update an add-on",
                "description": "Modifies the configuration of an existing add-on. You can adjust resource allocation and settings without data loss. A storage add-on changes only its label and disk_size: size, cpu_size and ram_size are refused with 422. Storage mounted from a shared storage service changes only its label: disk_size is refused with 422 as well.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Add-on ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppAddon"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update an add-on",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Addon"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Add-on not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "updateAppAddon"
            },
            "delete": {
                "summary": "Delete an add-on",
                "description": "Permanently removes an add-on and all its data. This action cannot be undone - ensure you have backups if needed.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Add-on ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete an add-on"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Add-on not found"
                    },
                    "422": {
                        "description": "Delete failed"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "deleteAppAddon"
            }
        },
        "/api/v1/apps/{uuid}/addons/{id}/state": {
            "patch": {
                "summary": "Change add-on state",
                "description": "Schedules a state change for the add-on (start, stop, or restart). The operation is performed asynchronously.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Add-on ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppAddonState"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Change add-on state",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Add-on not found"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "updateAppAddonState"
            }
        },
        "/api/v1/apps/{uuid}/addons/{id}/rotate_password": {
            "post": {
                "summary": "Rotate addon password",
                "description": "Rotates the password for an addon (database, cache, etc.). Only certain addon types support password rotation (databases like PostgreSQL, MySQL, and caches like Valkey). The new password will be returned in the response. You must update ENV variables manually after rotation.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Addon UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Rotate addon password",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Addon not found"
                    },
                    "422": {
                        "description": "Password rotation not supported for this addon type"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "rotateAddonPassword"
            }
        },
        "/api/v1/apps/{uuid}/addons/{id}/backups": {
            "get": {
                "summary": "Get add-on backups",
                "description": "Retrieves backup information for a PostgreSQL add-on, including backup list, schedule, and cluster status.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Add-on ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get add-on backups",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Backup"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Add-on not found"
                    },
                    "422": {
                        "description": "Not a PostgreSQL add-on"
                    },
                    "503": {
                        "description": "Backup information could not be read from the cluster"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "getAppAddonBackups"
            }
        },
        "/api/v1/apps/{uuid}/addons/{id}/restore_backup": {
            "post": {
                "summary": "Restore add-on from backup",
                "description": "Initiates a database restore for a PostgreSQL add-on. Provide either backup_name for a specific backup, target_time for point-in-time recovery, or neither for the latest backup.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Add-on ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/restoreAppAddonBackup"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Restore add-on from backup",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Add-on not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "restoreAppAddonBackup"
            }
        },
        "/api/v1/apps/{uuid}/addons/{id}/reset_database": {
            "post": {
                "summary": "Reset add-on database",
                "description": "Drops all data in an app add-on database while keeping the database user and name. This action cannot be undone, so it requires apps:manage.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Add-on ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Reset add-on database",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Add-on not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "resetAppAddonDatabase"
            }
        },
        "/api/v1/apps/{uuid}/addons/{id}/create_replica": {
            "post": {
                "summary": "Create a read replica of a PostgreSQL add-on",
                "description": "Creates a new read replica of the specified PostgreSQL add-on. The replica runs where its primary runs and is billed the same way, on its resource, on Usage Billing or in the workspace pool, with no placement to choose. It shares the primary's credentials and inherits its public access. On Usage Billing it takes size (the primary's when omitted), may first need the monthly minimum's checkout (422 with checkout_url), and a database on free compute cannot have one (422).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Add-on ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createAppAddonReplica"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a read replica of a PostgreSQL add-on",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Addon"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Add-on not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "createAppAddonReplica"
            }
        },
        "/api/v1/apps/{uuid}/addons/{id}/promote_replica": {
            "post": {
                "summary": "Promote a read replica to standalone instance",
                "description": "Promotes a PostgreSQL read replica to a standalone instance. The replica will no longer receive updates from the primary database. This action cannot be undone.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Add-on ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Promote a read replica to standalone instance",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Add-on not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "promoteAppAddonReplica"
            }
        },
        "/api/v1/apps/{uuid}/addons/{id}/promote_external": {
            "post": {
                "summary": "Promote an external replica to standalone instance or cluster",
                "description": "Promotes a PostgreSQL external replica to a standalone instance or HA cluster. The replica will disconnect from the external source and become an independent database. This action cannot be undone.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Add-on ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Promote an external replica to standalone instance or cluster",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Add-on not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Add-ons"
                ],
                "operationId": "promoteAppAddonExternalReplica"
            }
        },
        "/api/v1/apps/{uuid}/vars/project_variables_enabled": {
            "put": {
                "summary": "Toggle inheritance of project environment variables",
                "description": "Controls whether the application also receives the environment variables defined on its project. The application's own variables are unaffected. The other way to set this is alongside a variable update on PUT /apps/{uuid}/vars, which is why this endpoint exists: it lets you flip the switch without writing a variable.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppProjectVariablesEnabled"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Toggle inheritance of project environment variables"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Environment Variables"
                ],
                "operationId": "updateAppProjectVariablesEnabled"
            }
        },
        "/api/v1/apps/{uuid}/vars": {
            "get": {
                "summary": "List environment variables",
                "description": "Returns all environment variables configured for the application, with their values. The id in each entry is not accepted by any endpoint; variables are addressed by key.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List environment variables",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Variable"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Environment Variables"
                ],
                "operationId": "listAppVars"
            },
            "post": {
                "summary": "Create an environment variable",
                "description": "Adds a new environment variable to the application. The variable will be available in the application's runtime environment after the next deployment. A key the application already has is refused with 422; to set a variable whether or not it exists, use PUT.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createAppVar"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create an environment variable"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Environment Variables"
                ],
                "operationId": "createAppVar"
            },
            "put": {
                "summary": "Update an environment variable",
                "description": "Sets an environment variable, identified by key. Overwrites the value if the key exists and creates the variable if it does not. Changes take effect after the next deployment.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppVar"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update an environment variable"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Environment Variables"
                ],
                "operationId": "updateAppVar"
            },
            "delete": {
                "summary": "Delete an environment variable",
                "description": "Removes an environment variable from the application. The variable will no longer be available after the next deployment.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "key",
                        "description": "Variable name to delete",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete an environment variable"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Environment Variables"
                ],
                "operationId": "deleteAppVar"
            }
        },
        "/api/v1/apps/{uuid}/secret_files/project_files_enabled": {
            "put": {
                "summary": "Toggle inheritance of project secret files",
                "description": "Controls whether the application also mounts the secret files defined on its project. Turning it on mounts them, turning it off unmounts them; either way the change reaches running containers on the next deployment. The application's own secret files are unaffected.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppProjectSecretFilesEnabled"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Toggle inheritance of project secret files"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Secret Files"
                ],
                "operationId": "updateAppProjectSecretFilesEnabled"
            }
        },
        "/api/v1/apps/{uuid}/secret_files": {
            "get": {
                "summary": "List secret files",
                "description": "Returns the secret files mounted into the application, ordered by filename. File contents are never returned — the `text` field is write-only. Project-level secret files inherited by this application are not included.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List secret files",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_SecretFile"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Secret Files"
                ],
                "operationId": "listAppSecretFiles"
            },
            "post": {
                "summary": "Create a secret file",
                "description": "Mounts a new secret file into the application. Use this for config files a container needs on disk — service account JSON, .npmrc, certificates — that do not fit an environment variable. The contents are encrypted at rest and never returned by the API. The response carries a server-assigned `name`; use that name in every other secret file endpoint. The file reaches running containers on the next deployment.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createAppSecretFile"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a secret file",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SecretFile"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Secret Files"
                ],
                "operationId": "createAppSecretFile"
            }
        },
        "/api/v1/apps/{uuid}/secret_files/{name}": {
            "get": {
                "summary": "Get a secret file",
                "description": "Returns the metadata of one secret file. The file contents are never returned — the `text` field is write-only.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "name",
                        "description": "Secret file name as returned on creation",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a secret file",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SecretFile"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App or secret file not found"
                    }
                },
                "tags": [
                    "App Secret Files"
                ],
                "operationId": "getAppSecretFile"
            },
            "put": {
                "summary": "Update a secret file",
                "description": "Replaces the mount path, the contents, or both. Omitted fields keep their current value. The change reaches running containers on the next deployment.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "name",
                        "description": "Secret file name as returned on creation",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppSecretFile"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a secret file",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SecretFile"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App or secret file not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Secret Files"
                ],
                "operationId": "updateAppSecretFile"
            },
            "delete": {
                "summary": "Delete a secret file",
                "description": "Removes the secret file from the application. It is unmounted from running containers on the next deployment.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "name",
                        "description": "Secret file name as returned on creation",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a secret file"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App or secret file not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Secret Files"
                ],
                "operationId": "deleteAppSecretFile"
            }
        },
        "/api/v1/apps/{uuid}/preview_environments/config": {
            "get": {
                "summary": "Get the preview environment config",
                "description": "Returns what triggers preview environments for this application, where they run, what is cloned into them, and when they are cleaned up. Returns 404 when the application has never been configured — send a PUT to create the config.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get the preview environment config",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_PreviewEnvironmentConfig"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden, or the app is stack-managed"
                    },
                    "404": {
                        "description": "App not found, or no config exists yet"
                    }
                },
                "tags": [
                    "App Preview Environments"
                ],
                "operationId": "getAppPreviewEnvironmentConfig"
            },
            "put": {
                "summary": "Set the preview environment config",
                "description": "Creates the config the first time and updates it afterwards. Omitted fields keep their current value; on a first call they fall back to the defaults documented per field. Preview environments only work for applications deployed with the github method. While enabled, the resource they run on (resource_id, or the application's own in parent mode) must accept the target project: a resource assigned to other projects is refused with 422. An application without a resource takes only parent mode. Saving the config enabled with preview environments that run without a resource prepares that placement at once: it is refused with 422 when Usage Billing is turned off for the workspace, or when the application or an add-on it clones needs more RAM or disk than a workload without a resource can have, and with 422 and checkout_url when the workspace has to pay the Usage Billing monthly minimum first. Turning on preview environments on Usage Billing, or moving them onto Usage Billing, takes apps:manage.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppPreviewEnvironmentConfig"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Set the preview environment config",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_PreviewEnvironmentConfig"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden, or the app is stack-managed"
                    },
                    "404": {
                        "description": "App, resource or project not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Preview Environments"
                ],
                "operationId": "updateAppPreviewEnvironmentConfig"
            }
        },
        "/api/v1/apps/{uuid}/preview_environments": {
            "get": {
                "summary": "List preview environments",
                "description": "Returns the preview environments of the application, newest first. Preview environments are created automatically from GitHub pull requests or branches — there is no endpoint to create one by hand; configure the triggers via the preview environment config endpoint instead.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "status",
                        "description": "Return only preview environments in this status",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "creating",
                                "active",
                                "updating",
                                "failed",
                                "destroying"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List preview environments",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_PreviewEnvironment"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden, or the app is stack-managed"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Preview Environments"
                ],
                "operationId": "listAppPreviewEnvironments"
            }
        },
        "/api/v1/apps/{uuid}/preview_environments/{id}": {
            "get": {
                "summary": "Get a preview environment",
                "description": "Returns one preview environment, including the URL of the cloned application and the commit it currently runs.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Preview environment ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int32"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a preview environment",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_PreviewEnvironment"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden, or the app is stack-managed"
                    },
                    "404": {
                        "description": "App or preview environment not found"
                    }
                },
                "tags": [
                    "App Preview Environments"
                ],
                "operationId": "getAppPreviewEnvironment"
            },
            "delete": {
                "summary": "Delete a preview environment",
                "description": "Schedules the preview environment and its cloned application for deletion. Returns 202 — the teardown runs in the background, so the environment stays listed with status destroying until it completes.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Preview environment ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int32"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a preview environment"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden, or the app is stack-managed"
                    },
                    "404": {
                        "description": "App or preview environment not found"
                    }
                },
                "tags": [
                    "App Preview Environments"
                ],
                "operationId": "deleteAppPreviewEnvironment"
            }
        },
        "/api/v1/apps/{uuid}/preview_environments/{id}/redeploy": {
            "post": {
                "summary": "Redeploy a preview environment",
                "description": "Redeploys the preview environment at the commit it already tracks. Returns 202 — the deployment runs in the background. Use this to retry a failed preview environment; new commits deploy on their own when auto_deploy_on_push is on.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Preview environment ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int32"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Redeploy a preview environment"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden, or the app is stack-managed"
                    },
                    "404": {
                        "description": "App or preview environment not found"
                    }
                },
                "tags": [
                    "App Preview Environments"
                ],
                "operationId": "redeployAppPreviewEnvironment"
            }
        },
        "/api/v1/apps/{uuid}/cronjobs": {
            "get": {
                "summary": "List cron jobs",
                "description": "Returns all scheduled cron jobs configured for the application, including their schedules and last execution times.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List cron jobs",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Cronjob"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Cron Jobs"
                ],
                "operationId": "listAppCronjobs"
            },
            "post": {
                "summary": "Create a cron job",
                "description": "Creates a new scheduled cron job for the application. Jobs can run on a fixed interval or using a custom cron expression. Cron jobs are billed for the time their runs take, at their size: one set to bill, or on a resource whose plan costs nothing, starts Usage Billing, and if it would be the first charge in a workspace whose subscription pays for nothing yet it is refused with 422 and a checkout_url to complete first, and in a workspace in its free trial the trial carries on: it covers the plan only: runs are charged while it runs, the first time once usage reaches $5, and usage never ends it. On a resource the runs draw on the cron minutes its plan includes first (cron_minutes on GET /api/v1/resources/{uuid}); one created set to pause while they are used up starts paused (suspended: true) until the next renewal.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createAppCronjob"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a cron job",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Cronjob"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Cron Jobs"
                ],
                "operationId": "createAppCronjob"
            }
        },
        "/api/v1/apps/{uuid}/cronjobs/sizes": {
            "get": {
                "summary": "List cron job sizes",
                "description": "Returns the sizes a cron job of this application can run at: the CPU and RAM each run gets and the price of a minute of it. They are the sizes of the resource plans on sale in the application's CPU class, Hobby (shared CPU) or Pro (dedicated), each named by its plan's code, and a minute costs that plan's monthly price over a 720-hour month (43,200 minutes). A cron job is billed for the time each run takes, at its size, whether the application runs on a resource or on Usage Billing.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List cron job sizes",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_CronjobSize"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "App has no resource"
                    }
                },
                "tags": [
                    "App Cron Jobs"
                ],
                "operationId": "listAppCronjobSizes"
            }
        },
        "/api/v1/apps/{uuid}/cronjobs/{id}": {
            "get": {
                "summary": "Get cron job details",
                "description": "Retrieves detailed information about a specific cron job, including its schedule configuration and execution history.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Cron job ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get cron job details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Cronjob"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Cron job not found"
                    }
                },
                "tags": [
                    "App Cron Jobs"
                ],
                "operationId": "getAppCronjob"
            },
            "put": {
                "summary": "Update a cron job",
                "description": "Modifies an existing cron job's configuration: its label, command, size, how long a run may take (max_run_seconds) and what it does past its resource's cron minutes (overage). Switching overage to 'bill' starts Usage Billing's minimum first, answered with 422 and a checkout_url when the subscription pays for nothing, and resumes the cron job if the used-up minutes paused it.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Cron job ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateAppCronjob"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a cron job",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Cronjob"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Cron job not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Cron Jobs"
                ],
                "operationId": "updateAppCronjob"
            },
            "delete": {
                "summary": "Delete a cron job",
                "description": "Permanently removes a cron job from the application. The job will stop running immediately.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Cron job ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a cron job"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Cron job not found"
                    },
                    "422": {
                        "description": "Delete failed"
                    }
                },
                "tags": [
                    "App Cron Jobs"
                ],
                "operationId": "deleteAppCronjob"
            }
        },
        "/api/v1/apps/{uuid}/cronjobs/{id}/pause": {
            "post": {
                "summary": "Pause a cron job",
                "description": "Stops a cron job from starting new runs; a run already under way finishes on its own. A paused cron job is not billed and holds nothing in its resource. Pausing one that is already paused changes nothing.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Cron job ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Pause a cron job",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Cronjob"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Cron job not found"
                    },
                    "422": {
                        "description": "Pause failed"
                    }
                },
                "tags": [
                    "App Cron Jobs"
                ],
                "operationId": "pauseAppCronjob"
            }
        },
        "/api/v1/apps/{uuid}/cronjobs/{id}/resume": {
            "post": {
                "summary": "Resume a cron job",
                "description": "Lets a paused cron job start runs again on its schedule. A cron job set to pause past its resource's cron minutes, while they are used up for this billing cycle, stays paused until the next renewal, which resumes it, and the request is rejected with 422; set its overage to 'bill' with PUT .../cronjobs/{id} to run it now. Resuming one that is not paused changes nothing.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Cron job ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Resume a cron job",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Cronjob"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Cron job not found"
                    },
                    "422": {
                        "description": "Its cron minutes are used up"
                    }
                },
                "tags": [
                    "App Cron Jobs"
                ],
                "operationId": "resumeAppCronjob"
            }
        },
        "/api/v1/apps/{uuid}/cronjobs/{id}/stream_logs": {
            "get": {
                "summary": "Stream cron job run logs",
                "description": "Streams the logs of the cron job's most recent run in real-time using Server-Sent Events (SSE). Available once the job has run at least once.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Cron job ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Stream cron job run logs"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Cron job not found or has not run yet"
                    }
                },
                "tags": [
                    "App Cron Jobs"
                ],
                "operationId": "streamAppCronjobLogs"
            }
        },
        "/api/v1/apps/{uuid}/cronjobs/{id}/runs": {
            "get": {
                "summary": "List a cron job's runs",
                "description": "The cron job's runs of the last 30 days, newest first, a page at a time: when each started and finished, and whether it succeeded or failed and why. A run still going is running, with no finished_at. A record of what ran: billing reads the platform's meter, not these.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Cron job ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "page",
                        "description": "Page number, from 1",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int32",
                            "default": 1
                        }
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "description": "Number of runs per page, at most 100",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int32",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 20
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List a cron job's runs",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_CronjobRunList"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Cron job not found"
                    }
                },
                "tags": [
                    "App Cron Jobs"
                ],
                "operationId": "listAppCronjobRuns"
            }
        },
        "/api/v1/apps/{uuid}/ports": {
            "get": {
                "summary": "List application ports",
                "description": "Returns all ports configured for the specified application, ordered by creation time (newest first).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List application ports",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Port"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Ports"
                ],
                "operationId": "listAppPorts"
            },
            "post": {
                "summary": "Create a port",
                "description": "Adds a new port to the application. Set `public: true` to expose the port publicly (not available on free plans).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createAppPort"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a port",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Port"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Ports"
                ],
                "operationId": "createAppPort"
            }
        },
        "/api/v1/apps/{uuid}/ports/{port_id}": {
            "get": {
                "summary": "Get port details",
                "description": "Retrieves detailed information about a specific port, including its public endpoint configuration.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "port_id",
                        "description": "Port ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int32"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get port details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Port"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Port not found"
                    }
                },
                "tags": [
                    "App Ports"
                ],
                "operationId": "getAppPort"
            },
            "delete": {
                "summary": "Delete a port",
                "description": "Removes a port from the application. Any public endpoint associated with the port is torn down.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "port_id",
                        "description": "Port ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int32"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a port"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Port not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Ports"
                ],
                "operationId": "deleteAppPort"
            }
        },
        "/api/v1/apps/{uuid}/ports/{port_id}/expose_publicly": {
            "patch": {
                "summary": "Expose a port publicly",
                "description": "Allocates a public endpoint for the port and exposes it to the internet. Not available on free plans.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "port_id",
                        "description": "Port ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int32"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Expose a port publicly",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Port"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Port not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Ports"
                ],
                "operationId": "exposeAppPortPublicly"
            }
        },
        "/api/v1/apps/{uuid}/ports/{port_id}/make_private": {
            "patch": {
                "summary": "Make a port private",
                "description": "Tears down the public endpoint for the port, making it accessible only inside the cluster.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "port_id",
                        "description": "Port ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int32"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Make a port private",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Port"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Port not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Ports"
                ],
                "operationId": "makeAppPortPrivate"
            }
        },
        "/api/v1/apps/{uuid}/deployments": {
            "get": {
                "summary": "List deployments",
                "description": "Returns all deployments for the specified application, optionally filtered by status and time period.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "status",
                        "description": "Filter by deployment status (pending, running, completed, failed, cancelling, cancelled)",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "pending",
                                "running",
                                "completed",
                                "failed",
                                "cancelling",
                                "cancelled"
                            ]
                        }
                    },
                    {
                        "in": "query",
                        "name": "period",
                        "description": "Filter by time period: '7days', '30days', '90days', or 'all'",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "7days",
                                "30days",
                                "90days",
                                "all"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List deployments",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Deployment"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Deployments"
                ],
                "operationId": "listAppDeployments"
            }
        },
        "/api/v1/apps/{uuid}/deployments/{id}": {
            "get": {
                "summary": "Get deployment details",
                "description": "Retrieves detailed information about a specific deployment, including its current state and timestamps.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Deployment UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get deployment details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Deployment"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Deployment not found"
                    }
                },
                "tags": [
                    "App Deployments"
                ],
                "operationId": "getAppDeployment"
            }
        },
        "/api/v1/apps/{uuid}/deployments/{id}/logs": {
            "get": {
                "summary": "Get deployment build logs",
                "description": "Retrieves the stored build logs for a completed deployment. Logs are only available after the deployment has finished and logs have been stored.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Deployment UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get deployment build logs"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Deployment not found or logs not available"
                    },
                    "503": {
                        "description": "Service unavailable"
                    }
                },
                "tags": [
                    "App Deployments"
                ],
                "operationId": "getAppDeploymentLogs"
            }
        },
        "/api/v1/apps/{uuid}/deployments/{id}/stream_logs": {
            "get": {
                "summary": "Stream deployment build logs",
                "description": "Streams build logs in real-time using Server-Sent Events (SSE). Only available for running deployments or recently completed deployments (within 15-30 minutes depending on environment).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Deployment UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Stream deployment build logs"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Deployment not found"
                    }
                },
                "tags": [
                    "App Deployments"
                ],
                "operationId": "streamAppDeploymentLogs"
            }
        },
        "/api/v1/apps/{uuid}/deployments/{id}/cancel": {
            "post": {
                "summary": "Cancel deployment",
                "description": "Cancels a running deployment. Only deployments in 'running' state can be cancelled.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Deployment UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Cancel deployment",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Deployment not found"
                    },
                    "422": {
                        "description": "Deployment cannot be cancelled"
                    }
                },
                "tags": [
                    "App Deployments"
                ],
                "operationId": "cancelAppDeployment"
            }
        },
        "/api/v1/apps/{uuid}/deployments/{id}/rollback": {
            "post": {
                "summary": "Rollback deployment",
                "description": "Rolls back to a previous deployment. Only rollbackable deployments can be rolled back. A deployment is rollbackable if it has an image URL, uses the same deployment method as the app, and is not currently running or failed.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Deployment UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Rollback deployment",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Deployment not found"
                    },
                    "422": {
                        "description": "Deployment cannot be rolled back"
                    }
                },
                "tags": [
                    "App Deployments"
                ],
                "operationId": "rollbackAppDeployment"
            }
        },
        "/api/v1/auth/sign_in": {
            "post": {
                "summary": "Authenticate user",
                "description": "Authenticates a user with email and password. Returns JWT access token (30 min expiry) and refresh token (7 days expiry).",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/signIn"
                            }
                        }
                    },
                    "required": true
                },
                "security": [],
                "responses": {
                    "201": {
                        "description": "Authenticate user",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_AuthTokens"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Invalid credentials"
                    }
                },
                "tags": [
                    "Authentication"
                ],
                "operationId": "signIn"
            }
        },
        "/api/v1/auth/refresh_token": {
            "post": {
                "summary": "Refresh access token",
                "description": "Exchanges a valid refresh token for a new access token. Use this when your access token has expired.",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/refreshToken"
                            }
                        }
                    },
                    "required": true
                },
                "security": [],
                "responses": {
                    "201": {
                        "description": "Refresh access token",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_AccessToken"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Invalid or expired refresh token"
                    },
                    "404": {
                        "description": "User not found"
                    }
                },
                "tags": [
                    "Authentication"
                ],
                "operationId": "refreshToken"
            }
        },
        "/api/v1/buckets": {
            "get": {
                "summary": "List all buckets",
                "description": "Returns all storage buckets in the workspace.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List all buckets",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Bucket"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Buckets"
                ],
                "operationId": "listBuckets"
            },
            "post": {
                "summary": "Create a new bucket",
                "description": "Creates a new storage bucket with the specified configuration.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createBucket"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a new bucket",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Bucket"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Buckets"
                ],
                "operationId": "createBucket"
            }
        },
        "/api/v1/buckets/{uuid}": {
            "get": {
                "summary": "Get bucket details",
                "description": "Retrieves detailed information about a storage bucket, including connection details and statistics.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Bucket UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get bucket details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Bucket"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    }
                },
                "tags": [
                    "Buckets"
                ],
                "operationId": "getBucket"
            },
            "put": {
                "summary": "Update bucket",
                "description": "Updates bucket configuration (label, visibility, disk allocation).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Bucket UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateBucket"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update bucket",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Bucket"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Buckets"
                ],
                "operationId": "updateBucket"
            },
            "delete": {
                "summary": "Delete bucket",
                "description": "Permanently deletes a storage bucket and all its contents.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Bucket UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete bucket"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    }
                },
                "tags": [
                    "Buckets"
                ],
                "operationId": "deleteBucket"
            }
        },
        "/api/v1/buckets/{uuid}/policy": {
            "put": {
                "summary": "Update bucket policy",
                "description": "Sets or updates the S3-compatible JSON bucket policy.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Bucket UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateBucketPolicy"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update bucket policy",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Bucket"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    },
                    "422": {
                        "description": "Invalid JSON"
                    }
                },
                "tags": [
                    "Buckets"
                ],
                "operationId": "updateBucketPolicy"
            },
            "delete": {
                "summary": "Delete bucket policy",
                "description": "Removes the bucket policy, reverting to default access rules.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Bucket UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete bucket policy"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    },
                    "422": {
                        "description": "Failed to delete policy"
                    }
                },
                "tags": [
                    "Buckets"
                ],
                "operationId": "deleteBucketPolicy"
            }
        },
        "/api/v1/buckets/{uuid}/acl": {
            "put": {
                "summary": "Update bucket ACL",
                "description": "Sets or updates the S3-compatible XML access control list (ACL).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Bucket UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateBucketAcl"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update bucket ACL",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Bucket"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    },
                    "422": {
                        "description": "Invalid XML"
                    }
                },
                "tags": [
                    "Buckets"
                ],
                "operationId": "updateBucketAcl"
            },
            "delete": {
                "summary": "Delete bucket ACL",
                "description": "Removes the bucket ACL, reverting to default access permissions.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Bucket UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete bucket ACL"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    },
                    "422": {
                        "description": "Failed to delete ACL"
                    }
                },
                "tags": [
                    "Buckets"
                ],
                "operationId": "deleteBucketAcl"
            }
        },
        "/api/v1/buckets/{uuid}/objects/list": {
            "get": {
                "summary": "List bucket objects",
                "description": "Lists files and folders in a bucket, optionally filtered by prefix (folder path).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "prefix",
                        "description": "Folder path prefix to filter objects",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "description": "Maximum number of objects to return",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int32",
                            "default": 100
                        }
                    },
                    {
                        "in": "query",
                        "name": "cursor",
                        "description": "Pagination cursor from previous request",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List bucket objects",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_BucketObjectList"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    }
                },
                "tags": [
                    "Bucket Objects"
                ],
                "operationId": "listBucketObjects"
            }
        },
        "/api/v1/buckets/{uuid}/objects/upload_url": {
            "post": {
                "summary": "Generate upload URL",
                "description": "Generates a presigned URL for uploading a file directly to S3.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/generateUploadUrl"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Upload URL generated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_PresignedUrl"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Bucket Objects"
                ],
                "operationId": "generateUploadUrl"
            }
        },
        "/api/v1/buckets/{uuid}/objects/download_url": {
            "post": {
                "summary": "Generate download URL",
                "description": "Generates a presigned URL for downloading a file, or returns public URL for public buckets.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/generateDownloadUrl"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Download URL generated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_PresignedUrl"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    }
                },
                "tags": [
                    "Bucket Objects"
                ],
                "operationId": "generateDownloadUrl"
            }
        },
        "/api/v1/buckets/{uuid}/objects/create_folder": {
            "post": {
                "summary": "Create folder",
                "description": "Creates a new folder (empty object with trailing slash) in the bucket.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createBucketFolder"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Folder created successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Bucket Objects"
                ],
                "operationId": "createBucketFolder"
            }
        },
        "/api/v1/buckets/{uuid}/objects/{key}": {
            "delete": {
                "summary": "Delete object",
                "description": "Deletes a file or folder (recursively) from the bucket.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Bucket UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "key",
                        "description": "Object key (file path)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete object"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    }
                },
                "tags": [
                    "Bucket Objects"
                ],
                "operationId": "deleteBucketObject"
            }
        },
        "/api/v1/buckets/{uuid}/objects/{key}/rename": {
            "put": {
                "summary": "Rename object",
                "description": "Renames a file or folder (recursively) in the bucket.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Bucket UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "key",
                        "description": "Current object key (file path)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/renameBucketObject"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Object renamed successfully"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Bucket not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Bucket Objects"
                ],
                "operationId": "renameBucketObject"
            }
        },
        "/api/v1/components": {
            "get": {
                "summary": "List available components",
                "description": "Returns all available resource components (extra RAM, CPU, disk) that can be added to compute resources.",
                "responses": {
                    "200": {
                        "description": "List available components",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Component"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                },
                "tags": [
                    "Components"
                ],
                "operationId": "listComponents"
            }
        },
        "/api/v1/container_registry_credentials": {
            "get": {
                "summary": "List all container registry credentials",
                "description": "Returns all container registry credentials in the workspace. Tokens are never returned.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List all container registry credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_ContainerRegistryCredential"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Container Registry Credentials"
                ],
                "operationId": "listContainerRegistryCredentials"
            },
            "post": {
                "summary": "Create a container registry credential",
                "description": "Stores credentials for pulling images from a private container registry. The returned uuid can then be passed as deployment_config.credential_id (UUID-valued) when creating an app with deployment_method='container_registry'. Token is encrypted at rest and never returned by the API.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createContainerRegistryCredential"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a container registry credential",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_ContainerRegistryCredential"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Container Registry Credentials"
                ],
                "operationId": "createContainerRegistryCredential"
            }
        },
        "/api/v1/container_registry_credentials/{uuid}": {
            "get": {
                "summary": "Get container registry credential",
                "description": "Retrieves a single container registry credential. Tokens are never returned.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Credential UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get container registry credential",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_ContainerRegistryCredential"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Credential not found"
                    }
                },
                "tags": [
                    "Container Registry Credentials"
                ],
                "operationId": "getContainerRegistryCredential"
            },
            "put": {
                "summary": "Update a container registry credential",
                "description": "Updates one or more fields. Omitted fields stay unchanged. Send a new token to rotate it (the existing token is never returned).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Credential UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateContainerRegistryCredential"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a container registry credential",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_ContainerRegistryCredential"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Credential not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Container Registry Credentials"
                ],
                "operationId": "updateContainerRegistryCredential"
            },
            "delete": {
                "summary": "Delete a container registry credential",
                "description": "Permanently deletes a stored credential. Apps that referenced it from their deployment_config will have the reference cleared (dependent: :nullify).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Credential UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a container registry credential"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Credential not found"
                    }
                },
                "tags": [
                    "Container Registry Credentials"
                ],
                "operationId": "deleteContainerRegistryCredential"
            }
        },
        "/api/v1/git_credentials": {
            "get": {
                "summary": "List all git credentials",
                "description": "Returns all git credentials in the workspace. Use a credential's uuid as credential_id when creating a stack or a github-sourced app. Tokens are never returned.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List all git credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_GitCredential"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Git Credentials"
                ],
                "operationId": "listGitCredentials"
            }
        },
        "/api/v1/git_credentials/{uuid}": {
            "get": {
                "summary": "Get git credential",
                "description": "Retrieves a single git credential. Tokens are never returned.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Credential UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get git credential",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_GitCredential"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Credential not found"
                    }
                },
                "tags": [
                    "Git Credentials"
                ],
                "operationId": "getGitCredential"
            }
        },
        "/api/v1/issues": {
            "get": {
                "summary": "List why things stopped",
                "description": "The history behind the panel's Issues page, newest first, open and resolved, at most 100. app_id narrows it to an application with its workers and add-ons, service_id to a service, resource_id to a resource and what runs on it that the caller can see; they are mutually exclusive, and combining two answers 400. Each kind needs that kind's view permission (apps:view, services:view, resources:view); without a filter it covers the kinds the caller may view.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "app_id",
                        "description": "An application's UUID",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "service_id",
                        "description": "A service's ID",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "resource_id",
                        "description": "A resource's UUID",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List why things stopped",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Issue"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Application, service or resource not found"
                    }
                },
                "tags": [
                    "Issues"
                ],
                "operationId": "listIssues"
            }
        },
        "/api/v1/plans": {
            "get": {
                "summary": "List available plans",
                "description": "Returns all available pricing plans for compute resources, including their specifications and pricing information.",
                "responses": {
                    "200": {
                        "description": "List available plans",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Plan"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                },
                "tags": [
                    "Plans"
                ],
                "operationId": "listPlans"
            }
        },
        "/api/v1/projects": {
            "get": {
                "summary": "List all projects",
                "description": "Returns all projects in the current workspace, ordered by creation date (newest first).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List all projects",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Project"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Projects"
                ],
                "operationId": "listProjects"
            },
            "post": {
                "summary": "Create a new project",
                "description": "Creates a new project in the workspace. Projects are used to organize related applications together. An API token limited to specific projects cannot create projects (403).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createProject"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a new project",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Project"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Projects"
                ],
                "operationId": "createProject"
            }
        },
        "/api/v1/projects/{project_id}": {
            "get": {
                "summary": "Get project details",
                "description": "Retrieves detailed information about a specific project by ID or UUID.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get project details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Project"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    }
                },
                "tags": [
                    "Projects"
                ],
                "operationId": "getProject"
            },
            "put": {
                "summary": "Update a project",
                "description": "Updates the name or description of an existing project.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateProject"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a project",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Project"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Projects"
                ],
                "operationId": "updateProject"
            },
            "delete": {
                "summary": "Delete a project",
                "description": "Permanently deletes a project and all its applications. This action cannot be undone.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a project"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    },
                    "422": {
                        "description": "Delete failed"
                    }
                },
                "tags": [
                    "Projects"
                ],
                "operationId": "deleteProject"
            }
        },
        "/api/v1/projects/{project_id}/apps": {
            "get": {
                "summary": "List project applications",
                "description": "Returns all applications belonging to the specified project, ordered by creation date (newest first).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List project applications",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_App"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    }
                },
                "tags": [
                    "Projects"
                ],
                "operationId": "listProjectApps"
            }
        },
        "/api/v1/projects/{project_id}/vars": {
            "get": {
                "summary": "List project environment variables",
                "description": "Returns all environment variables defined at the project level. These variables are shared across all applications in the project that have project variables enabled. The id in each entry is not accepted by any endpoint; variables are addressed by key.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List project environment variables",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Variable"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    }
                },
                "tags": [
                    "Project Environment Variables"
                ],
                "operationId": "listProjectVars"
            },
            "post": {
                "summary": "Create a project environment variable",
                "description": "Adds a new environment variable at the project level. Applications with project variables enabled will inherit this variable. A key the project already has is refused with 422; to set a variable whether or not it exists, use PUT.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createProjectVar"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a project environment variable"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Project Environment Variables"
                ],
                "operationId": "createProjectVar"
            },
            "put": {
                "summary": "Update a project environment variable",
                "description": "Sets a project-level environment variable, identified by key. Overwrites the value if the key exists and creates the variable if it does not. Changes will propagate to all applications with project variables enabled.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateProjectVar"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a project environment variable"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Project Environment Variables"
                ],
                "operationId": "updateProjectVar"
            },
            "delete": {
                "summary": "Delete a project environment variable",
                "description": "Removes a project-level environment variable. Applications will no longer have access to this variable.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "key",
                        "description": "Variable name to delete",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a project environment variable"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    }
                },
                "tags": [
                    "Project Environment Variables"
                ],
                "operationId": "deleteProjectVar"
            }
        },
        "/api/v1/projects/{project_id}/secret_files": {
            "get": {
                "summary": "List project secret files",
                "description": "Returns the secret files defined at the project level, ordered by filename. They are mounted into every application in the project that has project secret files enabled. File contents are never returned — the `text` field is write-only.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List project secret files",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_SecretFile"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    }
                },
                "tags": [
                    "Project Secret Files"
                ],
                "operationId": "listProjectSecretFiles"
            },
            "post": {
                "summary": "Create a project secret file",
                "description": "Adds a secret file at the project level. It is mounted into every application in the project that has project secret files enabled, so use this for config shared across a project rather than repeating it per application. The contents are encrypted at rest and never returned by the API. The response carries a server-assigned `name`; use that name in every other project secret file endpoint.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createProjectSecretFile"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a project secret file",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SecretFile"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Project Secret Files"
                ],
                "operationId": "createProjectSecretFile"
            }
        },
        "/api/v1/projects/{project_id}/secret_files/{name}": {
            "get": {
                "summary": "Get a project secret file",
                "description": "Returns the metadata of one project-level secret file. The file contents are never returned — the `text` field is write-only.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "name",
                        "description": "Secret file name as returned on creation",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a project secret file",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SecretFile"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project or secret file not found"
                    }
                },
                "tags": [
                    "Project Secret Files"
                ],
                "operationId": "getProjectSecretFile"
            },
            "put": {
                "summary": "Update a project secret file",
                "description": "Replaces the mount path, the contents, or both. Omitted fields keep their current value. The change reaches every application inheriting the file on its next deployment.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "name",
                        "description": "Secret file name as returned on creation",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateProjectSecretFile"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a project secret file",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SecretFile"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project or secret file not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Project Secret Files"
                ],
                "operationId": "updateProjectSecretFile"
            },
            "delete": {
                "summary": "Delete a project secret file",
                "description": "Removes the project-level secret file. It is unmounted from every application inheriting it on the next deployment.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "name",
                        "description": "Secret file name as returned on creation",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a project secret file"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project or secret file not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Project Secret Files"
                ],
                "operationId": "deleteProjectSecretFile"
            }
        },
        "/api/v1/projects/{project_id}/resources": {
            "post": {
                "summary": "Assign a resource to a project",
                "description": "Assigns a resource to this project. Once a resource is assigned, only the projects it is assigned to may place workloads on it. Assigning restricts the resource, never the project — a project can always use any unassigned resource. Assigning is refused with 422 while the resource still runs workloads from a project it is not assigned to; send with_hosting_projects=true to assign it to those projects as well and let the call through. That is the only way past the refusal when a blocking project is one you cannot reach, because the error redacts its name.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createProjectResource"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Assign a resource to a project",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project or resource not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Projects"
                ],
                "operationId": "createProjectResource"
            }
        },
        "/api/v1/projects/{project_id}/resources/{resource_id}": {
            "delete": {
                "summary": "Release a resource assignment",
                "description": "Returns the resource to the shared pool. Every workload already running on it stays in place and stays legal, because an unassigned resource accepts every project.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "resource_id",
                        "description": "ID or UUID of the assigned resource",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Release a resource assignment"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project or resource not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Projects"
                ],
                "operationId": "deleteProjectResource"
            }
        },
        "/api/v1/projects/{project_id}/restrictions": {
            "post": {
                "summary": "Grant access to a project",
                "description": "Adds one subject — a workspace member or a workspace role — to the project's access list. A project whose access list is empty is open to the whole workspace, so adding the first entry is what closes the project. Once closed it is reachable only by the listed members, everyone holding a listed role, the workspace owner and holders of the built-in admin role; a custom role never bypasses a restriction, whatever permissions it carries. Supply exactly one of user_email or role_name. Restricting projects is available on organization and enterprise workspaces only; elsewhere the request is refused with 422.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createProjectRestriction"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Grant access to a project",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_ProjectRestriction"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project not found"
                    },
                    "422": {
                        "description": "Plan, subject or validation error"
                    }
                },
                "tags": [
                    "Projects"
                ],
                "operationId": "createProjectRestriction"
            }
        },
        "/api/v1/projects/{project_id}/restrictions/{id}": {
            "delete": {
                "summary": "Revoke access to a project",
                "description": "Removes one entry from the project's access list. Removing the last entry reopens the project to the whole workspace, which is the only way back to the default state.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "project_id",
                        "description": "Project ID or UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Access entry ID, as returned in the project's restrictions list",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int32"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Revoke access to a project"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Project or access entry not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Projects"
                ],
                "operationId": "deleteProjectRestriction"
            }
        },
        "/api/v1/regions": {
            "get": {
                "summary": "List available regions",
                "description": "Returns all available deployment regions where resources can be provisioned.",
                "responses": {
                    "200": {
                        "description": "List available regions",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Region"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                },
                "tags": [
                    "Regions"
                ],
                "operationId": "listRegions"
            }
        },
        "/api/v1/resources": {
            "get": {
                "summary": "List all resources",
                "description": "Returns all compute resources in the workspace. Resources provide CPU, RAM, and disk capacity for applications.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List all resources",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Resources"
                ],
                "operationId": "listResources"
            },
            "post": {
                "summary": "Create a new resource",
                "description": "Provisions a new compute resource with the specified plan and region. May require checkout for paid plans. The free plan needs a saved payment card.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createResource"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a new resource",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Resources"
                ],
                "operationId": "createResource"
            }
        },
        "/api/v1/resources/{uuid}": {
            "get": {
                "summary": "Get resource details",
                "description": "Retrieves detailed information about a compute resource, including its plan, capacity limits, current usage, and available components.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Resource UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get resource details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Resource not found"
                    }
                },
                "tags": [
                    "Resources"
                ],
                "operationId": "getResource"
            },
            "put": {
                "summary": "Update a resource",
                "description": "Upgrades or modifies a compute resource's plan or components. Changes may require payment confirmation. Moving down to the free plan needs a saved payment card.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Resource UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateResource"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a resource",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Resource not found"
                    },
                    "422": {
                        "description": "Update failed"
                    }
                },
                "tags": [
                    "Resources"
                ],
                "operationId": "updateResource"
            },
            "delete": {
                "summary": "Delete a resource",
                "description": "Schedules a compute resource for deletion. All applications and data associated with this resource will be permanently removed.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Resource UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a resource"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Resource not found"
                    },
                    "422": {
                        "description": "Delete failed"
                    }
                },
                "tags": [
                    "Resources"
                ],
                "operationId": "deleteResource"
            }
        },
        "/api/v1/resources/{uuid}/labels": {
            "patch": {
                "summary": "Update resource labels",
                "description": "Updates the user-defined labels for a compute resource. Labels help identify resources (e.g., 'production', 'staging', 'sandbox').",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Resource UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateResourceLabels"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update resource labels",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Resource not found"
                    },
                    "422": {
                        "description": "Validation failed"
                    }
                },
                "tags": [
                    "Resources"
                ],
                "operationId": "updateResourceLabels"
            }
        },
        "/api/v1/services": {
            "get": {
                "summary": "List all services",
                "description": "Returns all standalone services (databases, shared storage) in the workspace that are not attached to a specific application.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List all services",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Service"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "listServices"
            },
            "post": {
                "summary": "Create a new service",
                "description": "Creates a standalone service (database or shared storage) that can be shared across multiple applications in a project. A shared_storage service is sized by disk_size alone: size, cpu_size and ram_size are refused with 422.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createService"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a new service",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Service"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "createService"
            }
        },
        "/api/v1/services/{id}": {
            "get": {
                "summary": "Get service details",
                "description": "Retrieves detailed information about a specific standalone service, including its configuration, resource allocation, and connection details.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get service details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Service"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "getService"
            },
            "put": {
                "summary": "Update a service",
                "description": "Modifies the configuration of a standalone service. You can adjust resource allocation without data loss. A shared_storage service changes only its label and disk_size: size, cpu_size and ram_size are refused with 422.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateService"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a service",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Service"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "updateService"
            },
            "delete": {
                "summary": "Delete a service",
                "description": "Permanently removes a standalone service and all its data. This action cannot be undone - ensure you have backups if needed.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a service"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    },
                    "422": {
                        "description": "Delete failed"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "deleteService"
            }
        },
        "/api/v1/services/{id}/state": {
            "patch": {
                "summary": "Change service state",
                "description": "Schedules a state change for the service (start, stop, or restart). The operation is performed asynchronously.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateServiceState"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Change service state",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "updateServiceState"
            }
        },
        "/api/v1/services/{id}/mount_app": {
            "post": {
                "summary": "Mount an application to a service",
                "description": "Mounts an application to a shared storage service, creating a storage addon on the app linked to this service. A service mounts to a given application once: calling this again for the same pair is refused with 422, because unmount_app matches a single addon by service. To change where an application mounts a volume, unmount it first.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/mountAppToService"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Mount an application to a service",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Service"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service or App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "mountAppToService"
            }
        },
        "/api/v1/services/{id}/unmount_app": {
            "post": {
                "summary": "Unmount an application from a service",
                "description": "Unmounts an application from a shared storage service, removing the storage addon from the app.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/unmountAppFromService"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Unmount an application from a service",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Service"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service or App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "unmountAppFromService"
            }
        },
        "/api/v1/services/{id}/rotate_password": {
            "post": {
                "summary": "Rotate service password",
                "description": "Rotates the password for a standalone service (database, cache, etc.). Only certain service types support password rotation (databases like PostgreSQL, MySQL, and caches like Valkey). The new password will be returned in the response. You must update ENV variables manually after rotation.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Rotate service password",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    },
                    "422": {
                        "description": "Password rotation not supported for this service type"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "rotateServicePassword"
            }
        },
        "/api/v1/services/{id}/backups": {
            "get": {
                "summary": "Get service backups",
                "description": "Retrieves backup information for a PostgreSQL service, including backup list, schedule, and cluster status.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get service backups",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Backup"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    },
                    "422": {
                        "description": "Not a PostgreSQL service"
                    },
                    "503": {
                        "description": "Backup information could not be read from the cluster"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "getServiceBackups"
            }
        },
        "/api/v1/services/{id}/restore_backup": {
            "post": {
                "summary": "Restore service from backup",
                "description": "Initiates a database restore for a PostgreSQL service. Provide either backup_name for a specific backup, target_time for point-in-time recovery, or neither for the latest backup.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/restoreServiceBackup"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Restore service from backup",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "restoreServiceBackup"
            }
        },
        "/api/v1/services/{id}/reset_database": {
            "post": {
                "summary": "Reset service database",
                "description": "Drops all data in a standalone service database while keeping the database user and name. This action cannot be undone, so it requires services:manage.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Reset service database",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "resetServiceDatabase"
            }
        },
        "/api/v1/services/{id}/create_replica": {
            "post": {
                "summary": "Create a read replica of a PostgreSQL service",
                "description": "Creates a new read replica of the specified PostgreSQL service. The replica runs where its primary runs and is billed the same way, on its resource, on Usage Billing or in the workspace pool, with no placement to choose. It shares the primary's credentials and inherits its public access. On Usage Billing it takes size (the primary's when omitted), may first need the monthly minimum's checkout (422 with checkout_url), and a database on free compute cannot have one (422).",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createServiceReplica"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a read replica of a PostgreSQL service",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Service"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "createServiceReplica"
            }
        },
        "/api/v1/services/{id}/promote_replica": {
            "post": {
                "summary": "Promote a service read replica to standalone instance",
                "description": "Promotes a PostgreSQL service read replica to a standalone instance. The replica will no longer receive updates from the primary database. This action cannot be undone.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Promote a service read replica to standalone instance",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "promoteServiceReplica"
            }
        },
        "/api/v1/services/{id}/promote_external": {
            "post": {
                "summary": "Promote a service external replica to standalone instance or cluster",
                "description": "Promotes a PostgreSQL service external replica to a standalone instance or HA cluster. The replica will disconnect from the external source and become an independent database. This action cannot be undone.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Service ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Promote a service external replica to standalone instance or cluster",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Service not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Services"
                ],
                "operationId": "promoteServiceExternalReplica"
            }
        },
        "/api/v1/static": {
            "get": {
                "summary": "List static sites",
                "description": "Returns every static site in the workspace. Static sites have no compute resource, replicas or ports, so they are managed here rather than under /apps.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List static sites",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_StaticSite"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Static Sites"
                ],
                "operationId": "listStaticSites"
            },
            "post": {
                "summary": "Create a static site",
                "description": "Creates a static site served from object storage. There is no compute resource to assign: the name you send is the name the site is served under, with no random suffix, and it must be unique across the platform. The content source is fixed at creation - create another site to use a different one.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createStaticSite"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a static site",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_StaticSite"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Static Sites"
                ],
                "operationId": "createStaticSite"
            }
        },
        "/api/v1/static/{uuid}": {
            "get": {
                "summary": "Get static site details",
                "description": "Retrieves a single static site, including its content source and build configuration.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Static site UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get static site details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_StaticSite"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Static site not found"
                    }
                },
                "tags": [
                    "Static Sites"
                ],
                "operationId": "getStaticSite"
            },
            "put": {
                "summary": "Update a static site",
                "description": "Updates the display name or moves the site to another project. The name a site is served under is fixed, and the content source is changed through /static/{uuid}/deployment.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Static site UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateStaticSite"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a static site",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_StaticSite"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Static site not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Static Sites"
                ],
                "operationId": "updateStaticSite"
            },
            "delete": {
                "summary": "Delete a static site",
                "description": "Permanently deletes the site, its content, its domains and its certificates.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Static site UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a static site",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Static site not found"
                    },
                    "422": {
                        "description": "Deletion failed"
                    }
                },
                "tags": [
                    "Static Sites"
                ],
                "operationId": "deleteStaticSite"
            }
        },
        "/api/v1/static/{uuid}/deployment": {
            "put": {
                "summary": "Update static site build and routing configuration",
                "description": "Updates how the site is built and served. Applied as a patch: fields you omit keep their stored value. The content source cannot be changed - it decides what is provisioned for the site, so switching means creating a new one.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Static site UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateStaticSiteDeployment"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update static site build and routing configuration",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_StaticSite"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Static site not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Static Sites"
                ],
                "operationId": "updateStaticSiteDeployment"
            }
        },
        "/api/v1/static/{uuid}/deployments": {
            "post": {
                "summary": "Deploy a static site",
                "description": "Deploys content to the site. For a 'zip' source, upload the prebuilt site as a zip archive (max 1 GB) - its contents replace the current site. For a 'github' source, omit the archive to rebuild from the configured branch. 'git_push' sites deploy on push to their git remote, and 'sftp' sites when the upload session closes.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Static site UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/deployStaticSite"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Deploy a static site",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Static site not found"
                    },
                    "409": {
                        "description": "A deployment is already in progress"
                    },
                    "422": {
                        "description": "Deployment failed"
                    }
                },
                "tags": [
                    "Static Sites"
                ],
                "operationId": "deployStaticSite"
            },
            "get": {
                "summary": "List deployments",
                "description": "Returns all deployments for the specified application, optionally filtered by status and time period.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "status",
                        "description": "Filter by deployment status (pending, running, completed, failed, cancelling, cancelled)",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "pending",
                                "running",
                                "completed",
                                "failed",
                                "cancelling",
                                "cancelled"
                            ]
                        }
                    },
                    {
                        "in": "query",
                        "name": "period",
                        "description": "Filter by time period: '7days', '30days', '90days', or 'all'",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "7days",
                                "30days",
                                "90days",
                                "all"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List deployments",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Deployment"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Deployments"
                ],
                "operationId": "listAppDeployments"
            }
        },
        "/api/v1/static/{uuid}/files": {
            "get": {
                "summary": "Browse the files of a static site",
                "description": "Lists the deployed content of a site, one directory level at a time. Folders come back as prefixes; pass one as `prefix` to descend into it. Paging is cursor-based: pass the `cursor` from the previous response to fetch the next page. Content is read-only here — deploy through /static/{uuid}/deployments.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Static site UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "prefix",
                        "description": "Folder to list, e.g. 'assets/'. Omit for the site root",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "description": "Maximum entries to return",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int32",
                            "minimum": 1,
                            "maximum": 1000,
                            "default": 100
                        }
                    },
                    {
                        "in": "query",
                        "name": "cursor",
                        "description": "Continuation token from a previous response",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Browse the files of a static site",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_BucketObjectList"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Static site not found"
                    },
                    "422": {
                        "description": "Site storage is not ready"
                    }
                },
                "tags": [
                    "Static Sites"
                ],
                "operationId": "listStaticSiteFiles"
            }
        },
        "/api/v1/static/{uuid}/domains": {
            "get": {
                "summary": "List application domains",
                "description": "Returns all custom domains configured for the specified application. Each domain includes its DNS target for CNAME configuration.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List application domains",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Domain"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "listAppDomains"
            },
            "post": {
                "summary": "Add a custom domain",
                "description": "Configures a custom domain for the application. The response includes verification_token (publish as TXT _migetapp-verify.<domain>) and the empty dns_target placeholder; once verification succeeds (poll GET endpoint or trigger via POST .../verify), dns_target is filled in with the CNAME target you publish on the apex/subdomain itself.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "$ref": "#/components/requestBodies/createAppDomain"
                },
                "responses": {
                    "201": {
                        "description": "Add a custom domain",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Domain"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "App not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "createAppDomain"
            }
        },
        "/api/v1/static/{uuid}/domains/{domain_uuid}": {
            "get": {
                "summary": "Get domain details",
                "description": "Retrieves detailed information about a specific custom domain, including its DNS target for CNAME configuration.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "domain_uuid",
                        "description": "Unique domain identifier (UUID)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get domain details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Domain"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Domain not found"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "getAppDomain"
            },
            "put": {
                "summary": "Update a custom domain",
                "description": "Updates the configuration of an existing custom domain.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "domain_uuid",
                        "description": "Unique domain identifier (UUID)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "$ref": "#/components/requestBodies/updateAppDomain"
                },
                "responses": {
                    "200": {
                        "description": "Update a custom domain",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Domain"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Domain not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "updateAppDomain"
            },
            "delete": {
                "summary": "Remove a custom domain",
                "description": "Removes a custom domain from the application. The domain will no longer route traffic to your application.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "domain_uuid",
                        "description": "Unique domain identifier (UUID)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Remove a custom domain"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Domain not found"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "deleteAppDomain"
            }
        },
        "/api/v1/static/{uuid}/domains/{domain_uuid}/verify": {
            "post": {
                "summary": "Trigger domain verification",
                "description": "Re-runs the DNS verification check for a custom domain. Caller is expected to have already configured the TXT record at _migetapp-verify.<domain> with the value from `verification_token`. The check runs asynchronously (retried at growing intervals for up to 60 minutes); poll the show endpoint to track status. If the domain is already verified, the call is a no-op and returns the current state. If the domain doesn't need verification (e.g. www subdomain whose root is verified), the call returns the current state without scheduling work.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Application UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "domain_uuid",
                        "description": "Unique domain identifier (UUID)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Trigger domain verification",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Domain"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Domain not found"
                    }
                },
                "tags": [
                    "App Domains"
                ],
                "operationId": "verifyAppDomain"
            }
        },
        "/api/v1/static/{uuid}/deployments/{id}/cancel": {
            "post": {
                "summary": "Cancel a static site deployment",
                "description": "Cancels a running build. Only deployments in 'running' state can be cancelled, and only sites built from a 'git_push' or 'github' source have a build to cancel - a 'zip' or 'sftp' deployment is a direct sync with nothing to stop.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Static site UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Deployment UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Cancel a static site deployment",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Static site or deployment not found"
                    },
                    "422": {
                        "description": "Deployment cannot be cancelled"
                    }
                },
                "tags": [
                    "Static Sites"
                ],
                "operationId": "cancelStaticSiteDeployment"
            }
        },
        "/api/v1/static/{uuid}/deployments/{id}/rollback": {
            "post": {
                "summary": "Roll a static site back to a deployment",
                "description": "Rebuilds and republishes the site from the commit this deployment shipped. A static site produces no image, so this is a fresh build of that commit rather than a redeploy of a stored artifact - which means it only works on a 'github' source. A 'git_push' site is rebuilt by pushing, and 'zip' and 'sftp' deployments carry no commit.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Static site UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Deployment UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Roll a static site back to a deployment",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Static site or deployment not found"
                    },
                    "422": {
                        "description": "Deployment cannot be rolled back"
                    }
                },
                "tags": [
                    "Static Sites"
                ],
                "operationId": "rollbackStaticSiteDeployment"
            }
        },
        "/api/v1/stacks": {
            "get": {
                "summary": "List all stacks",
                "description": "Returns all Docker Compose stacks in the current workspace, each with its computed state, assigned resource, and resource allocation.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List all stacks",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Stack"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Stacks"
                ],
                "operationId": "listStacks"
            },
            "post": {
                "summary": "Create a stack",
                "description": "Creates a Docker Compose stack from a Git repository. The compose source is analyzed server-side, required environment variables are resolved from the supplied custom values and/or auto-populated, capacity is validated against the target resource, and the initial build is published. Call POST /stacks/analyze first to discover which required env vars need values.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createStack"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a stack",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Stack"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Detection, missing env vars, capacity, or validation error"
                    }
                },
                "tags": [
                    "Stacks"
                ],
                "operationId": "createStack"
            }
        },
        "/api/v1/stacks/analyze": {
            "post": {
                "summary": "Analyze a compose source",
                "description": "Detects the services, managed add-ons, volumes, and required environment variables from a docker-compose file in a Git repository, without creating a stack. Use the returned manifest to discover which required env vars need values before calling POST /stacks.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/analyzeStack"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Analyze a compose source",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_StackAnalysis"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Detection failed"
                    }
                },
                "tags": [
                    "Stacks"
                ],
                "operationId": "analyzeStack"
            }
        },
        "/api/v1/stacks/{uuid}": {
            "get": {
                "summary": "Get stack details",
                "description": "Retrieves a stack with its computed state, assigned resource, resource allocation, materialized services, and most recent deployment.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Stack UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get stack details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Stack"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Stack not found"
                    }
                },
                "tags": [
                    "Stacks"
                ],
                "operationId": "getStack"
            },
            "put": {
                "summary": "Update a stack",
                "description": "Updates mutable fields on a stack: its display label and the path to the docker-compose file. Returns the updated stack.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Stack UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateStack"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a stack",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Stack"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Stack not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Stacks"
                ],
                "operationId": "updateStack"
            },
            "delete": {
                "summary": "Delete a stack",
                "description": "Permanently deletes a stack and cascades the deletion to all of its underlying apps and services. This action cannot be undone.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Stack UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a stack"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Stack not found"
                    },
                    "422": {
                        "description": "Deletion failed"
                    }
                },
                "tags": [
                    "Stacks"
                ],
                "operationId": "deleteStack"
            }
        },
        "/api/v1/stacks/{uuid}/deploy": {
            "post": {
                "summary": "Deploy a stack",
                "description": "Triggers a redeployment of the stack. The latest commit on the tracked branch is deployed unless a specific commit SHA is provided. The compose manifest is re-analyzed and capacity is re-validated before publishing.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Stack UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/deployStack"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Deploy a stack",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Message"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Stack not found"
                    },
                    "422": {
                        "description": "Deployment failed"
                    }
                },
                "tags": [
                    "Stacks"
                ],
                "operationId": "deployStack"
            }
        },
        "/api/v1/stacks/{uuid}/deployment": {
            "put": {
                "summary": "Update stack deployment configuration",
                "description": "Updates the GitHub deployment configuration of a stack: tracked branch, auto-deploy, the stored Git credential, and the repository.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Stack UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateStackDeployment"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update stack deployment configuration",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Stack"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Stack not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Stacks"
                ],
                "operationId": "updateStackDeployment"
            }
        },
        "/api/v1/stacks/{uuid}/deployments": {
            "get": {
                "summary": "List stack deployments",
                "description": "Returns the deployment history for a stack, most recent first.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Stack UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List stack deployments",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_StackDeployment"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Stack not found"
                    }
                },
                "tags": [
                    "Stack Deployments"
                ],
                "operationId": "listStackDeployments"
            }
        },
        "/api/v1/stacks/{uuid}/deployments/{id}": {
            "get": {
                "summary": "Get stack deployment details",
                "description": "Retrieves a single stack deployment with its state, commit, validation errors, and timestamps.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Stack UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "description": "Deployment UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get stack deployment details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_StackDeployment"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Stack or deployment not found"
                    }
                },
                "tags": [
                    "Stack Deployments"
                ],
                "operationId": "getStackDeployment"
            }
        },
        "/api/v1/users/me": {
            "get": {
                "summary": "Get current user profile",
                "description": "Returns the profile information of the currently authenticated user.",
                "responses": {
                    "200": {
                        "description": "Get current user profile",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_User"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                },
                "tags": [
                    "Users"
                ],
                "operationId": "getCurrentUser"
            }
        },
        "/api/v1/users/me/ssh_keys": {
            "get": {
                "summary": "List SSH keys",
                "description": "Returns all SSH keys registered for the current user. Keys are used for secure Git operations.",
                "responses": {
                    "200": {
                        "description": "List SSH keys",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_SshKey"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                },
                "tags": [
                    "Users - SSH Keys"
                ],
                "operationId": "listSshKeys"
            },
            "post": {
                "summary": "Add an SSH key",
                "description": "Registers a new SSH public key for the current user. The key must be in OpenSSH format.",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createSshKey"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Add an SSH key",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SshKey"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "422": {
                        "description": "Invalid key format"
                    }
                },
                "tags": [
                    "Users - SSH Keys"
                ],
                "operationId": "createSshKey"
            }
        },
        "/api/v1/users/me/ssh_keys/{id}": {
            "get": {
                "summary": "Get SSH key details",
                "description": "Retrieves a specific SSH key by ID.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "description": "SSH key ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get SSH key details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SshKey"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "404": {
                        "description": "SSH key not found"
                    }
                },
                "tags": [
                    "Users - SSH Keys"
                ],
                "operationId": "getSshKey"
            },
            "delete": {
                "summary": "Remove an SSH key",
                "description": "Removes an SSH key from your account. The key will no longer be authorized for Git operations.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "description": "SSH key ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Remove an SSH key"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "404": {
                        "description": "SSH key not found"
                    }
                },
                "tags": [
                    "Users - SSH Keys"
                ],
                "operationId": "deleteSshKey"
            }
        },
        "/api/v1/users/me/credits": {
            "get": {
                "summary": "Get current user credits",
                "description": "Returns the authenticated user's own credits, referral code, and credit operation history. A user collects credits; they pay for nothing until transferred to a workspace with POST /workspace/credits/transfer, and a workspace's credits are read with GET /workspace/credits.",
                "responses": {
                    "200": {
                        "description": "Get current user credits",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Credit"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                },
                "tags": [
                    "Users - Credits"
                ],
                "operationId": "getUserCredits"
            }
        },
        "/api/v1/vpcs": {
            "get": {
                "summary": "List all VPCs",
                "description": "Returns every private network in the workspace. A VPC belongs to one region and cannot span regions.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List all VPCs",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Vpc"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "listVpcs"
            },
            "post": {
                "summary": "Create a VPC",
                "description": "Creates a private network in one region. The range must be RFC1918, /22 or larger, and must not overlap the cluster's own networks. Two workspaces may share a range — VPCs are separate routers — but two VPCs on the same range can never be peered.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createVpc"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a VPC",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Vpc"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "createVpc"
            }
        },
        "/api/v1/vpcs/{uuid}": {
            "get": {
                "summary": "Get a VPC",
                "description": "Returns one private network, including the resolver address VPN clients and external resolvers need.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a VPC",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Vpc"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "getVpc"
            },
            "put": {
                "summary": "Update a VPC",
                "description": "Changes the display label. The name and the address ranges are fixed at creation: the platform derives the whole address plan from them on every action, so changing one would mean rebuilding the network.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateVpc"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a VPC",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Vpc"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "updateVpc"
            },
            "delete": {
                "summary": "Delete a VPC",
                "description": "Removes the VPC, its router and its resolver. Refused while any subnet remains: deleting a VPC out from under a live subnet would strand the logical switch.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a VPC",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Vpc"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    },
                    "422": {
                        "description": "Subnets remain"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "deleteVpc"
            }
        },
        "/api/v1/vpcs/{uuid}/subnets": {
            "get": {
                "summary": "List a VPC's subnets",
                "description": "Returns the ranges carved out of this VPC.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List a VPC's subnets",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_VpcSubnet"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "listVpcSubnets"
            },
            "post": {
                "summary": "Create a subnet",
                "description": "Carves a range out of the VPC. The range must sit inside the VPC's own and must not overlap another subnet.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createVpcSubnet"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a subnet",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpcSubnet"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "createVpcSubnet"
            }
        },
        "/api/v1/vpcs/{uuid}/subnets/{subnet_uuid}": {
            "get": {
                "summary": "Get a VPC subnet",
                "description": "Returns one range carved out of this VPC.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "subnet_uuid",
                        "description": "Subnet UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a VPC subnet",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpcSubnet"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Subnet not found"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "getVpcSubnet"
            },
            "delete": {
                "summary": "Delete a subnet",
                "description": "Removes the subnet from the VPC. Refused while a workload is still attached to it.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "subnet_uuid",
                        "description": "Subnet UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a subnet",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpcSubnet"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Subnet not found"
                    },
                    "422": {
                        "description": "Workloads still attached"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "deleteVpcSubnet"
            }
        },
        "/api/v1/vpcs/{uuid}/attachments": {
            "get": {
                "summary": "List a VPC's attached workloads",
                "description": "Returns the apps, services and addons carrying an interface on this VPC, with the name each answers to inside it.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List a VPC's attached workloads",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_VpcAttachment"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "listVpcAttachments"
            },
            "post": {
                "summary": "Attach a workload to a VPC",
                "description": "Gives a workload an interface on one of the VPC's subnets. The workload restarts: an interface cannot be added to a running pod, so for a database this is a database restart. The workload must run on a resource in the VPC's own region. A workload on free compute (size free) cannot be attached; the request is rejected with 422. An app can ask for a fixed address with static_ip.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createVpcAttachment"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Attach a workload to a VPC",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpcAttachment"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC, subnet or workload not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "createVpcAttachment"
            }
        },
        "/api/v1/vpcs/{uuid}/attachments/{attachment_uuid}": {
            "get": {
                "summary": "Get a VPC attachment",
                "description": "Returns one workload carrying an interface on this VPC, with the subnet it joined and the name it answers to inside the VPC.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "attachment_uuid",
                        "description": "Attachment UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a VPC attachment",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpcAttachment"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Attachment not found"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "getVpcAttachment"
            },
            "delete": {
                "summary": "Detach a workload from a VPC",
                "description": "Removes the workload's interface. The workload restarts, and stops being reachable inside the VPC.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "attachment_uuid",
                        "description": "Attachment UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Detach a workload from a VPC",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpcAttachment"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Attachment not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "VPCs"
                ],
                "operationId": "deleteVpcAttachment"
            }
        },
        "/api/v1/vpcs/{uuid}/vpn_gateways": {
            "get": {
                "summary": "List a VPC's VPN gateways",
                "description": "Returns the terminators enabled on this VPC. A VPC may run one of each kind at a time.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List a VPC's VPN gateways",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_VpnGateway"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "listVpcVpnGateways"
            },
            "post": {
                "summary": "Enable a VPN gateway",
                "description": "Brings up one terminator on the VPC, so a network outside the platform can reach what is attached to it. A VPC runs at most one of each kind; asking for a kind it already has is refused with 422.\n\nWireGuard needs nothing beyond the kind — the platform books the address and the port, and devices are added afterwards with the VPN user endpoints. Cloudflare WARP and Tailscale terminate in the customer's own account, so each needs that account's credentials, and each needs peer routes before the networks behind it are reachable.\n\nIPsec is not enabled here: it comes up with the first site-to-site connection, which is what pays for the public address it holds.\n\nEnabling one bills the workspace $29/mo for the VPN add-on. It is counted per gateway, not per VPC: a VPC running both WireGuard and Tailscale is charged twice, as are two VPCs each running WireGuard. Enterprise has it included.\n",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createVpcVpnGateway"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Enable a VPN gateway",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpnGateway"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "createVpcVpnGateway"
            }
        },
        "/api/v1/vpcs/{uuid}/vpn_gateways/{gateway_uuid}": {
            "get": {
                "summary": "Get a VPC VPN gateway",
                "description": "Returns one terminator enabled on this VPC. Secrets the gateway holds, the Cloudflare client secret and the Tailscale auth key, are never returned.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "gateway_uuid",
                        "description": "Gateway UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a VPC VPN gateway",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpnGateway"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Gateway not found"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "getVpcVpnGateway"
            },
            "delete": {
                "summary": "Disable a VPN gateway",
                "description": "Takes the terminator down and revokes every device registered against it. Refused with 422 while site-to-site connections still terminate on it — remove those first. Disabling a site-to-site gateway is what returns its public IPv4 to the region's pool; removing the last connection stops the charge but does not free the address.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "gateway_uuid",
                        "description": "Gateway UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Disable a VPN gateway",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpnGateway"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Gateway not found"
                    },
                    "422": {
                        "description": "Connections remain, or the gateway cannot be disabled on its own"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "deleteVpcVpnGateway"
            }
        },
        "/api/v1/vpcs/{uuid}/vpn_users/{user_uuid}/config": {
            "get": {
                "summary": "Download a VPN device's configuration",
                "description": "Returns the device's WireGuard configuration file, ready to hand to `wg-quick` or the WireGuard app.\n\n**This works exactly once.** The file is built from a private key the platform never stored, held in a 15-minute vault that this read empties. A second call answers 410 and no endpoint anywhere can rebuild the file — a device that lost its config is deleted and added again.\n\nIt also answers 410 while the device is still `pending`: the address and the server's public key only arrive once the platform has set the device up, and the file cannot be written without them. Poll the device until `status` is `active` before reading this.\n",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "user_uuid",
                        "description": "Device UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Download a VPN device's configuration",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpnUserConfig"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Device not found"
                    },
                    "410": {
                        "description": "Already read, expired, or not registered yet"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "getVpcVpnUserConfig"
            }
        },
        "/api/v1/vpcs/{uuid}/vpn_users": {
            "get": {
                "summary": "List a VPC's VPN devices",
                "description": "Returns the WireGuard peers registered on this VPC, with the address each answers to inside it.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List a VPC's VPN devices",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_VpnUser"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "listVpcVpnUsers"
            },
            "post": {
                "summary": "Add a VPN device",
                "description": "Registers one WireGuard peer against the VPC's WireGuard gateway. Enable that gateway first: without it the request is refused with 422.\n\nThe platform makes the keypair and keeps only the public half — the private key is never written to the database and never appears in an event. It waits 15 minutes for the platform to report the device's address, then expires.\n\nSo the device comes back `pending` with no address, and the configuration it needs is not in this response. Poll the device until `status` is `active`, then read `GET /api/v1/vpcs/{uuid}/vpn_users/{user_uuid}/config` **once** — that read empties the vault, and no endpoint can produce the file again. A device whose config expired unread has to be deleted and added afresh.\n",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createVpcVpnUser"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Add a VPN device",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpnUser"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    },
                    "422": {
                        "description": "No WireGuard gateway, or validation error"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "createVpcVpnUser"
            }
        },
        "/api/v1/vpcs/{uuid}/vpn_users/{user_uuid}": {
            "get": {
                "summary": "Get a VPC VPN device",
                "description": "Returns one WireGuard peer registered on this VPC, with the address it answers to inside it. The private key and configuration are never returned here.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "user_uuid",
                        "description": "Device UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a VPC VPN device",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpnUser"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Device not found"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "getVpcVpnUser"
            },
            "delete": {
                "summary": "Revoke a VPN device",
                "description": "Removes the peer from the gateway and discards any configuration still waiting to be read. The device stops reaching the VPC as soon as the change is applied.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "user_uuid",
                        "description": "Device UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Revoke a VPN device",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpnUser"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Device not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "deleteVpcVpnUser"
            }
        },
        "/api/v1/vpcs/{uuid}/peer_routes/apply": {
            "post": {
                "summary": "Apply the staged peer routes",
                "description": "Sends every route still `pending` to the cluster at once. **This restarts every workload attached to the VPC** — each route change re-annotates the pods and rolls them — so it is the step to announce before taking, and the reason routes are staged rather than applied one by one. Refused with 422 when nothing is staged.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Apply the staged peer routes",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_VpcPeerRoute"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    },
                    "422": {
                        "description": "Nothing staged"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "applyVpcPeerRoutes"
            }
        },
        "/api/v1/vpcs/{uuid}/peer_routes": {
            "get": {
                "summary": "List a VPC's peer routes",
                "description": "Returns the routes staged and applied on this VPC. A route with status `pending` is not in the cluster yet.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List a VPC's peer routes",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_VpcPeerRoute"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "listVpcPeerRoutes"
            },
            "post": {
                "summary": "Stage a peer route",
                "description": "Records that an IPv4 range on the far side of a terminator should be reachable from inside the VPC.\n\n**Staging changes nothing yet.** The route is created with status `pending` and reaches the cluster only when you call the apply endpoint, which restarts every attached workload — so add all the ranges you need first and pay that price once.\n\nEvery gateway kind is accepted, but only Cloudflare WARP and Tailscale normally need a route — WireGuard's client pool and an IPsec connection's remote selectors are derived by the platform from the gateways themselves. A route naming a gateway that is not running is dropped rather than installed, because pointing the router at it would blackhole the traffic instead of letting it take the default path.\n",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createVpcPeerRoute"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Stage a peer route",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpcPeerRoute"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "createVpcPeerRoute"
            }
        },
        "/api/v1/vpcs/{uuid}/peer_routes/{route_uuid}": {
            "get": {
                "summary": "Get a VPC peer route",
                "description": "Returns one route staged or applied on this VPC. A route with status `pending` is not in the cluster yet.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "route_uuid",
                        "description": "Peer route UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a VPC peer route",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpcPeerRoute"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Route not found"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "getVpcPeerRoute"
            },
            "delete": {
                "summary": "Delete a peer route",
                "description": "A route still `pending` exists only in the platform's own records and is removed outright. One already applied is withdrawn from the cluster first, which restarts the attached workloads again — it stays in the listing, still `applied`, until the platform confirms the withdrawal and drops it.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "route_uuid",
                        "description": "Route UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a peer route",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_VpcPeerRoute"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Route not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "deleteVpcPeerRoute"
            }
        },
        "/api/v1/vpcs/{uuid}/site_connections": {
            "get": {
                "summary": "List a VPC's site-to-site connections",
                "description": "Returns the IPsec tunnels terminating on this VPC, each with the public address it holds. The pre-shared keys are never returned.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List a VPC's site-to-site connections",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_SiteConnection"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "listVpcSiteConnections"
            },
            "post": {
                "summary": "Create a site-to-site connection",
                "description": "Brings up an IPsec tunnel between this VPC and a network the customer runs elsewhere — AWS today.\n\n**This spends money and takes a scarce address.** IPsec needs UDP 500 and 4500, which are fixed, so one public IPv4 carries exactly one peer: each connection is sold an address of its own out of the region's pool, at $199/mo for as long as it exists. That is why it takes `network:manage`, and why a region that has run out of addresses refuses with 422 rather than queueing. Confirm the charge with the user before sending it.\n\nThe IPsec gateway is created with the first connection and released with the last, so there is no separate call to enable it.\n\nRead `public_ip` off the response: that is the address to enter on the far side, and the tunnel does not come up until they do.\n",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createVpcSiteConnection"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a site-to-site connection",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SiteConnection"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "VPC not found"
                    },
                    "422": {
                        "description": "No address available, or validation error"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "createVpcSiteConnection"
            }
        },
        "/api/v1/vpcs/{uuid}/site_connections/{connection_uuid}": {
            "get": {
                "summary": "Get a VPC site-to-site connection",
                "description": "Returns one IPsec tunnel terminating on this VPC, with the public address it holds. The pre-shared keys are never returned.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "connection_uuid",
                        "description": "Connection UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a VPC site-to-site connection",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SiteConnection"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Connection not found"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "getVpcSiteConnection"
            },
            "delete": {
                "summary": "Delete a site-to-site connection",
                "description": "Tears the tunnel down and stops the $199/mo charge, which is counted from the connections that exist. The public address is **not** released here: it is held by the IPsec gateway. Disable that gateway once its last connection is gone to return the address to the region's pool.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "VPC UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "connection_uuid",
                        "description": "Connection UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a site-to-site connection",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_SiteConnection"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Connection not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "VPC VPN"
                ],
                "operationId": "deleteVpcSiteConnection"
            }
        },
        "/api/v1/webhooks": {
            "get": {
                "summary": "List webhooks",
                "description": "Returns every outbound webhook configured for the workspace. Signing secrets are not included — they are returned only when the webhook is created.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List webhooks",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Webhook"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Webhooks"
                ],
                "operationId": "listWebhooks"
            },
            "post": {
                "summary": "Create a webhook",
                "description": "Registers an endpoint that receives platform events as signed HTTP POSTs. Requests follow the Standard Webhooks specification: 'webhook-id', 'webhook-timestamp', and 'webhook-signature' headers, where the signature is an HMAC-SHA256 of '{webhook-id}.{webhook-timestamp}.{body}', base64-encoded and prefixed 'v1,'. The response is the only place the signing secret is returned — store it, it cannot be read back.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/createWebhook"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Create a webhook",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WebhookCreated"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Webhooks"
                ],
                "operationId": "createWebhook"
            }
        },
        "/api/v1/webhooks/{uuid}": {
            "get": {
                "summary": "Get a webhook",
                "description": "Returns a single webhook. The signing secret is not included — it is returned only when the webhook is created.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Webhook UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get a webhook",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Webhook"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Webhook not found"
                    }
                },
                "tags": [
                    "Webhooks"
                ],
                "operationId": "getWebhook"
            },
            "put": {
                "summary": "Update a webhook",
                "description": "Updates mutable fields on a webhook. Only the fields you send are changed. The signing secret cannot be changed or read back — delete and recreate the webhook to rotate it.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Webhook UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateWebhook"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Update a webhook",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_Webhook"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Webhook not found"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Webhooks"
                ],
                "operationId": "updateWebhook"
            },
            "delete": {
                "summary": "Delete a webhook",
                "description": "Permanently deletes the webhook. No further events are delivered to its URL.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Webhook UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Delete a webhook"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Webhook not found"
                    }
                },
                "tags": [
                    "Webhooks"
                ],
                "operationId": "deleteWebhook"
            }
        },
        "/api/v1/webhooks/{uuid}/test": {
            "post": {
                "summary": "Send a test event",
                "description": "POSTs a signed `ping` event to the endpoint immediately and returns what happened, so an endpoint can be verified without waiting for a real deployment. The request is signed exactly like a real delivery, so it also exercises your signature verification. Note the payload `type` is `ping`, which is not one of the subscribable event types — a consumer that rejects unknown types will fail the test. Not retried, and recorded in the delivery history. Responds 200 whether or not the endpoint accepted it; read `status`.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Webhook UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Send a test event",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WebhookDelivery"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Webhook not found"
                    }
                },
                "tags": [
                    "Webhooks"
                ],
                "operationId": "testWebhook"
            }
        },
        "/api/v1/webhooks/{uuid}/deliveries": {
            "get": {
                "summary": "List webhook deliveries",
                "description": "Returns the recent delivery history for a webhook, newest first. Only the last 50 events per webhook are kept. One entry per event, updated in place across automatic retries — `attempts` is how many times it has been tried.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Webhook UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List webhook deliveries",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WebhookDelivery"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Webhook not found"
                    }
                },
                "tags": [
                    "Webhooks"
                ],
                "operationId": "listWebhookDeliveries"
            }
        },
        "/api/v1/webhooks/{uuid}/deliveries/{delivery_uuid}/retry": {
            "post": {
                "summary": "Retry a webhook delivery",
                "description": "Queues the stored payload for delivery again. The event id is reused, so a consumer that deduplicates on it treats the replay as the same event. Returns the delivery with status 'pending'; poll the delivery list for the outcome. Fails with 422 when the webhook is disabled.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "uuid",
                        "description": "Webhook UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "delivery_uuid",
                        "description": "Delivery UUID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Retry a webhook delivery",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WebhookDelivery"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "404": {
                        "description": "Delivery not found"
                    },
                    "422": {
                        "description": "Cannot be retried"
                    }
                },
                "tags": [
                    "Webhooks"
                ],
                "operationId": "retryWebhookDelivery"
            }
        },
        "/api/v1/workspace/usage": {
            "get": {
                "summary": "Read this cycle's usage",
                "description": "Returns what the workspace's workloads on Usage Billing have run up this billing cycle, broken down by workload, together with the monthly minimum, the spend limit, the threshold at which usage is charged before the renewal and what was charged at it, and any adjustments made to it. A workspace running nothing on Usage Billing answers with zeroes and no workloads. An enterprise contract has no usage bill and is refused with 422.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Read this cycle's usage",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WorkspaceUsage"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Enterprise contract"
                    }
                },
                "tags": [
                    "Workspace"
                ],
                "operationId": "getWorkspaceUsage"
            }
        },
        "/api/v1/workspace/spend_limit": {
            "put": {
                "summary": "Set the usage spend limit",
                "description": "Caps what the workspace's usage may reach this cycle. At the limit every application, database and service on Usage Billing is stopped, nothing on a resource, and raising it again starts exactly those back up. The limit cannot be set below spend_limit_floor_in_cents: the monthly minimum, or what storage alone costs for a cycle when that is more. Send null to remove it.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateWorkspaceSpendLimit"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Set the usage spend limit",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WorkspaceUsage"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "spend_limit_in_cents is missing"
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Workspace"
                ],
                "operationId": "updateWorkspaceSpendLimit"
            }
        },
        "/api/v1/workspace/pay_per_use": {
            "put": {
                "summary": "Turn Usage Billing on or off",
                "description": "Usage Billing is on by default. Turned off, no application, service, bucket or stack can be created with pay_per_use, and the dashboard stops offering it. It can only be turned off once nothing in the workspace is on Usage Billing, and turning it off turns off the preview environments on Usage Billing, telling each application's admins why. Not available on an enterprise contract.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/updateWorkspacePayPerUse"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Turn Usage Billing on or off",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WorkspaceUsage"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Something still on Usage Billing, or an enterprise contract"
                    }
                },
                "tags": [
                    "Workspace"
                ],
                "operationId": "updateWorkspacePayPerUse"
            }
        },
        "/api/v1/workspace/pay_per_use/start": {
            "post": {
                "summary": "Start Usage Billing",
                "description": "Adds the $5 monthly minimum to the subscription without creating anything, which is what a free-tier application's workers wait for: free compute covers its web alone, and its workers are held at no replicas with an awaiting_checkout issue until the workspace starts Usage Billing. Once it does, each starts at one replica. A workspace with no subscription to add it to is answered with 422 and a checkout_url a person has to complete. Answers the usage, as GET /workspace/usage does, when it is already on Usage Billing or has just started it. Refused with 422 while Usage Billing is turned off, a payment is overdue, or on an enterprise contract.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Start Usage Billing",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WorkspaceUsage"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Checkout required, Usage Billing turned off, a payment overdue, or an enterprise contract"
                    }
                },
                "tags": [
                    "Workspace"
                ],
                "operationId": "startWorkspacePayPerUse"
            }
        },
        "/api/v1/workspace/pay_per_use/sizes": {
            "get": {
                "summary": "List the sizes of a workload without a resource",
                "description": "Returns the CPU and RAM sizes an app, service or add-on on Usage Billing, or in the workspace pool, can take. Send a size's id as size when creating or resizing one; cpu_size and ram_size are refused for such a workload. Prices are what a size costs running all the time, per replica or instance; null on an enterprise contract, which pays for its pool instead. A personal workspace that pays for nothing is also offered the free size, id free, at no charge: any number of apps sharing 750 running hours a month per account, sleeping after 15 minutes without traffic, plus one PostgreSQL service, which sleeps when idle, and one Valkey service per account. The free size of the workload named by workload is listed while the account may take it.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "tier",
                        "description": "'hobby' for shared CPU sizes, 'pro' for dedicated; both when omitted",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "hobby",
                                "pro"
                            ]
                        }
                    },
                    {
                        "in": "query",
                        "name": "workload",
                        "description": "What the free size is listed for: an app, a PostgreSQL service or a Valkey service",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "app",
                                "postgres",
                                "valkey"
                            ],
                            "default": "app"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List the sizes of a workload without a resource",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_PayPerUseSize"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                },
                "tags": [
                    "Workspace"
                ],
                "operationId": "listPayPerUseSizes"
            }
        },
        "/api/v1/workspace/limits": {
            "get": {
                "summary": "List the workspace's limits",
                "description": "Every limit the workspace runs into, with its value, how much of it is in use and whether it can be raised, so a limit can be read before a request is refused with 422 for crossing it. replicas_per_process caps the replicas, or the autoscaling maximum, of one process on Usage Billing or scaling beyond its resource's plan. mounts_per_volume caps how many applications mount one shared storage. databases_per_workspace caps the PostgreSQL, MySQL and Valkey databases, read replicas included, and buckets_per_workspace the buckets. These four follow the workspace plan: Team's are 20 replicas, 10 mounts, 40 databases and 100 buckets, Personal has half, Organization one and a half times and Enterprise twice; a value Lyngbak set for the workspace, on request or not, replaces its plan's and stays when the plan changes. charge_threshold is the unbilled usage at which usage is charged part-way through the cycle; it is not listed on an enterprise contract. The process and volume ceilings cap one workload on Usage Billing or placed in the workspace pool, and cannot be raised. Every member of the workspace may read it.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List the workspace's limits",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_WorkspaceLimit"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Workspace"
                ],
                "operationId": "listWorkspaceLimits"
            }
        },
        "/api/v1/workspace/limits/increase_requests": {
            "post": {
                "summary": "Ask for a limit to be raised",
                "description": "Sends a request to raise an adjustable limit, which Lyngbak reviews. The requester is emailed when it is approved, possibly at a different value, or declined with a reason. requested_value is in the limit's unit and must be above its current value. One request per limit waits for review at a time; another is refused with 422, as is a limit that cannot be raised.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/requestWorkspaceLimitIncrease"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Ask for a limit to be raised",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WorkspaceLimitIncreaseRequest"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Validation error"
                    }
                },
                "tags": [
                    "Workspace"
                ],
                "operationId": "requestWorkspaceLimitIncrease"
            }
        },
        "/api/v1/workspace/credits": {
            "get": {
                "summary": "Get the workspace's credits",
                "description": "The credits the workspace holds, what of them expires next, and the 50 newest operations. A workspace's credits come from members who transfer theirs (POST /workspace/credits/transfer) and from Lyngbak, go on its purchases and renewals, and pay for Usage Billing beyond its monthly minimum before the card does. Credits with an expiry date are spent first; what is left of them on that day expires. Requires workspace:billing.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get the workspace's credits",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WorkspaceCredits"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                },
                "tags": [
                    "Workspace"
                ],
                "operationId": "getWorkspaceCredits"
            }
        },
        "/api/v1/workspace/credits/transfer": {
            "post": {
                "summary": "Transfer your credits to the workspace",
                "description": "Moves the authenticated user's whole credit balance (GET /users/me/credits) into the workspace's credits, for good: a transfer cannot be undone, and the credits stay with the workspace whoever owns it later. Requires workspace:billing, which a workspace API token cannot carry, so it takes a personal token. Refused with 422 when there is nothing to transfer, the workspace is on an enterprise plan, which does not use credits, or it is suspended for review. Answers the workspace's credits.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "X-Workspace-Id",
                        "description": "Workspace ID (if omitted: the workspace pinned to the API token, or the default workspace for a JWT sign-in)",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Transfer your credits to the workspace",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Api_V1_Entities_WorkspaceCredits"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    },
                    "403": {
                        "description": "Forbidden"
                    },
                    "422": {
                        "description": "Nothing to transfer, an enterprise plan, or a workspace suspended for review"
                    }
                },
                "tags": [
                    "Workspace"
                ],
                "operationId": "transferCreditsToWorkspace"
            }
        },
        "/api/v1/workspaces": {
            "get": {
                "summary": "List workspaces",
                "description": "Returns the workspaces the caller can act in, sorted by name: every workspace the user owns or is an active member of, suspended ones included. A workspace-scoped token gets only its own workspace. X-Workspace-Id is ignored.",
                "responses": {
                    "200": {
                        "description": "List workspaces",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Api_V1_Entities_Workspace"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                },
                "tags": [
                    "Workspaces"
                ],
                "operationId": "listWorkspaces"
            }
        }
    },
    "servers": [
        {
            "url": "https://app.lyngbak.com"
        }
    ],
    "components": {
        "requestBodies": {
            "createAppDomain": {
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/createAppDomain"
                        }
                    }
                },
                "required": true
            },
            "updateAppDomain": {
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/updateAppDomain"
                        }
                    }
                },
                "required": true
            }
        },
        "securitySchemes": {
            "bearer": {
                "type": "apiKey",
                "name": "Authorization",
                "in": "header",
                "description": "Bearer token for authentication. Format: 'Bearer {token}'"
            }
        },
        "schemas": {
            "Api_V1_Entities_App": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique application identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "Server-assigned name: the name sent at creation plus a random suffix (my-api-x7k2p). Used in the public URL and the git_push repository path. Use this value verbatim, not the name you sent and not service_name"
                    },
                    "label": {
                        "type": "string",
                        "description": "Display name"
                    },
                    "state": {
                        "type": "string",
                        "description": "Current state. While provisioning: pending, assigned, start_scheduled, started, deploying, cloning, stop_scheduled, restart_scheduled, stopped, blocked. An app that sleeps when idle (free plan, free compute, or auto_sleep) with no recent traffic: sleeping, until the next request wakes it. Once started, the live Kubernetes status: running, failed, or problem (pods failing while replicas are up)"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "Associated project UUID"
                    },
                    "deployment_method": {
                        "type": "string",
                        "description": "Deployment method (git_push, public_git, github, container_registry, parent_image, kamal)"
                    },
                    "deployment_config": {
                        "type": "object",
                        "description": "Deployment configuration (fields vary by deployment method). For container_registry, github and public_git it includes credential_id, the UUID of the stored credential accepted by PUT /apps/{uuid}/deployment, null when none is set"
                    },
                    "builder": {
                        "type": "string",
                        "description": "Build strategy (auto, dockerfile, custom)"
                    },
                    "manage_dns_records": {
                        "type": "boolean",
                        "description": "Auto DNS management enabled"
                    },
                    "maintenance": {
                        "type": "boolean",
                        "description": "Maintenance mode enabled"
                    },
                    "auto_sleep": {
                        "type": "boolean",
                        "description": "Whether the application sleeps when idle: true for free compute, which always sleeps, and for an application on Usage Billing with auto_sleep set by PUT /apps/{uuid}"
                    },
                    "private_access": {
                        "type": "boolean",
                        "description": "Private access only (no public ingress)"
                    },
                    "service_name": {
                        "type": "string",
                        "description": "Unsuffixed name, used only in internal_url. Not valid in public URLs or git remotes — use name there"
                    },
                    "internal_url": {
                        "type": "string",
                        "description": "Internal service URL (host:port) for app-to-app connections"
                    },
                    "public_url": {
                        "type": "string",
                        "description": "Platform-assigned public URL, built from the app name and the region of its compute resource. Not reachable when private_access is true. Custom domains are listed separately under /apps/{uuid}/domains"
                    },
                    "allow_connections": {
                        "type": "boolean",
                        "description": "Allow internal connections"
                    },
                    "basic_auth_enabled": {
                        "type": "boolean",
                        "description": "Whether HTTP Basic Auth is enforced on the ingress (credentials are never returned)"
                    },
                    "basic_auth_username": {
                        "type": "string",
                        "description": "Username for HTTP Basic Auth on the ingress. Null when none is set. The password is never returned"
                    },
                    "quota": {
                        "type": "object",
                        "description": "Raw resource quota row. Use ram_size and cpu_size for the values accepted by POST and PUT /apps"
                    },
                    "ram_size": {
                        "type": "number",
                        "format": "float",
                        "description": "RAM allocation per instance in MiB, the unit POST and PUT /apps accept, rounded to 6 decimal places. Null when the app has no quota"
                    },
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation per instance in cores, the unit POST and PUT /apps accept. Null when the app has no quota"
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "UUID of the assigned compute resource, the value POST /apps accepts as resource_id. Null when none is assigned or billing is not 'resource'"
                    },
                    "vpc_uuid": {
                        "type": "string",
                        "description": "UUID of the VPC the app is attached to. Null when not attached"
                    },
                    "vpc_subnet_uuid": {
                        "type": "string",
                        "description": "UUID of the VPC subnet the app is attached to. Null when not attached"
                    },
                    "project_variables_enabled": {
                        "type": "boolean",
                        "description": "Whether the app also receives its project's environment variables"
                    },
                    "project_secret_files_enabled": {
                        "type": "boolean",
                        "description": "Whether the app also mounts its project's secret files. Set via PUT /apps/{uuid}/secret_files/project_files_enabled"
                    },
                    "health_checks": {
                        "type": "object",
                        "description": "Health check settings, keyed by the params of PUT /apps/{uuid}/health_checks: {liveness,readiness,startup}_probe_enabled (boolean), {liveness,readiness,startup}_probe_path (string), {liveness,readiness,startup}_probe_{initial_delay_seconds,timeout_seconds,period_seconds,failure_threshold} (integer) and {liveness,readiness,startup}_{in_app,email}_failure_notification_enabled (boolean). Values are those stored for the app; a path or number that was never set is null and a flag that was never set is false"
                    },
                    "scaling_profile": {
                        "type": "object",
                        "description": "Scaling settings, keyed by the params of PUT /apps/{uuid}/scaling_profile: replicas (integer, fixed instance count used when auto_scaling_enabled is false), auto_scaling_enabled (boolean), auto_min_replicas and auto_max_replicas (integer), scaling_start_time and scaling_end_time (HH:MM strings, null when no scheduled window is set), cpu_threshold and memory_threshold (integer percent). When the app has no scaling profile it runs one instance: replicas is 1, auto_scaling_enabled is false and the other keys are null"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    },
                    "billing": {
                        "type": "string",
                        "enum": [
                            "resource",
                            "pay_per_use",
                            "workspace_pool"
                        ],
                        "description": "Where it runs: 'resource' on its resource, 'pay_per_use' without a resource paying for what it reserves while it runs, 'workspace_pool' without a resource in an enterprise contract's pool"
                    },
                    "held_at_monthly_budget": {
                        "type": "boolean",
                        "description": "True while an application on Usage Billing runs on one replica because it reached the monthly budget of its scaling profile. A scaling profile that would run more replicas is refused with 422 until the next billing cycle, or until the budget is raised above what it spent, removed, or stop_at_budget_limit_enabled is turned off"
                    },
                    "resource": {
                        "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                    },
                    "miget": {
                        "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                    },
                    "region": {
                        "$ref": "#/components/schemas/Api_V1_Entities_Region"
                    },
                    "addons": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_Addon"
                        },
                        "description": "Attached add-ons"
                    },
                    "cronjobs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_Addon"
                        },
                        "description": "Scheduled cron jobs"
                    },
                    "workers": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_Worker"
                        },
                        "description": "Processes the Procfile runs besides the web (sidekiq, clock). They come from the code and app.json; PUT /api/v1/apps/{uuid}/workers/{name} scales one until the next deploy, and no endpoint adds or resizes one"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "label",
                    "state",
                    "project_id",
                    "deployment_method",
                    "deployment_config",
                    "builder",
                    "manage_dns_records",
                    "maintenance",
                    "auto_sleep",
                    "private_access",
                    "service_name",
                    "internal_url",
                    "public_url",
                    "allow_connections",
                    "basic_auth_enabled",
                    "basic_auth_username",
                    "quota",
                    "ram_size",
                    "cpu_size",
                    "resource_id",
                    "vpc_uuid",
                    "vpc_subnet_uuid",
                    "project_variables_enabled",
                    "project_secret_files_enabled",
                    "health_checks",
                    "scaling_profile",
                    "created_at",
                    "updated_at",
                    "billing",
                    "held_at_monthly_budget",
                    "resource",
                    "miget",
                    "region",
                    "addons",
                    "cronjobs",
                    "workers"
                ],
                "description": "Api_V1_Entities_App model"
            },
            "Api_V1_Entities_Resource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique resource identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "Resource name"
                    },
                    "state": {
                        "type": "string",
                        "description": "Current state"
                    },
                    "labels": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "User-defined labels for identification"
                    },
                    "total_disk_size": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Total disk capacity in bytes"
                    },
                    "total_ram_size": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Total RAM capacity in bytes"
                    },
                    "total_cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Total CPU capacity in cores"
                    },
                    "total_used_disk_size": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Used disk in bytes"
                    },
                    "total_used_ram_size": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Used RAM in bytes"
                    },
                    "total_used_cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Used CPU in cores"
                    },
                    "available_cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Available CPU in cores"
                    },
                    "available_disk_size": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Available disk in bytes"
                    },
                    "available_ram_size": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Available RAM in bytes"
                    },
                    "region_code": {
                        "type": "string",
                        "description": "Code of the region the resource runs in, the value POST /resources accepts as region_code"
                    },
                    "component_quantities": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        },
                        "example": [
                            {
                                "code_name": "1gb-ram",
                                "quantity": 2
                            }
                        ],
                        "description": "Components of the resource grouped by code_name, each {code_name, quantity}, the shape POST and PUT /resources accept as components. Empty when the resource has none. Use this for counts: the components list below renders identical units once"
                    },
                    "assigned": {
                        "type": "boolean",
                        "description": "Whether this resource is assigned to any project at all. When true, only the projects listed in project_ids may deploy on it. When false, nobody has assigned it and any project may."
                    },
                    "project_ids": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "UUIDs of the projects this resource is assigned to, limited to the projects you can access. A resource assigned solely to projects you cannot access is not returned to you at all."
                    },
                    "cron_minutes": {
                        "$ref": "#/components/schemas/Api_V1_Entities_ResourceCronMinutes"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    },
                    "plan": {
                        "$ref": "#/components/schemas/Api_V1_Entities_Plan"
                    },
                    "components": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_Component"
                        },
                        "description": "Additional components. Identical units render once; component_quantities holds the count of each"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "state",
                    "labels",
                    "total_disk_size",
                    "total_ram_size",
                    "total_cpu_size",
                    "total_used_disk_size",
                    "total_used_ram_size",
                    "total_used_cpu_size",
                    "available_cpu_size",
                    "available_disk_size",
                    "available_ram_size",
                    "region_code",
                    "component_quantities",
                    "assigned",
                    "project_ids",
                    "cron_minutes",
                    "created_at",
                    "updated_at",
                    "plan",
                    "components"
                ],
                "description": "Api_V1_Entities_Resource model"
            },
            "Api_V1_Entities_ResourceCronMinutes": {
                "type": "object",
                "properties": {
                    "included": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Cron minutes the resource has each billing cycle, counted at its plan's own size and shared by every cron job on it: the 1000 every paid plan includes, an exempted resource's too, or on an enterprise contract the limit Lyngbak set"
                    },
                    "used": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Minutes used this cycle, at the plan's own size: a run at another size counts by its price a minute against the plan's (GET /api/v1/apps/{uuid}/cronjobs/sizes). Counted from the hours the ledger has closed, so the last hour or so is not in it yet, and up to five minutes late. It can pass included: runs already under way when the minutes ran out finish, and cron jobs set to bill keep running"
                    },
                    "remaining": {
                        "type": "integer",
                        "format": "int32",
                        "description": "included less used, never below 0"
                    }
                },
                "required": [
                    "included",
                    "used",
                    "remaining"
                ]
            },
            "Api_V1_Entities_Plan": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Plan name"
                    },
                    "code_name": {
                        "type": "string",
                        "description": "Plan code identifier"
                    },
                    "description": {
                        "type": "string",
                        "description": "Plan description"
                    },
                    "plan_type": {
                        "type": "string",
                        "description": "Plan category: 'dev' for development/hobby workloads, 'pro' for production workloads"
                    },
                    "ram_size": {
                        "type": "integer",
                        "format": "int64",
                        "description": "RAM allocation in bytes"
                    },
                    "disk_size": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Disk storage in bytes"
                    },
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation in cores"
                    },
                    "unit_price": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Price in cents per billing period"
                    }
                },
                "required": [
                    "name",
                    "code_name",
                    "description",
                    "plan_type",
                    "ram_size",
                    "disk_size",
                    "cpu_size",
                    "unit_price"
                ],
                "description": "Api_V1_Entities_Plan model"
            },
            "Api_V1_Entities_Component": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Component name"
                    },
                    "code_name": {
                        "type": "string",
                        "description": "Component code identifier"
                    },
                    "unit_price": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Price in cents per unit"
                    }
                },
                "required": [
                    "name",
                    "code_name",
                    "unit_price"
                ],
                "description": "Api_V1_Entities_Component model"
            },
            "Api_V1_Entities_Region": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Region ID"
                    },
                    "name": {
                        "type": "string",
                        "description": "Region display name"
                    },
                    "code": {
                        "type": "string",
                        "description": "Region code identifier"
                    }
                },
                "required": [
                    "id",
                    "name",
                    "code"
                ],
                "description": "Api_V1_Entities_Region model"
            },
            "Api_V1_Entities_Addon": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Add-on UUID"
                    },
                    "name": {
                        "type": "string",
                        "description": "Add-on name"
                    },
                    "type": {
                        "type": "string",
                        "description": "Add-on type (postgres, mysql, valkey, storage, cronjob)"
                    },
                    "label": {
                        "type": "string",
                        "description": "Display name"
                    },
                    "state": {
                        "type": "string",
                        "description": "Current state. While provisioning: pending, processing, creating, stopped. Once running, the live Kubernetes status: healthy (postgres/mysql/valkey), bound (storage), or running when the status is unavailable. Unhealthy: degraded, degradated, failing, lost, crashloopbackoff, failed"
                    },
                    "quota": {
                        "type": "object",
                        "description": "Raw resource quota row, with ram_size and disk_size in bytes. Use ram_size, disk_size and cpu_size for the values accepted by POST and PUT /apps/{uuid}/addons"
                    },
                    "ram_size": {
                        "type": "number",
                        "format": "float",
                        "description": "RAM allocation in MiB, the unit POST and PUT /apps/{uuid}/addons accept, rounded to 6 decimal places. Null when the add-on has no quota"
                    },
                    "disk_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Disk allocation in GiB, the unit POST and PUT /apps/{uuid}/addons accept, rounded to 6 decimal places. Null when the add-on has no quota"
                    },
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation in cores, the unit POST and PUT /apps/{uuid}/addons accept. On a free plan, creating a postgres, mysql or valkey add-on stores 0.1 whatever cpu_size was sent; PUT stores the value sent. Null when the add-on has no quota"
                    },
                    "service_id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Numeric ID of the service a storage add-on is mounted from, the value POST /apps/{uuid}/addons accepts as service_id. Null for add-ons not mounted from a service"
                    },
                    "auto_sleep": {
                        "type": "boolean",
                        "description": "The setting PUT takes: on a database of an application, whether it sleeps with the application (true unless set to false); on a service's database, whether it sleeps when idle (false unless set to true)"
                    },
                    "sleeps_when_idle": {
                        "type": "boolean",
                        "description": "Whether the database hibernates when idle: a PostgreSQL database that is not a replica, on free compute or with auto_sleep true, or, on an application, with auto_sleep true and an application that sleeps when idle. A database on an application sleeps only with its application"
                    },
                    "backup_enabled": {
                        "type": "boolean",
                        "description": "Postgres only, null for other types. The effective value the platform applies: false on a free plan whatever was stored, otherwise the stored value, true when never set"
                    },
                    "scheduled_backup": {
                        "type": "string",
                        "description": "Postgres only, null for other types. The effective backup schedule as a 6-field cron expression: the stored schedule, or 0 0 3 * * * when none was set"
                    },
                    "role": {
                        "type": "string",
                        "description": "Postgres only: primary or replica. Null for other types"
                    },
                    "primary_addon_uuid": {
                        "type": "string",
                        "description": "UUID of the primary add-on, for a replica. Null otherwise"
                    },
                    "replicas": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        },
                        "description": "Replicas of a primary Postgres add-on, each with uuid, name, label and state. Null for other add-ons"
                    },
                    "settings": {
                        "type": "object",
                        "description": "Add-on specific settings"
                    },
                    "var": {
                        "type": "object",
                        "description": "Connection environment variables"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    },
                    "connection_details": {
                        "type": "object",
                        "example": {
                            "internal": {
                                "hostname": "my-addon-xxx.internal",
                                "database": "db_name",
                                "port": 5432,
                                "username": "db_user",
                                "password": "db_password",
                                "connection_url": "postgres://db_user:db_password@my-addon-xxx.internal:5432/db_name"
                            },
                            "external": {
                                "external_connection_url": "postgres://db_user:db_password@my-addon-xxx.external:5432/db_name",
                                "psql_command": "PGPASSWORD=db_password psql -h my-addon-xxx.external -U db_user db_name"
                            }
                        },
                        "description": "Connection details for the addon"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "type",
                    "label",
                    "state",
                    "quota",
                    "ram_size",
                    "disk_size",
                    "cpu_size",
                    "service_id",
                    "auto_sleep",
                    "sleeps_when_idle",
                    "backup_enabled",
                    "scheduled_backup",
                    "role",
                    "primary_addon_uuid",
                    "replicas",
                    "settings",
                    "var",
                    "created_at",
                    "updated_at",
                    "connection_details"
                ],
                "description": "Api_V1_Entities_Addon model"
            },
            "Api_V1_Entities_Worker": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "The process's name in the Procfile, lowercased, with anything but letters, digits and dashes turned into a dash (sidekiq, clock). A Procfile's unnamed worker is worker"
                    },
                    "state": {
                        "type": "string",
                        "enum": [
                            "running",
                            "stopped",
                            "failed"
                        ],
                        "description": "running while it runs a replica or more, stopped at zero replicas, failed when the cluster reported it failing"
                    },
                    "replicas": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Replicas the cluster reports it running, or what it was last scaled to until the cluster reports that; the minimum while it autoscales. app.json's formation quantity sets them on every deploy"
                    },
                    "quota": {
                        "type": "object",
                        "description": "Its size, in the same shape and units as the application's quota: its own when app.json's formation gives it a size, the application's otherwise"
                    }
                },
                "required": [
                    "name",
                    "state",
                    "replicas",
                    "quota"
                ],
                "description": "Api_V1_Entities_Worker model"
            },
            "createApp": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name for the application"
                    },
                    "name": {
                        "type": "string",
                        "description": "Name seed (used in URLs and DNS). Must be lowercase, alphanumeric with hyphens. A random suffix is appended, so read `name` back from the response rather than reusing this value."
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the project to create the application in"
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "UUID of the compute resource to assign. The app's region is derived from this resource. Required unless billing is pay_per_use or workspace_pool."
                    },
                    "billing": {
                        "type": "string",
                        "description": "Where it runs: 'resource' (default, on the resource named by resource_id), 'pay_per_use' (without a resource, paying for what it reserves while it runs; not on an enterprise contract) or 'workspace_pool' (without a resource, in an enterprise contract's pool; refused with 422 when the pool has no room)",
                        "enum": [
                            "resource",
                            "pay_per_use",
                            "workspace_pool"
                        ]
                    },
                    "region_code": {
                        "type": "string",
                        "description": "Region to run in when billing is pay_per_use or workspace_pool, e.g. eu-east-1. Defaults to a region the workspace already runs in, or in a workspace with nothing placed yet to the first active region: send it when the region matters."
                    },
                    "tier": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, the CPU class: 'hobby' (shared CPU) or 'pro' (dedicated). Implied by size when one is named. Hobby and Pro workloads run in separate namespaces, so it cannot be changed afterwards.",
                        "enum": [
                            "hobby",
                            "pro"
                        ]
                    },
                    "builder": {
                        "type": "string",
                        "description": "Build strategy: 'auto' for automatic buildpack detection, 'dockerfile' for custom Dockerfile builds, 'custom' for language-specific builder",
                        "enum": [
                            "auto",
                            "dockerfile",
                            "custom"
                        ]
                    },
                    "ram_size": {
                        "type": "number",
                        "format": "float",
                        "description": "RAM allocation in MiB (e.g., 256, 512, 1024). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation in cores (e.g., 0.5, 1.0, 2.0). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "size": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, one of the size codes from GET /api/v1/workspace/pay_per_use/sizes, e.g. hobby-1c-2g. cpu_size and ram_size are refused for such a workload."
                    },
                    "private_access": {
                        "type": "boolean",
                        "description": "Restrict the app to private access only (no public ingress; default false)"
                    },
                    "auto_sleep": {
                        "type": "boolean",
                        "description": "Sleep when idle (default false): true lets the application, its workers included, sleep after a period without traffic and wake on the next request. Usage Billing only; refused on free compute, which always sleeps, and for a private application. Requires apps:operate."
                    },
                    "vpc_uuid": {
                        "type": "string",
                        "description": "UUID of a VPC to join on creation. The VPC's default subnet is used unless vpc_subnet_uuid is given. The VPC must be in the same region as the compute resource. Not available with size free: the request is rejected with 422."
                    },
                    "vpc_subnet_uuid": {
                        "type": "string",
                        "description": "UUID of the subnet to join, when a VPC has more than one. Implies its VPC, so vpc_uuid may be omitted."
                    },
                    "vpc_static_ip": {
                        "type": "boolean",
                        "description": "Give the app a fixed address on the subnet it joins instead of one that changes whenever its pod is replaced. Ignored unless vpc_uuid or vpc_subnet_uuid is given. The app must run a single replica without autoscaling, and deployments then replace the pod instead of rolling it, which means a short downtime on every deploy. The address is returned by the VPC attachments endpoints (address_v4, and address_v6 when the subnet has an IPv6 range). Defaults to false."
                    },
                    "deployment_method": {
                        "type": "string",
                        "description": "Deployment method: 'git_push', 'public_git', 'github', 'container_registry', 'parent_image', or 'kamal'. 'container_registry' requires a paid plan on the chosen resource; on a free plan the request is rejected with 422.",
                        "enum": [
                            "git_push",
                            "parent_image",
                            "container_registry",
                            "github",
                            "public_git",
                            "kamal",
                            "static_site"
                        ]
                    },
                    "deployment_config": {
                        "type": "object",
                        "description": "Deployment configuration (fields depend on deployment_method)",
                        "properties": {
                            "credential_id": {
                                "type": "string",
                                "description": "UUID of stored credentials (for github, public_git, container_registry)"
                            },
                            "image_url": {
                                "type": "string",
                                "description": "Container image reference without scheme or tag, e.g. docker.io/library/nginx (for container_registry)"
                            },
                            "tag": {
                                "type": "string",
                                "description": "Container image tag; defaults to 'latest' (for container_registry)"
                            },
                            "repository": {
                                "type": "string",
                                "description": "GitHub repository in 'owner/repo' format (for github)"
                            },
                            "repository_url": {
                                "type": "string",
                                "description": "Full HTTPS Git repository URL, e.g. https://github.com/owner/repo (for public_git)"
                            },
                            "branch": {
                                "type": "string",
                                "description": "Branch name (for github, public_git)"
                            },
                            "dockerfile_path": {
                                "type": "string",
                                "description": "Path to Dockerfile (for github, public_git, git_push)"
                            },
                            "build_context": {
                                "type": "string",
                                "description": "Docker build context path (for github, public_git, git_push)"
                            },
                            "project_path": {
                                "type": "string",
                                "description": "Subdirectory to build from, for monorepos (for github, public_git)"
                            },
                            "run_command": {
                                "type": "string",
                                "description": "Override the start command (for github, public_git with builder 'auto' or 'custom')"
                            },
                            "language": {
                                "type": "string",
                                "description": "Language to build with; required by builder 'custom' (for github, public_git)"
                            },
                            "build_command": {
                                "type": "string",
                                "description": "Build command; required by builder 'custom' (for github, public_git)"
                            },
                            "pre_deploy_command": {
                                "type": "string",
                                "description": "Command run once before the new release starts, e.g. database migrations (for github, public_git)"
                            },
                            "post_deploy_command": {
                                "type": "string",
                                "description": "Command run once after a successful deploy (for github, public_git)"
                            },
                            "use_dhi": {
                                "type": "boolean",
                                "description": "Build on Docker Hardened Images; ignored when builder is 'dockerfile' (for github, public_git, git_push)"
                            },
                            "auto_deploy_enabled": {
                                "type": "boolean",
                                "description": "Enable auto-deploy on push (for github)"
                            },
                            "auto_deploy_branch": {
                                "type": "string",
                                "description": "Branch for auto-deploy (for github)"
                            },
                            "parent_app_id": {
                                "type": "string",
                                "description": "UUID of parent app (for parent_image)"
                            },
                            "parent_image_auto_sync": {
                                "type": "boolean",
                                "description": "Auto-sync with parent image (for parent_image)"
                            },
                            "ssh_keys": {
                                "type": "array",
                                "description": "SSH public keys for deployment access (for kamal)",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "command": {
                                "type": "array",
                                "description": "Container ENTRYPOINT override (Kubernetes container.command). Only used for container_registry deployments. Leave unset to use the image's baked-in ENTRYPOINT.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "args": {
                                "type": "array",
                                "description": "Container CMD override (Kubernetes container.args). Only used for container_registry deployments. Leave unset to use the image's baked-in CMD.",
                                "items": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "app_vars_attributes": {
                        "type": "array",
                        "description": "Environment variables to set on the app",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "description": "Variable name (SCREAMING_SNAKE_CASE)"
                                },
                                "value": {
                                    "type": "string",
                                    "description": "Variable value"
                                }
                            },
                            "required": [
                                "key",
                                "value"
                            ]
                        }
                    }
                },
                "required": [
                    "label",
                    "name",
                    "project_id",
                    "builder"
                ],
                "description": "Create a new application"
            },
            "updateApp": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name for the application"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the project to move the application to"
                    },
                    "builder": {
                        "type": "string",
                        "description": "Build strategy: 'auto' for automatic buildpack detection, 'dockerfile' for custom Dockerfile builds, 'custom' for language-specific builder",
                        "enum": [
                            "auto",
                            "dockerfile",
                            "custom"
                        ]
                    },
                    "manage_dns_records": {
                        "type": "boolean",
                        "description": "Enable automatic DNS record management for custom domains"
                    },
                    "maintenance": {
                        "type": "boolean",
                        "description": "Enable maintenance mode (shows maintenance page to visitors)"
                    },
                    "private_access": {
                        "type": "boolean",
                        "description": "Restrict the app to private access only (no public ingress)"
                    },
                    "ram_size": {
                        "type": "number",
                        "format": "float",
                        "description": "RAM allocation in MiB (e.g., 256, 512, 1024). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation in cores (e.g., 0.5, 1.0, 2.0). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "size": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, one of the size codes from GET /api/v1/workspace/pay_per_use/sizes, e.g. hobby-1c-2g. cpu_size and ram_size are refused for such a workload."
                    },
                    "auto_sleep": {
                        "type": "boolean",
                        "description": "Sleep when idle: true scales the application, its workers included, to zero after a period without traffic and wakes it on the next request. Its PostgreSQL databases sleep with it unless set to keep running. Usage Billing only; free compute always sleeps, and a private application cannot sleep. Requires apps:operate."
                    }
                },
                "description": "Update application settings"
            },
            "updateAppState": {
                "type": "object",
                "properties": {
                    "state": {
                        "type": "string",
                        "description": "Target state: 'schedule_start' to start, 'schedule_stop' to stop, 'schedule_restart' to restart",
                        "enum": [
                            "schedule_stop",
                            "schedule_start",
                            "schedule_restart"
                        ]
                    }
                },
                "required": [
                    "state"
                ],
                "description": "Change application state"
            },
            "Api_V1_Entities_Message": {
                "type": "object",
                "properties": {
                    "message": {
                        "type": "string",
                        "description": "Response message"
                    }
                },
                "required": [
                    "message"
                ],
                "description": "Api_V1_Entities_Message model"
            },
            "updateAppSecurity": {
                "type": "object",
                "properties": {
                    "allow_connections": {
                        "type": "boolean",
                        "description": "Allow other applications on the same resource to connect to this app over the internal network"
                    },
                    "basic_auth_enabled": {
                        "type": "boolean",
                        "description": "Enable Basic Authentication for the application"
                    },
                    "basic_auth_username": {
                        "type": "string",
                        "description": "Username for Basic Authentication (required when basic_auth_enabled is true)"
                    },
                    "basic_auth_password": {
                        "type": "string",
                        "description": "Password for Basic Authentication (required when basic_auth_enabled is true, leave blank to keep current password)"
                    }
                },
                "description": "Update security settings"
            },
            "cloneApp": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name for the cloned application"
                    },
                    "name": {
                        "type": "string",
                        "description": "Unique service name for the cloned application (used in URLs and DNS)"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the project to create the cloned application in"
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "UUID of the compute resource to assign to the cloned application. Required unless billing is pay_per_use or workspace_pool."
                    },
                    "billing": {
                        "type": "string",
                        "description": "Where it runs: 'resource' (default, on the resource named by resource_id), 'pay_per_use' (without a resource, paying for what it reserves while it runs; not on an enterprise contract) or 'workspace_pool' (without a resource, in an enterprise contract's pool; refused with 422 when the pool has no room)",
                        "enum": [
                            "resource",
                            "pay_per_use",
                            "workspace_pool"
                        ]
                    },
                    "region_code": {
                        "type": "string",
                        "description": "Region to run in when billing is pay_per_use or workspace_pool, e.g. eu-east-1. Defaults to the source application's region."
                    },
                    "tier": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, the CPU class: 'hobby' (shared CPU) or 'pro' (dedicated). Implied by size when one is named. Hobby and Pro workloads run in separate namespaces, so it cannot be changed afterwards. Defaults to the source application's CPU class.",
                        "enum": [
                            "hobby",
                            "pro"
                        ]
                    },
                    "size": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, one of the size codes from GET /api/v1/workspace/pay_per_use/sizes, e.g. hobby-1c-2g. cpu_size and ram_size are refused for such a workload. Defaults to the source application's CPU and RAM."
                    },
                    "use_parent_image": {
                        "type": "boolean",
                        "description": "Use the source application as a parent image (inherits container image)",
                        "default": false
                    },
                    "parent_image_auto_sync": {
                        "type": "boolean",
                        "description": "Automatically deploy when parent application's image is updated",
                        "default": false
                    },
                    "clone_variables": {
                        "type": "boolean",
                        "description": "Copy environment variables from source application",
                        "default": false
                    },
                    "clone_secret_files": {
                        "type": "boolean",
                        "description": "Copy secret files from source application",
                        "default": false
                    },
                    "clone_scaling_settings": {
                        "type": "boolean",
                        "description": "Copy auto-scaling configuration from source application",
                        "default": false
                    },
                    "clone_health_checks": {
                        "type": "boolean",
                        "description": "Copy health check configuration from source application",
                        "default": false
                    },
                    "clone_security": {
                        "type": "boolean",
                        "description": "Copy security settings (allowed connections and basic auth) from source application",
                        "default": false
                    },
                    "addons": {
                        "type": "array",
                        "description": "Add-ons to clone from source application",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "Add-on UUID to clone"
                                },
                                "clone_data": {
                                    "type": "boolean",
                                    "description": "Include add-on data (database contents, files)",
                                    "default": false
                                }
                            },
                            "required": [
                                "uuid",
                                "clone_data"
                            ]
                        }
                    },
                    "cronjobs": {
                        "type": "array",
                        "description": "Array of cron job UUIDs to clone from source application",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "label",
                    "name",
                    "project_id"
                ],
                "description": "Clone an application"
            },
            "deployApp": {
                "type": "object",
                "properties": {
                    "custom_tag": {
                        "type": "string",
                        "description": "Custom image tag to deploy (optional)"
                    },
                    "commit_sha": {
                        "type": "string",
                        "description": "Specific commit SHA to deploy (optional, for Git/GitHub deployments)"
                    },
                    "branch": {
                        "type": "string",
                        "description": "Branch name for deployment (optional, for GitHub deployments)"
                    }
                },
                "description": "Deploy application"
            },
            "updateAppDeployment": {
                "type": "object",
                "properties": {
                    "deployment_method": {
                        "type": "string",
                        "description": "Deployment method: 'git_push', 'public_git', 'github', 'container_registry', 'parent_image', or 'kamal'. 'container_registry' requires a paid plan on the app's resource; on a free plan the request is rejected with 422, including a configuration change on an app already deployed from a registry.",
                        "enum": [
                            "git_push",
                            "parent_image",
                            "container_registry",
                            "github",
                            "public_git",
                            "kamal",
                            "static_site"
                        ]
                    },
                    "deployment_config_attributes": {
                        "type": "object",
                        "description": "Kamal deployment configuration",
                        "properties": {
                            "credential_id": {
                                "type": "string",
                                "description": "UUID of stored GitHub App credentials"
                            },
                            "image_url": {
                                "type": "string",
                                "description": "Container image reference without scheme or tag (e.g., docker.io/library/nginx)"
                            },
                            "tag": {
                                "type": "string",
                                "description": "Container image tag (e.g., latest, v1.0.0)"
                            },
                            "command": {
                                "type": "array",
                                "description": "Container ENTRYPOINT override (Kubernetes container.command). Leave unset to use the image's baked-in ENTRYPOINT.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "args": {
                                "type": "array",
                                "description": "Container CMD override (Kubernetes container.args). Leave unset to use the image's baked-in CMD.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "repository_url": {
                                "type": "string",
                                "description": "Full HTTPS Git repository URL (e.g., https://github.com/owner/repo)"
                            },
                            "branch": {
                                "type": "string",
                                "description": "Branch to deploy from (defaults to 'main')"
                            },
                            "dockerfile_path": {
                                "type": "string",
                                "description": "Path to Dockerfile"
                            },
                            "build_context": {
                                "type": "string",
                                "description": "Docker build context path"
                            },
                            "project_path": {
                                "type": "string",
                                "description": "Subdirectory to build from, for monorepos"
                            },
                            "run_command": {
                                "type": "string",
                                "description": "Override the start command (builder 'auto' or 'custom')"
                            },
                            "language": {
                                "type": "string",
                                "description": "Language to build with; required by builder 'custom'"
                            },
                            "build_command": {
                                "type": "string",
                                "description": "Build command; required by builder 'custom'"
                            },
                            "pre_deploy_command": {
                                "type": "string",
                                "description": "Command run once before the new release starts, e.g. database migrations"
                            },
                            "post_deploy_command": {
                                "type": "string",
                                "description": "Command run once after a successful deploy"
                            },
                            "use_dhi": {
                                "type": "boolean",
                                "description": "Build on Docker Hardened Images; ignored when builder is 'dockerfile'"
                            },
                            "repository": {
                                "type": "string",
                                "description": "GitHub repository in 'owner/repo' format"
                            },
                            "auto_deploy_enabled": {
                                "type": "boolean",
                                "description": "Deploy automatically on push"
                            },
                            "auto_deploy_branch": {
                                "type": "string",
                                "description": "Branch that triggers auto-deploy"
                            },
                            "parent_app_id": {
                                "type": "string",
                                "description": "UUID of parent application for image inheritance"
                            },
                            "parent_image_auto_sync": {
                                "type": "boolean",
                                "description": "Automatically deploy when parent image is updated"
                            },
                            "ssh_keys": {
                                "type": "array",
                                "description": "SSH public keys for Kamal deployment access",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "required": [
                            "credential_id",
                            "image_url",
                            "tag",
                            "repository_url",
                            "repository",
                            "parent_app_id",
                            "parent_image_auto_sync"
                        ]
                    }
                },
                "required": [
                    "deployment_method"
                ],
                "description": "Update application deployment configuration"
            },
            "Api_V1_Entities_ActivityFeed": {
                "type": "object",
                "properties": {
                    "activities": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_Activity"
                        },
                        "description": "Activity entries for the current page"
                    },
                    "pagination": {
                        "$ref": "#/components/schemas/Api_V1_Entities_Pagination"
                    }
                },
                "required": [
                    "activities",
                    "pagination"
                ],
                "description": "Api_V1_Entities_ActivityFeed model"
            },
            "Api_V1_Entities_Activity": {
                "type": "object",
                "properties": {
                    "action": {
                        "type": "string",
                        "description": "Action key (create, update, destroy, or event-specific key)"
                    },
                    "description": {
                        "type": "string",
                        "description": "Human-readable description of the activity"
                    },
                    "resource": {
                        "type": "object",
                        "description": "Resource the activity is about (fields: type, name, uuid)"
                    },
                    "actor": {
                        "type": "object",
                        "description": "User who performed the action (fields: uuid, name, email); null for system actions"
                    },
                    "timestamp": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When the activity occurred (ISO8601)"
                    },
                    "source": {
                        "type": "string",
                        "description": "Origin of the action (api, ui)"
                    }
                },
                "required": [
                    "action",
                    "description",
                    "resource",
                    "actor",
                    "timestamp",
                    "source"
                ]
            },
            "Api_V1_Entities_Pagination": {
                "type": "object",
                "properties": {
                    "page": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Current page number"
                    },
                    "limit": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Number of items per page"
                    },
                    "total": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Total number of items"
                    }
                },
                "required": [
                    "page",
                    "limit",
                    "total"
                ]
            },
            "updateAppScalingProfile": {
                "type": "object",
                "properties": {
                    "replicas": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Fixed number of running instances (ignored when auto-scaling is enabled)"
                    },
                    "auto_scaling_enabled": {
                        "type": "boolean",
                        "description": "Enable automatic horizontal scaling based on resource usage"
                    },
                    "auto_min_replicas": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Minimum number of instances when auto-scaling (at least 1)"
                    },
                    "auto_max_replicas": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Maximum number of instances when auto-scaling"
                    },
                    "scaling_start_time": {
                        "type": "string",
                        "description": "Start time for scheduled scaling window (HH:MM format, 24-hour)"
                    },
                    "scaling_end_time": {
                        "type": "string",
                        "description": "End time for scheduled scaling window (HH:MM format, 24-hour)"
                    },
                    "within_resources": {
                        "type": "boolean",
                        "description": "false scales an application on a resource beyond its plan: the first replica runs on the resource, and every replica past it, up to the workspace's replicas_per_process limit, is billed by usage: for its RAM, sharing the resource's CPU, or on a dedicated-CPU resource for its CPU and RAM, which the resource's CPU is raised by. Only on a paid resource, not on an enterprise contract, not with RWO storage and while Usage Billing is on for the workspace. Turning it off takes apps:manage. true brings every replica back onto the resource and is refused when they do not fit"
                    },
                    "cpu_threshold": {
                        "type": "integer",
                        "format": "int32",
                        "description": "CPU usage percentage that triggers scale-up (1-100)"
                    },
                    "memory_threshold": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Memory usage percentage that triggers scale-up (1-100)"
                    },
                    "period_enabled": {
                        "type": "boolean",
                        "description": "Enable time-based scaling windows"
                    },
                    "max_monthly_budget": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Monthly budget in whole US dollars for this application's own usage in a billing cycle, Usage Billing only; null removes it"
                    },
                    "budget_notification_enabled": {
                        "type": "boolean",
                        "description": "Email the workspace admins at 50% and 75% of the budget and when it is reached, once per cycle"
                    },
                    "stop_at_budget_limit_enabled": {
                        "type": "boolean",
                        "description": "Scale down to one replica at the budget until the next cycle or until the budget is raised"
                    }
                },
                "description": "Update scaling profile"
            },
            "scaleAppWorker": {
                "type": "object",
                "properties": {
                    "replicas": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Fixed number of replicas (ignored when auto-scaling is enabled)"
                    },
                    "auto_scaling_enabled": {
                        "type": "boolean",
                        "description": "Scale the worker between auto_min_replicas and auto_max_replicas on its CPU or memory use"
                    },
                    "auto_min_replicas": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Minimum number of replicas when auto-scaling, at least 1: autoscaling a worker to none is refused with 422"
                    },
                    "auto_max_replicas": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Maximum number of replicas when auto-scaling"
                    },
                    "cpu_threshold": {
                        "type": "integer",
                        "format": "int32",
                        "description": "CPU usage percentage that triggers scale-up (1-100)"
                    },
                    "memory_threshold": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Memory usage percentage that triggers scale-up (1-100)"
                    },
                    "period_enabled": {
                        "type": "boolean",
                        "description": "false clears the daily window"
                    },
                    "scaling_start_time": {
                        "type": "string",
                        "description": "Start of the daily window in which it scales up to auto_max_replicas (HH:MM, 24-hour, UTC)"
                    },
                    "scaling_end_time": {
                        "type": "string",
                        "description": "End of that window (HH:MM, 24-hour, UTC)"
                    }
                },
                "description": "Scale a worker"
            },
            "updateAppHealthChecks": {
                "type": "object",
                "properties": {
                    "liveness_probe_enabled": {
                        "type": "boolean",
                        "description": "Enable liveness probe (restarts container if unhealthy)"
                    },
                    "readiness_probe_enabled": {
                        "type": "boolean",
                        "description": "Enable readiness probe (removes from load balancer if not ready)"
                    },
                    "startup_probe_enabled": {
                        "type": "boolean",
                        "description": "Enable startup probe (delays other probes until app starts)"
                    },
                    "liveness_in_app_failure_notification_enabled": {
                        "type": "boolean",
                        "description": "Send in-app notification on liveness probe failure"
                    },
                    "liveness_email_failure_notification_enabled": {
                        "type": "boolean",
                        "description": "Send email notification on liveness probe failure"
                    },
                    "readiness_in_app_failure_notification_enabled": {
                        "type": "boolean",
                        "description": "Send in-app notification on readiness probe failure"
                    },
                    "readiness_email_failure_notification_enabled": {
                        "type": "boolean",
                        "description": "Send email notification on readiness probe failure"
                    },
                    "startup_in_app_failure_notification_enabled": {
                        "type": "boolean",
                        "description": "Send in-app notification on startup probe failure"
                    },
                    "startup_email_failure_notification_enabled": {
                        "type": "boolean",
                        "description": "Send email notification on startup probe failure"
                    },
                    "project_variables_enabled": {
                        "type": "boolean",
                        "description": "Deprecated here. Whether the application inherits its project's environment variables — set it via PUT /apps/{uuid}/vars/project_variables_enabled instead"
                    },
                    "liveness_probe_path": {
                        "type": "string",
                        "description": "HTTP endpoint path for liveness checks (e.g., /health)"
                    },
                    "readiness_probe_path": {
                        "type": "string",
                        "description": "HTTP endpoint path for readiness checks (e.g., /ready)"
                    },
                    "startup_probe_path": {
                        "type": "string",
                        "description": "HTTP endpoint path for startup checks (e.g., /startup)"
                    },
                    "liveness_probe_initial_delay_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Seconds to wait before first liveness probe"
                    },
                    "liveness_probe_timeout_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Seconds before liveness probe times out"
                    },
                    "liveness_probe_period_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Interval between liveness probes in seconds"
                    },
                    "liveness_probe_failure_threshold": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Consecutive failures before container restart"
                    },
                    "readiness_probe_initial_delay_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Seconds to wait before first readiness probe"
                    },
                    "readiness_probe_timeout_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Seconds before readiness probe times out"
                    },
                    "readiness_probe_period_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Interval between readiness probes in seconds"
                    },
                    "readiness_probe_failure_threshold": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Consecutive failures before removing from load balancer"
                    },
                    "startup_probe_initial_delay_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Seconds to wait before first startup probe"
                    },
                    "startup_probe_timeout_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Seconds before startup probe times out"
                    },
                    "startup_probe_period_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Interval between startup probes in seconds"
                    },
                    "startup_probe_failure_threshold": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Consecutive failures before giving up on startup"
                    }
                },
                "description": "Update health checks"
            },
            "Api_V1_Entities_Domain": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique domain identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "Domain name"
                    },
                    "dns_target": {
                        "type": "string",
                        "description": "DNS CNAME target — populated only after verification succeeds"
                    },
                    "verification_status": {
                        "type": "string",
                        "description": "Verification state: 'pending', 'in_progress', 'verified', or 'failed'"
                    },
                    "verification_token": {
                        "type": "string",
                        "description": "Token to publish as TXT _migetapp-verify.<domain>. Populated only while verification is needed; cleared once verified."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "dns_target",
                    "verification_status",
                    "verification_token",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_Domain model"
            },
            "updateAppDomain": {
                "type": "object",
                "properties": {
                    "domain": {
                        "type": "object",
                        "description": "Domain configuration",
                        "properties": {
                            "name": {
                                "type": "string",
                                "description": "Fully qualified domain name (e.g., app.example.com)"
                            }
                        }
                    }
                },
                "required": [
                    "domain"
                ],
                "description": "Update a custom domain"
            },
            "createAppDomain": {
                "type": "object",
                "properties": {
                    "domain": {
                        "type": "object",
                        "description": "Domain configuration",
                        "properties": {
                            "name": {
                                "type": "string",
                                "description": "Fully qualified domain name (e.g., app.example.com)"
                            }
                        },
                        "required": [
                            "name"
                        ]
                    }
                },
                "required": [
                    "domain"
                ],
                "description": "Add a custom domain"
            },
            "createAppAddon": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string",
                        "description": "Add-on type: 'postgres' (PostgreSQL), 'mysql' (MySQL), 'valkey' (Redis-compatible cache), 'storage' (persistent volume)",
                        "enum": [
                            "postgres",
                            "mysql",
                            "valkey",
                            "storage"
                        ]
                    },
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name for the add-on"
                    },
                    "ram_size": {
                        "type": "number",
                        "format": "float",
                        "description": "RAM allocation in MiB (e.g., 64, 128, 256). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "disk_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Disk storage in GiB (e.g., 1, 5, 10). For storage 0.1 when not sent; under 100 MiB is refused. Refused with service_id, whose volume the mount uses."
                    },
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation in cores (e.g., 0.1, 0.25, 0.5). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "size": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, one of the size codes from GET /api/v1/workspace/pay_per_use/sizes, e.g. hobby-1c-2g. cpu_size and ram_size are refused for such a workload."
                    },
                    "public_access": {
                        "type": "boolean",
                        "description": "Enable public internet access. Accepts true/false or '1'/'0'. For postgres type."
                    },
                    "instances": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Number of database instances (1 for standalone, 3/5/7 for HA cluster). For postgres type.",
                        "enum": [
                            1,
                            3,
                            5,
                            7
                        ]
                    },
                    "auto_sleep": {
                        "type": "boolean",
                        "description": "Sleep when idle, for a postgres add-on: true (the default) sleeps it with its application whenever the application sleeps, false keeps it running. Postgres only."
                    },
                    "creation_mode": {
                        "type": "string",
                        "description": "Creation mode: 'fresh' (new database, default), 'external_replica' (replica of external PostgreSQL, always created with public access). For postgres type.",
                        "enum": [
                            "fresh",
                            "external_replica"
                        ]
                    },
                    "external_host": {
                        "type": "string",
                        "description": "Hostname of the external PostgreSQL source database. Required for external_replica mode."
                    },
                    "external_port": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Port of the external PostgreSQL source database. Required for external_replica mode."
                    },
                    "auth_type": {
                        "type": "string",
                        "description": "Authentication method for external replica: 'password' or 'tls'. Required for external_replica mode.",
                        "enum": [
                            "password",
                            "tls"
                        ]
                    },
                    "replication_username": {
                        "type": "string",
                        "description": "Username for replication connection to external database."
                    },
                    "replication_password": {
                        "type": "string",
                        "description": "Password for replication connection (password auth). Required when auth_type is 'password'."
                    },
                    "ca_crt": {
                        "type": "string",
                        "description": "CA certificate for TLS authentication. Required when auth_type is 'tls'."
                    },
                    "tls_crt": {
                        "type": "string",
                        "description": "TLS client certificate. Required when auth_type is 'tls'."
                    },
                    "tls_key": {
                        "type": "string",
                        "description": "TLS client key. Required when auth_type is 'tls'."
                    },
                    "s3_enabled": {
                        "type": "boolean",
                        "description": "Enable S3 WAL archive fallback. Accepts true/false or '1'/'0'. For external_replica mode."
                    },
                    "s3_endpoint": {
                        "type": "string",
                        "description": "S3 endpoint URL. Required when s3_enabled is true."
                    },
                    "s3_bucket": {
                        "type": "string",
                        "description": "S3 bucket name. Required when s3_enabled is true."
                    },
                    "s3_path": {
                        "type": "string",
                        "description": "S3 path prefix. Required when s3_enabled is true."
                    },
                    "s3_access_key": {
                        "type": "string",
                        "description": "S3 access key. Required when s3_enabled is true."
                    },
                    "s3_secret_key": {
                        "type": "string",
                        "description": "S3 secret key. Required when s3_enabled is true."
                    },
                    "s3_server_name": {
                        "type": "string",
                        "description": "Archive server name from barman-cloud-wal-archive. Required when s3_enabled is true."
                    },
                    "service_id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Associated service ID for shared storage add-ons"
                    },
                    "postgres_version": {
                        "type": "string",
                        "description": "PostgreSQL major version. Required for postgres type.",
                        "enum": [
                            "18",
                            "17",
                            "16",
                            "15",
                            "14",
                            "13"
                        ]
                    },
                    "mysql_version": {
                        "type": "string",
                        "description": "MySQL major version. Required for mysql type.",
                        "enum": [
                            "8.2",
                            "8.0"
                        ]
                    },
                    "valkey_version": {
                        "type": "string",
                        "description": "Valkey version. Required for valkey type.",
                        "enum": [
                            "7",
                            "7.2"
                        ]
                    },
                    "sub_path": {
                        "type": "string",
                        "description": "Subdirectory of the volume to mount instead of its root (relative path, e.g. media/uploads). Shared storage and RWX only; created automatically if missing."
                    },
                    "mount_point": {
                        "type": "string",
                        "description": "Container mount path (e.g., /data). Required for storage type unless service_id is given."
                    },
                    "storage_access": {
                        "type": "string",
                        "description": "Access mode: 'RWO' (single node read-write), 'RWX' (multi-node read-write). Required for storage type unless service_id is given.",
                        "enum": [
                            "RWO",
                            "RWX"
                        ]
                    }
                },
                "required": [
                    "type",
                    "label"
                ],
                "description": "Create a new add-on"
            },
            "updateAppAddon": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name for the add-on"
                    },
                    "ram_size": {
                        "type": "number",
                        "format": "float",
                        "description": "RAM allocation in MiB (e.g., 64, 128, 256). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "disk_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Disk storage in GiB (e.g., 1, 5, 10). It only grows: a size below the current one, or under 100 MiB, is refused. Refused on storage mounted from a shared storage service, which is resized on the service."
                    },
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation in cores (e.g., 0.1, 0.25, 0.5). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "size": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, one of the size codes from GET /api/v1/workspace/pay_per_use/sizes, e.g. hobby-1c-2g. cpu_size and ram_size are refused for such a workload."
                    },
                    "public_access": {
                        "type": "boolean",
                        "description": "Enable public internet access. Accepts true/false or '1'/'0'. For postgres type."
                    },
                    "backup_enabled": {
                        "type": "boolean",
                        "description": "Enable automatic backups. Accepts true/false or '1'/'0'. Applied to the cluster asynchronously: GET backups reports backup_active once it takes effect. For postgres type."
                    },
                    "scheduled_backup": {
                        "type": "string",
                        "description": "Cron expression for backup schedule (6-field: second minute hour day month weekday). For postgres type."
                    },
                    "instances": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Number of database instances (1 for standalone, 3/5/7 for HA cluster). For postgres type.",
                        "enum": [
                            1,
                            3,
                            5,
                            7
                        ]
                    },
                    "auto_sleep": {
                        "type": "boolean",
                        "description": "For a PostgreSQL database that is not a replica, on Usage Billing. A database on an application never sleeps on its own: true (the default) hibernates it whenever its application sleeps and wakes it with it, false keeps it running while the application sleeps."
                    }
                },
                "description": "Update an add-on"
            },
            "updateAppAddonState": {
                "type": "object",
                "properties": {
                    "state": {
                        "type": "string",
                        "description": "Target state: 'process_start' to start, 'process_stop' to stop, 'process_restart' to restart",
                        "enum": [
                            "process_start",
                            "process_stop",
                            "process_restart"
                        ]
                    }
                },
                "required": [
                    "state"
                ],
                "description": "Change add-on state"
            },
            "Api_V1_Entities_Backup": {
                "type": "object",
                "properties": {
                    "backup_enabled": {
                        "type": "boolean",
                        "description": "Whether automatic backups are configured for this database. Reflects an update immediately."
                    },
                    "backup_active": {
                        "type": "boolean",
                        "description": "Whether the cluster is currently set up for backups. Follows backup_enabled asynchronously, so it can differ for a while after an update."
                    },
                    "backups": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        },
                        "description": "List of backup records"
                    },
                    "scheduled_backup": {
                        "type": "object",
                        "description": "Scheduled backup configuration"
                    },
                    "cluster_status": {
                        "type": "object",
                        "description": "Cluster backup status information"
                    }
                },
                "required": [
                    "backup_enabled",
                    "backup_active",
                    "backups",
                    "scheduled_backup",
                    "cluster_status"
                ],
                "description": "Api_V1_Entities_Backup model"
            },
            "restoreAppAddonBackup": {
                "type": "object",
                "properties": {
                    "backup_name": {
                        "type": "string",
                        "description": "Name of a specific backup to restore from"
                    },
                    "target_time": {
                        "type": "string",
                        "description": "ISO 8601 timestamp for point-in-time recovery"
                    },
                    "to_new_cluster": {
                        "type": "boolean",
                        "description": "Restore to a new cluster instead of replacing the current one. Accepts true/false or '1'/'0'."
                    }
                },
                "description": "Restore add-on from backup"
            },
            "createAppAddonReplica": {
                "type": "object",
                "properties": {
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation for the replica (defaults to primary's value). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "ram_size": {
                        "type": "integer",
                        "format": "int32",
                        "description": "RAM allocation in megabytes (defaults to primary's value). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "size": {
                        "type": "string",
                        "description": "For a database on Usage Billing or in the workspace pool, one of the size ids from GET /api/v1/workspace/pay_per_use/sizes (defaults to the primary's size)."
                    }
                },
                "description": "Create a read replica of a PostgreSQL add-on"
            },
            "updateAppProjectVariablesEnabled": {
                "type": "object",
                "properties": {
                    "enabled": {
                        "type": "boolean",
                        "description": "Whether the application inherits its project's environment variables"
                    }
                },
                "required": [
                    "enabled"
                ],
                "description": "Toggle inheritance of project environment variables"
            },
            "Api_V1_Entities_Variable": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Variable ID"
                    },
                    "key": {
                        "type": "string",
                        "description": "Variable name"
                    },
                    "value": {
                        "type": "string",
                        "description": "Variable value"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    }
                },
                "required": [
                    "id",
                    "key",
                    "value",
                    "created_at"
                ],
                "description": "Api_V1_Entities_Variable model"
            },
            "createAppVar": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string",
                        "description": "Variable name (e.g., DATABASE_URL, API_KEY). Use SCREAMING_SNAKE_CASE."
                    },
                    "value": {
                        "type": "string",
                        "description": "Variable value. Sensitive data will be encrypted at rest."
                    }
                },
                "required": [
                    "key",
                    "value"
                ],
                "description": "Create an environment variable"
            },
            "updateAppVar": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string",
                        "description": "Variable name to update"
                    },
                    "value": {
                        "type": "string",
                        "description": "New variable value"
                    },
                    "project_variables_enabled": {
                        "type": "boolean",
                        "description": "Enable inheritance of project-level environment variables"
                    }
                },
                "required": [
                    "key",
                    "value"
                ],
                "description": "Update an environment variable"
            },
            "updateAppProjectSecretFilesEnabled": {
                "type": "object",
                "properties": {
                    "enabled": {
                        "type": "boolean",
                        "description": "Whether the application inherits its project's secret files"
                    }
                },
                "required": [
                    "enabled"
                ],
                "description": "Toggle inheritance of project secret files"
            },
            "Api_V1_Entities_SecretFile": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Server-assigned identifier, unique across the platform. Use it in every other secret file endpoint"
                    },
                    "filename": {
                        "type": "string",
                        "description": "Path the file is mounted at inside the container"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "name",
                    "filename",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_SecretFile model"
            },
            "createAppSecretFile": {
                "type": "object",
                "properties": {
                    "filename": {
                        "type": "string",
                        "description": "Path the file is mounted at inside the container (e.g. /app/config/service-account.json). Must be unique within the application"
                    },
                    "text": {
                        "type": "string",
                        "description": "File contents. Encrypted at rest and never returned by the API"
                    }
                },
                "required": [
                    "filename",
                    "text"
                ],
                "description": "Create a secret file"
            },
            "updateAppSecretFile": {
                "type": "object",
                "properties": {
                    "filename": {
                        "type": "string",
                        "description": "New path the file is mounted at inside the container"
                    },
                    "text": {
                        "type": "string",
                        "description": "New file contents. Encrypted at rest and never returned by the API"
                    }
                },
                "description": "Update a secret file"
            },
            "Api_V1_Entities_PreviewEnvironmentConfig": {
                "type": "object",
                "properties": {
                    "enabled": {
                        "type": "boolean",
                        "description": "Whether preview environments are created for this application"
                    },
                    "resource_mode": {
                        "type": "string",
                        "description": "parent (where the application runs), existing (use resource_id), pay_per_use or workspace_pool (without a resource, in the application's region, at dedicated and size)"
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "UUID of the resource preview environments run on, when resource_mode is existing"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the project preview environments land in. Null means they follow the parent application"
                    },
                    "trigger_mode": {
                        "type": "string",
                        "description": "pull_request or every_branch"
                    },
                    "trigger_filter": {
                        "type": "string",
                        "description": "auto, label, branch_pattern or pr_name_pattern"
                    },
                    "trigger_label": {
                        "type": "string",
                        "description": "Pull request label that triggers creation, when trigger_filter is label"
                    },
                    "branch_pattern": {
                        "type": "string",
                        "description": "Glob matched against the branch name, when trigger_filter is branch_pattern"
                    },
                    "pr_name_pattern": {
                        "type": "string",
                        "description": "Glob matched against the pull request title, when trigger_filter is pr_name_pattern"
                    },
                    "auto_deploy_on_push": {
                        "type": "boolean",
                        "description": "Redeploy the preview environment on every push to its branch"
                    },
                    "cleanup_on_pr_merge": {
                        "type": "boolean",
                        "description": "Destroy the preview environment when the pull request is merged"
                    },
                    "cleanup_on_pr_close": {
                        "type": "boolean",
                        "description": "Destroy the preview environment when the pull request is closed unmerged"
                    },
                    "cleanup_on_branch_delete": {
                        "type": "boolean",
                        "description": "Destroy the preview environment when its branch is deleted"
                    },
                    "cleanup_on_inactivity": {
                        "type": "boolean",
                        "description": "Destroy the preview environment after inactivity_days without a commit"
                    },
                    "inactivity_days": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Days without a commit before cleanup, when cleanup_on_inactivity is on"
                    },
                    "retention_days": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Days a preview environment is kept before it expires"
                    },
                    "retention_mode": {
                        "type": "string",
                        "description": "after_pr_close (count from PR close) or from_creation"
                    },
                    "comment_on_github": {
                        "type": "boolean",
                        "description": "Post the preview environment URL as a pull request comment. Always off in every_branch mode"
                    },
                    "clone_settings": {
                        "type": "object",
                        "description": "What is copied from the parent application. Keys clone_variables, clone_secret_files and clone_security default to true when absent; addons and cronjobs default to copying all"
                    },
                    "tier": {
                        "type": "string",
                        "enum": [
                            "hobby",
                            "pro"
                        ],
                        "description": "The CPU class preview environments that run without a resource take: 'hobby' (shared) or 'pro' (dedicated). Set with tier or size; until then it follows the application's"
                    },
                    "size": {
                        "type": "string",
                        "description": "The size, as GET /api/v1/workspace/pay_per_use/sizes names it, preview environments that run without a resource are created at. Null means the application's size"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "enabled",
                    "resource_mode",
                    "resource_id",
                    "project_id",
                    "trigger_mode",
                    "trigger_filter",
                    "trigger_label",
                    "branch_pattern",
                    "pr_name_pattern",
                    "auto_deploy_on_push",
                    "cleanup_on_pr_merge",
                    "cleanup_on_pr_close",
                    "cleanup_on_branch_delete",
                    "cleanup_on_inactivity",
                    "inactivity_days",
                    "retention_days",
                    "retention_mode",
                    "comment_on_github",
                    "clone_settings",
                    "tier",
                    "size",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_PreviewEnvironmentConfig model"
            },
            "updateAppPreviewEnvironmentConfig": {
                "type": "object",
                "properties": {
                    "enabled": {
                        "type": "boolean",
                        "description": "Create preview environments for this application. Defaults to false"
                    },
                    "resource_mode": {
                        "type": "string",
                        "description": "parent runs them where the application runs: on its resource, or on Usage Billing or in the workspace pool in its region. existing requires resource_id. pay_per_use, or workspace_pool on an enterprise contract, runs the preview environments of an application on a resource without one, in the application's region. Without a resource they run at the CPU class and size set by dedicated and size, the application's until those are set. An application without a resource takes only parent. Defaults to parent",
                        "enum": [
                            "parent",
                            "existing",
                            "pay_per_use",
                            "workspace_pool"
                        ]
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "UUID of the resource preview environments run on. Required when resource_mode is existing"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the project preview environments land in. Omit to follow the parent application"
                    },
                    "trigger_mode": {
                        "type": "string",
                        "description": "pull_request creates one per pull request, every_branch creates one per pushed branch. Defaults to pull_request",
                        "enum": [
                            "pull_request",
                            "every_branch"
                        ]
                    },
                    "trigger_filter": {
                        "type": "string",
                        "description": "Which pull requests qualify: auto (all non-draft), label, branch_pattern or pr_name_pattern. Defaults to auto",
                        "enum": [
                            "auto",
                            "label",
                            "branch_pattern",
                            "pr_name_pattern"
                        ]
                    },
                    "trigger_label": {
                        "type": "string",
                        "description": "Pull request label that triggers creation. Required when trigger_filter is label"
                    },
                    "branch_pattern": {
                        "type": "string",
                        "description": "Glob matched against the branch name, e.g. feature/*. Required when trigger_filter is branch_pattern"
                    },
                    "pr_name_pattern": {
                        "type": "string",
                        "description": "Glob matched against the pull request title, e.g. feat:*. Required when trigger_filter is pr_name_pattern"
                    },
                    "auto_deploy_on_push": {
                        "type": "boolean",
                        "description": "Redeploy on every push to the tracked branch. Defaults to true"
                    },
                    "cleanup_on_pr_merge": {
                        "type": "boolean",
                        "description": "Destroy when the pull request is merged. Defaults to true"
                    },
                    "cleanup_on_pr_close": {
                        "type": "boolean",
                        "description": "Destroy when the pull request is closed unmerged. Defaults to false"
                    },
                    "cleanup_on_branch_delete": {
                        "type": "boolean",
                        "description": "Destroy when the branch is deleted. Defaults to false"
                    },
                    "cleanup_on_inactivity": {
                        "type": "boolean",
                        "description": "Destroy after inactivity_days without a commit. Defaults to false"
                    },
                    "inactivity_days": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Days without a commit before cleanup. Defaults to 14"
                    },
                    "retention_days": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Days a preview environment is kept before it expires. Defaults to 7"
                    },
                    "retention_mode": {
                        "type": "string",
                        "description": "after_pr_close counts from the pull request closing, from_creation counts from creation. Defaults to after_pr_close",
                        "enum": [
                            "after_pr_close",
                            "from_creation"
                        ]
                    },
                    "comment_on_github": {
                        "type": "boolean",
                        "description": "Post the preview environment URL as a pull request comment. Defaults to true, and is forced off in every_branch mode"
                    },
                    "clone_settings": {
                        "type": "object",
                        "description": "What is copied from the parent application. clone_variables, clone_secret_files and clone_security default to true when absent; addons and cronjobs default to copying all"
                    },
                    "tier": {
                        "type": "string",
                        "description": "For preview environments that run without a resource (pay_per_use, workspace_pool, or parent for an application without one): 'hobby' for shared CPU, 'pro' for dedicated. Implied by size when one is named. Until it is set they take the application's CPU class. Cloned add-ons keep the application's sizes and run in the same CPU class as the preview",
                        "enum": [
                            "hobby",
                            "pro"
                        ]
                    },
                    "size": {
                        "type": "string",
                        "description": "For preview environments that run without a resource: a size code from GET /api/v1/workspace/pay_per_use/sizes, e.g. hobby-1c-2g. An empty string goes back to the application's size. A size not offered for the CPU class is refused with 422"
                    }
                },
                "description": "Set the preview environment config"
            },
            "Api_V1_Entities_PreviewEnvironment": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Preview environment ID. Use it in the show, delete and redeploy endpoints"
                    },
                    "status": {
                        "type": "string",
                        "description": "One of creating, active, updating, failed, destroying"
                    },
                    "app_uuid": {
                        "type": "string",
                        "description": "UUID of the cloned application backing this preview environment"
                    },
                    "app_name": {
                        "type": "string",
                        "description": "Name of the cloned application"
                    },
                    "url": {
                        "type": "string",
                        "description": "Public URL of the preview environment"
                    },
                    "pull_request_number": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Pull request number, or null for a branch-based preview environment"
                    },
                    "pull_request_title": {
                        "type": "string",
                        "description": "Pull request title"
                    },
                    "pull_request_author": {
                        "type": "string",
                        "description": "GitHub login of the pull request author"
                    },
                    "pull_request_state": {
                        "type": "string",
                        "description": "open or closed"
                    },
                    "pull_request_url": {
                        "type": "string",
                        "description": "Link to the pull request on GitHub"
                    },
                    "pull_request_merged": {
                        "type": "boolean",
                        "description": "Whether the pull request was merged"
                    },
                    "branch": {
                        "type": "string",
                        "description": "Head branch the preview environment tracks"
                    },
                    "base_branch": {
                        "type": "string",
                        "description": "Base branch of the pull request"
                    },
                    "commit_sha": {
                        "type": "string",
                        "description": "Commit currently deployed"
                    },
                    "deployment_error": {
                        "type": "string",
                        "description": "Why the last deployment failed, when status is failed"
                    },
                    "last_commit_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp of the last commit picked up"
                    },
                    "last_deployed_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp of the last successful deployment"
                    },
                    "closed_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When the pull request was closed"
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When the preview environment is cleaned up automatically"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "id",
                    "status",
                    "app_uuid",
                    "app_name",
                    "url",
                    "pull_request_number",
                    "pull_request_title",
                    "pull_request_author",
                    "pull_request_state",
                    "pull_request_url",
                    "pull_request_merged",
                    "branch",
                    "base_branch",
                    "commit_sha",
                    "deployment_error",
                    "last_commit_at",
                    "last_deployed_at",
                    "closed_at",
                    "expires_at",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_PreviewEnvironment model"
            },
            "Api_V1_Entities_Cronjob": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Cron job UUID"
                    },
                    "name": {
                        "type": "string",
                        "description": "Cron job name"
                    },
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name"
                    },
                    "schedule_type": {
                        "type": "string",
                        "description": "Schedule type (cron, interval)"
                    },
                    "interval_type": {
                        "type": "string",
                        "description": "Interval type (every_10_minutes, hourly, daily)"
                    },
                    "hour": {
                        "type": "string",
                        "description": "Hour component"
                    },
                    "minute": {
                        "type": "string",
                        "description": "Minute component"
                    },
                    "cron_expression": {
                        "type": "string",
                        "description": "Cron expression for custom schedules"
                    },
                    "command": {
                        "type": "string",
                        "description": "Command to execute"
                    },
                    "size": {
                        "type": "string",
                        "description": "The size code each run gets, e.g. hobby-1c-1g; null for a cron job created before sizes, which keeps its CPU and RAM until one is set"
                    },
                    "overage": {
                        "type": "string",
                        "description": "What a run past its resource's cron minutes does: 'pause' until the next renewal, or 'bill', billed by the second. Always 'bill' on Usage Billing or a plan that costs nothing, which include no cron minutes, and 'pause' on an enterprise contract with a cron minute limit; null where its runs are not billed (an enterprise contract without a limit, a resource exempted from billing on a plan that costs nothing, the workspace pool)"
                    },
                    "max_run_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "How long a run may take, in seconds, before it is stopped and ends failed with reason DeadlineExceeded; null for no limit"
                    },
                    "suspended": {
                        "type": "boolean",
                        "description": "Whether the cron job is paused: it starts no run and is not billed. POST .../pause and .../resume change it"
                    },
                    "status": {
                        "type": "string",
                        "description": "Current status (running, stopped)"
                    },
                    "last_job_name": {
                        "type": "string",
                        "description": "Name of the most recent run"
                    },
                    "last_job_status": {
                        "type": "string",
                        "description": "Status of the most recent run (e.g. running, complete, failed)"
                    },
                    "last_job_run_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last execution timestamp"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "label",
                    "schedule_type",
                    "interval_type",
                    "hour",
                    "minute",
                    "cron_expression",
                    "command",
                    "size",
                    "overage",
                    "max_run_seconds",
                    "suspended",
                    "status",
                    "last_job_name",
                    "last_job_status",
                    "last_job_run_at",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_Cronjob model"
            },
            "createAppCronjob": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name for the cron job. The identifier the platform runs it under is generated and returned as `name`."
                    },
                    "command": {
                        "type": "string",
                        "description": "Shell command to execute (e.g., 'rake db:cleanup', 'python script.py')"
                    },
                    "schedule_type": {
                        "type": "string",
                        "description": "Schedule type: 'cron' for custom cron expression, 'interval' for predefined intervals",
                        "enum": [
                            "cron",
                            "interval"
                        ],
                        "default": "interval"
                    },
                    "cron": {
                        "type": "string",
                        "description": "Cron expression (e.g., '0 * * * *' for hourly). Required for cron schedule type."
                    },
                    "interval_type": {
                        "type": "string",
                        "description": "Predefined interval: 'every_10_minutes', 'hourly', or 'daily'. Only for interval schedule type.",
                        "enum": [
                            "every_10_minutes",
                            "hourly",
                            "daily"
                        ]
                    },
                    "daily_time": {
                        "type": "string",
                        "description": "Execution time for daily jobs in HH:MM format (24-hour). Only for daily interval."
                    },
                    "minute": {
                        "type": "string",
                        "description": "Minute component for scheduling (0-59)"
                    },
                    "hour": {
                        "type": "string",
                        "description": "Hour component for scheduling (0-23)"
                    },
                    "size": {
                        "type": "string",
                        "description": "A size code from GET /api/v1/apps/{uuid}/cronjobs/sizes, e.g. hobby-1c-1g: the CPU and RAM each run gets, billed for the time each run takes whether the app is on a resource or on Usage Billing. Sizes follow the app's CPU class; defaults to the smallest with at least the app's RAM, the largest if none has that much."
                    },
                    "max_run_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "How long a run may take, in seconds, from 1 to 86400 (24 hours): a run still going then is stopped and ends failed with reason DeadlineExceeded (GET .../runs). Leave it out or null for no limit."
                    },
                    "overage": {
                        "type": "string",
                        "description": "What the cron job does once its resource's cron minutes for the billing cycle are used up: 'pause' (the default) until the next renewal, which resumes it, or 'bill', each run past them billed by the second at its size's price on Usage Billing. Choosing 'bill' needs apps:manage and starts Usage Billing's $5 monthly minimum when the subscription pays for nothing else (422 with a checkout_url to complete first). Only where the resource has cron minutes (cron_minutes on GET /api/v1/resources/{uuid}) and is not on an enterprise contract; elsewhere it is ignored: on Usage Billing or a plan that costs nothing every run is billed, and a contract's cron jobs pause at its limit.",
                        "enum": [
                            "pause",
                            "bill"
                        ]
                    }
                },
                "required": [
                    "label",
                    "command"
                ],
                "description": "Create a cron job"
            },
            "Api_V1_Entities_CronjobSize": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "The size code, what to send as size, e.g. hobby-1c-1g"
                    },
                    "tier": {
                        "type": "string",
                        "enum": [
                            "hobby",
                            "pro"
                        ],
                        "description": "The CPU class: 'hobby' (shared) or 'pro' (dedicated), the application's"
                    },
                    "cpu": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU cores each run gets"
                    },
                    "ram_mb": {
                        "type": "integer",
                        "format": "int32",
                        "description": "RAM in MiB each run gets"
                    },
                    "cents_per_minute": {
                        "type": "number",
                        "format": "float",
                        "description": "What a minute of a run costs, in cents: the monthly price of the resource plan of this size over 43,200 minutes"
                    }
                },
                "required": [
                    "id",
                    "tier",
                    "cpu",
                    "ram_mb",
                    "cents_per_minute"
                ],
                "description": "Api_V1_Entities_CronjobSize model"
            },
            "updateAppCronjob": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name for the cron job"
                    },
                    "command": {
                        "type": "string",
                        "description": "Shell command to execute"
                    },
                    "size": {
                        "type": "string",
                        "description": "A size code from GET /api/v1/apps/{uuid}/cronjobs/sizes, e.g. hobby-1c-1g: the CPU and RAM each run gets, billed for the time each run takes whether the app is on a resource or on Usage Billing. Sizes follow the app's CPU class. Changing it resizes the runs that follow."
                    },
                    "max_run_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "How long a run may take, in seconds, from 1 to 86400 (24 hours): a run still going then is stopped and ends failed with reason DeadlineExceeded (GET .../runs). null removes the limit; leaving it out keeps the current one."
                    },
                    "overage": {
                        "type": "string",
                        "description": "What the cron job does once its resource's cron minutes for the billing cycle are used up: 'pause' (the default) until the next renewal, which resumes it, or 'bill', each run past them billed by the second at its size's price on Usage Billing. Choosing 'bill' needs apps:manage and starts Usage Billing's $5 monthly minimum when the subscription pays for nothing else (422 with a checkout_url to complete first). Only where the resource has cron minutes (cron_minutes on GET /api/v1/resources/{uuid}) and is not on an enterprise contract; elsewhere it is ignored: on Usage Billing or a plan that costs nothing every run is billed, and a contract's cron jobs pause at its limit.",
                        "enum": [
                            "pause",
                            "bill"
                        ]
                    }
                },
                "description": "Update a cron job"
            },
            "Api_V1_Entities_CronjobRunList": {
                "type": "object",
                "properties": {
                    "runs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_CronjobRun"
                        },
                        "description": "The cron job's runs on this page, newest first"
                    },
                    "pagination": {
                        "$ref": "#/components/schemas/Api_V1_Entities_Pagination"
                    }
                },
                "required": [
                    "runs",
                    "pagination"
                ],
                "description": "Api_V1_Entities_CronjobRunList model"
            },
            "Api_V1_Entities_CronjobRun": {
                "type": "object",
                "properties": {
                    "job_name": {
                        "type": "string",
                        "description": "The Kubernetes Job of the run, unique per cron job"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "running",
                            "succeeded",
                            "failed"
                        ],
                        "description": "running, succeeded or failed"
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When the run started"
                    },
                    "finished_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When it finished; null while running"
                    },
                    "duration_seconds": {
                        "type": "integer",
                        "format": "int32",
                        "description": "From start to finish, in seconds; null while running"
                    },
                    "exit_code": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The container's exit code, when it reported one"
                    },
                    "reason": {
                        "type": "string",
                        "description": "How it ended. For a failed run the Job's reason, DeadlineExceeded (it ran past the cron job's max_run_seconds) or BackoffLimitExceeded, else the container's, such as OOMKilled or Error; a run that succeeded carries the container's, usually Completed"
                    },
                    "message": {
                        "type": "string",
                        "description": "What Kubernetes said with that reason, when it said anything"
                    }
                },
                "required": [
                    "job_name",
                    "status",
                    "started_at",
                    "finished_at",
                    "duration_seconds",
                    "exit_code",
                    "reason",
                    "message"
                ]
            },
            "Api_V1_Entities_Port": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Port ID"
                    },
                    "internal_port": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Internal port number"
                    },
                    "external_port": {
                        "type": "integer",
                        "format": "int32",
                        "description": "External port number (null for private ports)"
                    },
                    "protocol": {
                        "type": "string",
                        "description": "Protocol (tcp or udp)"
                    },
                    "auto_detected": {
                        "type": "boolean",
                        "description": "Whether the port was auto-detected"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    },
                    "public": {
                        "type": "boolean",
                        "description": "Whether the port is publicly exposed"
                    },
                    "public_endpoint": {
                        "type": "string",
                        "description": "Public endpoint (hostname:port) for public ports"
                    },
                    "endpoint_id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Endpoint ID"
                    },
                    "endpoint_hostname": {
                        "type": "string",
                        "description": "Endpoint hostname"
                    },
                    "endpoint_ipv4_primary": {
                        "type": "string",
                        "description": "Primary IPv4 address"
                    },
                    "endpoint_ipv4_secondary": {
                        "type": "string",
                        "description": "Secondary IPv4 address"
                    },
                    "endpoint_ipv6_primary": {
                        "type": "string",
                        "description": "Primary IPv6 address"
                    },
                    "endpoint_ipv6_secondary": {
                        "type": "string",
                        "description": "Secondary IPv6 address"
                    }
                },
                "required": [
                    "id",
                    "internal_port",
                    "external_port",
                    "protocol",
                    "auto_detected",
                    "created_at",
                    "updated_at",
                    "public",
                    "public_endpoint"
                ],
                "description": "Api_V1_Entities_Port model"
            },
            "createAppPort": {
                "type": "object",
                "properties": {
                    "internal_port": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Internal port number (1-65535)"
                    },
                    "protocol": {
                        "type": "string",
                        "description": "Protocol (tcp or udp)",
                        "enum": [
                            "tcp",
                            "udp"
                        ]
                    },
                    "public": {
                        "type": "boolean",
                        "description": "Expose the port publicly",
                        "default": false
                    }
                },
                "required": [
                    "internal_port",
                    "protocol"
                ],
                "description": "Create a port"
            },
            "Api_V1_Entities_Deployment": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique deployment identifier"
                    },
                    "state": {
                        "type": "string",
                        "description": "Current deployment state (pending, running, completed, failed, cancelling, cancelled)"
                    },
                    "commit_sha": {
                        "type": "string",
                        "description": "Commit SHA this deployment shipped (null for non-git deployment methods)"
                    },
                    "commit_message": {
                        "type": "string",
                        "description": "Commit message for the deployed commit (null for non-git deployment methods)"
                    },
                    "branch": {
                        "type": "string",
                        "description": "Branch this deployment shipped from (null for non-git deployment methods)"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    },
                    "logs_stored_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when logs were stored (null if not yet stored)"
                    }
                },
                "required": [
                    "uuid",
                    "state",
                    "commit_sha",
                    "commit_message",
                    "branch",
                    "created_at",
                    "updated_at",
                    "logs_stored_at"
                ],
                "description": "Api_V1_Entities_Deployment model"
            },
            "signIn": {
                "type": "object",
                "properties": {
                    "email": {
                        "type": "string",
                        "description": "User's email address"
                    },
                    "password": {
                        "type": "string",
                        "description": "User's password"
                    }
                },
                "required": [
                    "email",
                    "password"
                ],
                "description": "Authenticate user"
            },
            "Api_V1_Entities_AuthTokens": {
                "type": "object",
                "properties": {
                    "access_token": {
                        "type": "string",
                        "description": "JWT access token (30 min expiry)"
                    },
                    "refresh_token": {
                        "type": "string",
                        "description": "JWT refresh token (7 days expiry)"
                    }
                },
                "required": [
                    "access_token",
                    "refresh_token"
                ],
                "description": "Api_V1_Entities_AuthTokens model"
            },
            "refreshToken": {
                "type": "object",
                "properties": {
                    "refresh_token": {
                        "type": "string",
                        "description": "Valid refresh token obtained from sign in"
                    }
                },
                "required": [
                    "refresh_token"
                ],
                "description": "Refresh access token"
            },
            "Api_V1_Entities_AccessToken": {
                "type": "object",
                "properties": {
                    "access_token": {
                        "type": "string",
                        "description": "New JWT access token"
                    }
                },
                "required": [
                    "access_token"
                ],
                "description": "Api_V1_Entities_AccessToken model"
            },
            "Api_V1_Entities_Bucket": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique bucket identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "Bucket name (used in S3 operations)"
                    },
                    "label": {
                        "type": "string",
                        "description": "Display label"
                    },
                    "state": {
                        "type": "string",
                        "description": "Current state (pending, active, failed, blocked)"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the assigned project, or null when the bucket is unassigned"
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "UUID of the resource the bucket belongs to, the value POST /buckets accepts as resource_id; null unless billing is 'resource'"
                    },
                    "visibility": {
                        "type": "string",
                        "description": "Access visibility (public_access, private_access)"
                    },
                    "s3_endpoint": {
                        "type": "string",
                        "description": "S3 endpoint URL"
                    },
                    "s3_access_key": {
                        "type": "string",
                        "description": "S3 access key (use for S3-compatible client auth)"
                    },
                    "s3_secret_key": {
                        "type": "string",
                        "description": "S3 secret key (use for S3-compatible client auth)"
                    },
                    "public_endpoint": {
                        "type": "string",
                        "description": "Public HTTPS endpoint (only for public buckets)"
                    },
                    "region_code": {
                        "type": "string",
                        "description": "Region code where bucket is located"
                    },
                    "usage_bytes": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Current storage usage in bytes"
                    },
                    "quota_bytes": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Storage quota in bytes"
                    },
                    "usage_percentage": {
                        "type": "number",
                        "format": "float",
                        "description": "Storage usage percentage"
                    },
                    "object_count": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Total number of objects in bucket"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    },
                    "policy": {
                        "type": "string",
                        "description": "S3-compatible bucket policy (JSON string)"
                    },
                    "acl": {
                        "type": "string",
                        "description": "S3-compatible access control list (XML string)"
                    },
                    "billing": {
                        "type": "string",
                        "enum": [
                            "resource",
                            "pay_per_use",
                            "workspace_pool"
                        ],
                        "description": "Where it runs: 'resource' on its resource, 'pay_per_use' without a resource paying for what it reserves while it runs, 'workspace_pool' without a resource in an enterprise contract's pool"
                    },
                    "resource": {
                        "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                    },
                    "miget": {
                        "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "label",
                    "state",
                    "project_id",
                    "resource_id",
                    "visibility",
                    "s3_endpoint",
                    "s3_access_key",
                    "s3_secret_key",
                    "region_code",
                    "usage_bytes",
                    "quota_bytes",
                    "usage_percentage",
                    "object_count",
                    "created_at",
                    "updated_at",
                    "billing",
                    "resource",
                    "miget"
                ],
                "description": "Api_V1_Entities_Bucket model"
            },
            "createBucket": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Bucket label (display name)"
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "UUID of the compute resource to attach the bucket to"
                    },
                    "miget_id": {
                        "type": "string",
                        "description": "DEPRECATED: use resource_id instead"
                    },
                    "billing": {
                        "type": "string",
                        "description": "Where it runs: 'resource' (default, on the resource named by resource_id), 'pay_per_use' (without a resource, paying for what it reserves while it runs; not on an enterprise contract) or 'workspace_pool' (without a resource, in an enterprise contract's pool; refused with 422 when the pool has no room)",
                        "enum": [
                            "resource",
                            "pay_per_use",
                            "workspace_pool"
                        ]
                    },
                    "region_code": {
                        "type": "string",
                        "description": "Region to keep the bucket in when billing is pay_per_use or workspace_pool, e.g. eu-east-1. Defaults to a region the workspace already runs in, or in a workspace with nothing placed yet to the first active region: send it when the region matters."
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the project to assign the bucket to. Omit to leave the bucket unassigned; it is never inferred."
                    },
                    "visibility": {
                        "type": "string",
                        "description": "Bucket visibility: 'public_access' or 'private_access'",
                        "enum": [
                            "private_access",
                            "public_access"
                        ],
                        "default": "private_access"
                    },
                    "disk_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Disk allocation in GiB. A bucket on Usage Billing is charged for the data it holds, measured every hour; this is the most it may hold",
                        "default": 0.1
                    }
                },
                "required": [
                    "label"
                ],
                "description": "Create a new bucket"
            },
            "updateBucket": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Bucket label (display name)"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the project to assign the bucket to. Pass null to clear the assignment."
                    },
                    "visibility": {
                        "type": "string",
                        "description": "Bucket visibility: 'public_access' or 'private_access'",
                        "enum": [
                            "private_access",
                            "public_access"
                        ]
                    },
                    "disk_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Disk allocation in GiB. A bucket on Usage Billing is charged for the data it holds, measured every hour; this is the most it may hold"
                    }
                },
                "description": "Update bucket"
            },
            "updateBucketPolicy": {
                "type": "object",
                "properties": {
                    "policy": {
                        "type": "string",
                        "description": "S3-compatible bucket policy as JSON string"
                    }
                },
                "required": [
                    "policy"
                ],
                "description": "Update bucket policy"
            },
            "updateBucketAcl": {
                "type": "object",
                "properties": {
                    "acl": {
                        "type": "string",
                        "description": "S3-compatible ACL as XML string"
                    }
                },
                "required": [
                    "acl"
                ],
                "description": "Update bucket ACL"
            },
            "Api_V1_Entities_BucketObjectList": {
                "type": "object",
                "properties": {
                    "objects": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "description": "Object key (full path)"
                                },
                                "name": {
                                    "type": "string",
                                    "description": "Object name (file or folder name)"
                                },
                                "is_folder": {
                                    "type": "boolean",
                                    "description": "Whether this is a folder"
                                },
                                "size": {
                                    "type": "integer",
                                    "format": "int32",
                                    "description": "Object size in bytes (0 for folders)"
                                },
                                "last_modified": {
                                    "type": "string",
                                    "format": "date-time",
                                    "description": "Last modification timestamp"
                                },
                                "etag": {
                                    "type": "string",
                                    "description": "ETag for the object"
                                },
                                "content_type": {
                                    "type": "string",
                                    "description": "MIME content type"
                                }
                            },
                            "required": [
                                "key",
                                "name",
                                "is_folder",
                                "size",
                                "content_type"
                            ]
                        },
                        "description": "List of bucket objects (files and folders)"
                    },
                    "current_path": {
                        "type": "string",
                        "description": "Current folder path being viewed"
                    },
                    "has_more": {
                        "type": "boolean",
                        "description": "Whether there are more objects to fetch"
                    },
                    "next_cursor": {
                        "type": "string",
                        "description": "Pagination cursor for next page"
                    }
                },
                "required": [
                    "objects",
                    "current_path",
                    "has_more"
                ],
                "description": "Api_V1_Entities_BucketObjectList model"
            },
            "generateUploadUrl": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string",
                        "description": "Object key (file path)"
                    },
                    "size": {
                        "type": "integer",
                        "format": "int32",
                        "description": "File size in bytes"
                    },
                    "content_type": {
                        "type": "string",
                        "description": "File content type",
                        "default": "application/octet-stream"
                    }
                },
                "required": [
                    "key",
                    "size"
                ],
                "description": "Generate upload URL"
            },
            "Api_V1_Entities_PresignedUrl": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "description": "Presigned URL"
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Expiration timestamp (absent for public bucket URLs)"
                    }
                },
                "required": [
                    "url",
                    "expires_at"
                ],
                "description": "Api_V1_Entities_PresignedUrl model"
            },
            "generateDownloadUrl": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string",
                        "description": "Object key (file path)"
                    }
                },
                "required": [
                    "key"
                ],
                "description": "Generate download URL"
            },
            "createBucketFolder": {
                "type": "object",
                "properties": {
                    "folder_path": {
                        "type": "string",
                        "description": "Folder path (should end with /)"
                    }
                },
                "required": [
                    "folder_path"
                ],
                "description": "Create folder"
            },
            "renameBucketObject": {
                "type": "object",
                "properties": {
                    "new_key": {
                        "type": "string",
                        "description": "New object key (file path)"
                    }
                },
                "required": [
                    "new_key"
                ],
                "description": "Rename object"
            },
            "Api_V1_Entities_ContainerRegistryCredential": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique credential identifier — pass this as deployment_config.credential_id when creating an app"
                    },
                    "name": {
                        "type": "string",
                        "description": "Display name (unique per workspace)"
                    },
                    "registry": {
                        "type": "string",
                        "description": "Registry provider: 'docker_hub', 'github', 'gitlab', 'aws_ecr', 'azure', 'digitalocean', 'quay', or 'generic'"
                    },
                    "username": {
                        "type": "string",
                        "description": "Registry username"
                    },
                    "registry_hostname": {
                        "type": "string",
                        "description": "Registry hostname (required for 'generic', 'aws_ecr', 'azure'; optional for others)"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "registry",
                    "username",
                    "registry_hostname",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_ContainerRegistryCredential model"
            },
            "createContainerRegistryCredential": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Display name (must be unique within the workspace)"
                    },
                    "registry": {
                        "type": "string",
                        "description": "Registry provider",
                        "enum": [
                            "docker_hub",
                            "github",
                            "gitlab",
                            "aws_ecr",
                            "azure",
                            "digitalocean",
                            "quay",
                            "generic"
                        ]
                    },
                    "username": {
                        "type": "string",
                        "description": "Registry username"
                    },
                    "token": {
                        "type": "string",
                        "description": "Registry password or access token"
                    },
                    "registry_hostname": {
                        "type": "string",
                        "description": "Registry hostname URL (required for 'generic', 'aws_ecr', and 'azure'; optional otherwise)"
                    },
                    "skip_validation": {
                        "type": "boolean",
                        "description": "Skip live credential validation (non-production environments only)"
                    }
                },
                "required": [
                    "name",
                    "registry",
                    "username",
                    "token"
                ],
                "description": "Create a container registry credential"
            },
            "updateContainerRegistryCredential": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Display name (must be unique within the workspace)"
                    },
                    "registry": {
                        "type": "string",
                        "description": "Registry provider",
                        "enum": [
                            "docker_hub",
                            "github",
                            "gitlab",
                            "aws_ecr",
                            "azure",
                            "digitalocean",
                            "quay",
                            "generic"
                        ]
                    },
                    "username": {
                        "type": "string",
                        "description": "Registry username"
                    },
                    "token": {
                        "type": "string",
                        "description": "New password/token to rotate the stored secret"
                    },
                    "registry_hostname": {
                        "type": "string",
                        "description": "Registry hostname URL"
                    },
                    "skip_validation": {
                        "type": "boolean",
                        "description": "Skip live credential validation (non-production environments only)"
                    }
                },
                "description": "Update a container registry credential"
            },
            "Api_V1_Entities_GitCredential": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique credential identifier — pass this as credential_id when creating a stack or a github-sourced app"
                    },
                    "name": {
                        "type": "string",
                        "description": "Display name (unique per workspace)"
                    },
                    "provider": {
                        "type": "string",
                        "description": "Git provider: 'github', 'gitlab', or 'bitbucket'"
                    },
                    "installation_id": {
                        "type": "string",
                        "description": "GitHub App installation id (present for GitHub App credentials)"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "provider",
                    "installation_id",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_GitCredential model"
            },
            "Api_V1_Entities_Issue": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Issue ID"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "out_of_capacity",
                            "awaiting_checkout",
                            "crash_loop",
                            "out_of_memory",
                            "cronjob_failed"
                        ],
                        "description": "Why it stopped: out_of_capacity (its resource had no room left for it), crash_loop (it kept crashing and the platform stopped it), out_of_memory (it ran out of memory after every restart and the platform stopped it), awaiting_checkout (a worker of a free-tier application, which free compute does not cover, held until the workspace starts Usage Billing: POST /workspace/pay_per_use/start), cronjob_failed (the last run of a cron job failed; it keeps its schedule)"
                    },
                    "reason": {
                        "type": "string",
                        "description": "The kind in the panel's words"
                    },
                    "open": {
                        "type": "boolean",
                        "description": "True until it is resolved: when the application, worker or add-on runs again, or a cron job's next run succeeds"
                    },
                    "subject": {
                        "type": "object",
                        "description": "What stopped: type (app, worker, addon, service, cronjob), uuid (the application's for a worker), name (the worker's for a worker) and label; a cron job's also app_uuid"
                    },
                    "details": {
                        "type": "object",
                        "description": "What the platform recorded: requested and allowed replicas when there was no room; restarts after a crash, and for an add-on also exit_code and the last lines of its log; for a cron job the failed run's job_name, reason (DeadlineExceeded, BackoffLimitExceeded, OOMKilled, Error), exit_code, message and finished_at"
                    },
                    "opened_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When it stopped"
                    },
                    "resolved_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When it ran again; null while open"
                    }
                },
                "required": [
                    "id",
                    "kind",
                    "reason",
                    "open",
                    "subject",
                    "details",
                    "opened_at",
                    "resolved_at"
                ],
                "description": "Api_V1_Entities_Issue model"
            },
            "Api_V1_Entities_Project": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Project UUID"
                    },
                    "name": {
                        "type": "string",
                        "description": "Project name"
                    },
                    "description": {
                        "type": "string",
                        "description": "Project description"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    },
                    "resources": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                        },
                        "description": "Resources assigned to this project. Empty means the project uses the shared pool."
                    },
                    "restrictions": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_ProjectRestriction"
                        },
                        "description": "Who may reach this project. Empty means the project is open to the whole workspace; any entry closes it to everyone but the listed members and roles, the workspace owner and holders of the built-in admin role. A custom role never bypasses a restriction, whatever permissions it carries."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "created_at",
                    "updated_at",
                    "resources",
                    "restrictions"
                ],
                "description": "Api_V1_Entities_Project model"
            },
            "Api_V1_Entities_ProjectRestriction": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Access entry ID. Pass it to DELETE /projects/{project_id}/restrictions/{id} to remove the entry."
                    },
                    "subject_type": {
                        "type": "string",
                        "description": "Who the entry grants access to: \"user\" for a single workspace member, \"role\" for everyone holding a workspace role."
                    },
                    "user_uuid": {
                        "type": "string",
                        "description": "UUID of the granted member, null on role entries. Email addresses are not returned here; they are only accepted when creating an entry."
                    },
                    "role_name": {
                        "type": "string",
                        "description": "Name of the granted workspace role, null on member entries."
                    }
                },
                "required": [
                    "id",
                    "subject_type",
                    "user_uuid",
                    "role_name"
                ],
                "description": "Api_V1_Entities_ProjectRestriction model"
            },
            "createProject": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Project name (must be unique within the workspace)"
                    },
                    "description": {
                        "type": "string",
                        "description": "Brief description of the project's purpose"
                    }
                },
                "required": [
                    "name"
                ],
                "description": "Create a new project"
            },
            "updateProject": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "New project name"
                    },
                    "description": {
                        "type": "string",
                        "description": "New project description"
                    }
                },
                "description": "Update a project"
            },
            "createProjectVar": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string",
                        "description": "Variable name (e.g., DATABASE_URL, API_KEY). Use SCREAMING_SNAKE_CASE."
                    },
                    "value": {
                        "type": "string",
                        "description": "Variable value. Sensitive data will be encrypted at rest."
                    }
                },
                "required": [
                    "key",
                    "value"
                ],
                "description": "Create a project environment variable"
            },
            "updateProjectVar": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string",
                        "description": "Variable name to update"
                    },
                    "value": {
                        "type": "string",
                        "description": "New variable value"
                    }
                },
                "required": [
                    "key",
                    "value"
                ],
                "description": "Update a project environment variable"
            },
            "createProjectSecretFile": {
                "type": "object",
                "properties": {
                    "filename": {
                        "type": "string",
                        "description": "Path the file is mounted at inside the container (e.g. /app/config/service-account.json). Must be unique within the project"
                    },
                    "text": {
                        "type": "string",
                        "description": "File contents. Encrypted at rest and never returned by the API"
                    }
                },
                "required": [
                    "filename",
                    "text"
                ],
                "description": "Create a project secret file"
            },
            "updateProjectSecretFile": {
                "type": "object",
                "properties": {
                    "filename": {
                        "type": "string",
                        "description": "New path the file is mounted at inside the container"
                    },
                    "text": {
                        "type": "string",
                        "description": "New file contents. Encrypted at rest and never returned by the API"
                    }
                },
                "description": "Update a project secret file"
            },
            "createProjectResource": {
                "type": "object",
                "properties": {
                    "resource_id": {
                        "type": "string",
                        "description": "ID or UUID of the resource to assign"
                    },
                    "with_hosting_projects": {
                        "type": "boolean",
                        "description": "Assign the resource to every project already running workloads on it too, instead of refusing. Only ever widens access.",
                        "default": false
                    }
                },
                "required": [
                    "resource_id"
                ],
                "description": "Assign a resource to a project"
            },
            "createProjectRestriction": {
                "type": "object",
                "properties": {
                    "user_email": {
                        "type": "string",
                        "description": "Email address of the workspace member to grant access to"
                    },
                    "role_name": {
                        "type": "string",
                        "description": "Name of the workspace role to grant access to; everyone holding that role reaches the project"
                    }
                },
                "description": "Grant access to a project"
            },
            "createResource": {
                "type": "object",
                "properties": {
                    "plan_type": {
                        "type": "string",
                        "description": "Ignored — the plan is resolved from plan_code_name alone. Kept for backward compatibility"
                    },
                    "plan_code_name": {
                        "type": "string",
                        "description": "Plan identifier, a code_name returned by GET /api/v1/plans (e.g., 'hobby-1c-1g', 'pro-1c-2g'). The names plans had before (e.g., 'miget_hobby_1', 'miget_pro_1') are still accepted."
                    },
                    "region_code": {
                        "type": "string",
                        "description": "Deployment region code (e.g., 'eu-central-1', 'us-east-1')"
                    },
                    "components": {
                        "type": "array",
                        "description": "Additional resource components to add",
                        "items": {
                            "type": "object",
                            "properties": {
                                "code_name": {
                                    "type": "string",
                                    "description": "Component code name (e.g., 'extra_ram', 'extra_cpu', 'extra_disk')"
                                },
                                "quantity": {
                                    "type": "integer",
                                    "format": "int32",
                                    "description": "Number of component units to add"
                                }
                            },
                            "required": [
                                "code_name",
                                "quantity"
                            ]
                        }
                    }
                },
                "required": [
                    "plan_code_name",
                    "region_code"
                ],
                "description": "Create a new resource"
            },
            "updateResource": {
                "type": "object",
                "properties": {
                    "plan_type": {
                        "type": "string",
                        "description": "New plan category: 'dev' for development, 'pro' for production"
                    },
                    "plan_code_name": {
                        "type": "string",
                        "description": "New plan identifier, a code_name returned by GET /api/v1/plans. The names plans had before (e.g., 'miget_hobby_1') are still accepted."
                    },
                    "components": {
                        "type": "array",
                        "description": "Updated resource components",
                        "items": {
                            "type": "object",
                            "properties": {
                                "code_name": {
                                    "type": "string",
                                    "description": "Component code name"
                                },
                                "quantity": {
                                    "type": "integer",
                                    "format": "int32",
                                    "description": "Total number of component units (not increment)"
                                }
                            },
                            "required": [
                                "code_name",
                                "quantity"
                            ]
                        }
                    }
                },
                "description": "Update a resource"
            },
            "updateResourceLabels": {
                "type": "object",
                "properties": {
                    "labels": {
                        "type": "array",
                        "description": "Labels for the resource",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "labels"
                ],
                "description": "Update resource labels"
            },
            "Api_V1_Entities_Service": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Service UUID"
                    },
                    "name": {
                        "type": "string",
                        "description": "Service name"
                    },
                    "label": {
                        "type": "string",
                        "description": "Display name"
                    },
                    "service_type": {
                        "type": "string",
                        "description": "Service type (postgres, mysql, valkey, shared_storage)"
                    },
                    "state": {
                        "type": "string",
                        "description": "Current state. While provisioning: pending, processing, creating, stopped. Once running, the live Kubernetes status: healthy (postgres/mysql/valkey), bound (storage), or running when the status is unavailable. Unhealthy: degraded, degradated, failing, lost, crashloopbackoff, failed"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "Associated project UUID"
                    },
                    "billing": {
                        "type": "string",
                        "enum": [
                            "resource",
                            "pay_per_use",
                            "workspace_pool"
                        ],
                        "description": "Where it runs: 'resource' on its resource, 'pay_per_use' without a resource paying for what it reserves while it runs, 'workspace_pool' without a resource in an enterprise contract's pool"
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "Assigned resource UUID, the value POST /services accepts as resource_id; null unless billing is 'resource'"
                    },
                    "miget_id": {
                        "type": "string",
                        "description": "DEPRECATED: use resource_id instead"
                    },
                    "ram_size": {
                        "type": "number",
                        "format": "float",
                        "description": "RAM allocation in MiB, the unit POST and PUT /services accept, rounded to 6 decimal places. Read from the service add-on's quota. Null when the service has no add-on"
                    },
                    "disk_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Disk allocation in GiB, the unit POST and PUT /services accept, rounded to 6 decimal places. Read from the service add-on's quota. Null when the service has no add-on"
                    },
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation in cores, the unit POST and PUT /services accept. Read from the service add-on's quota. On a free plan, creating a postgres service stores 0.1 whatever cpu_size was sent; PUT stores the value sent. Null when the service has no add-on"
                    },
                    "public_access": {
                        "type": "boolean",
                        "description": "Whether public internet access is enabled, as stored on the add-on and accepted by POST and PUT /services. Null for service types without the setting (shared_storage) or when the service has no add-on"
                    },
                    "instances": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Number of database instances (1 for standalone, 3, 5 or 7 for an HA cluster). Postgres only, null for other service types"
                    },
                    "postgres_version": {
                        "type": "string",
                        "description": "PostgreSQL major version, as accepted by POST /services. Null for other service types"
                    },
                    "mount_point": {
                        "type": "string",
                        "description": "Container mount path of the shared volume. shared_storage only, null for other service types"
                    },
                    "mounts": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        },
                        "example": [
                            {
                                "app_id": "0190f2c4-0000-7000-8000-000000000000",
                                "addon_uuid": "0190f2c4-0000-7000-8000-000000000001",
                                "mount_point": "/data",
                                "sub_path": "media/uploads",
                                "label": "Storage #1 for shared-storage-service"
                            }
                        ],
                        "description": "Applications mounting this shared storage service, one entry per mount created by POST /services/{id}/mount_app, limited to apps in projects you can access. Empty for other service types"
                    },
                    "auto_sleep": {
                        "type": "boolean",
                        "description": "Whether the database hibernates when idle: a postgres service that is not a replica, on free compute or with auto_sleep set by PUT /services"
                    },
                    "backup_enabled": {
                        "type": "boolean",
                        "description": "Postgres only, null for other service types or when the service has no add-on. The effective value the platform applies, as accepted by PUT /services: false on a free plan whatever was stored, otherwise the stored value, true when never set"
                    },
                    "scheduled_backup": {
                        "type": "string",
                        "description": "Postgres only, null for other service types or when the service has no add-on. The effective backup schedule as a 6-field cron expression, as accepted by PUT /services: the stored schedule, or 0 0 3 * * * when none was set"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    },
                    "connection_details": {
                        "type": "object",
                        "example": {
                            "internal": {
                                "hostname": "my-service-xxx.internal",
                                "database": "db_name",
                                "port": 5432,
                                "username": "db_user",
                                "password": "db_password",
                                "connection_url": "postgres://db_user:db_password@my-service-xxx.internal:5432/db_name"
                            },
                            "external": {
                                "external_connection_url": "postgres://db_user:db_password@my-service-xxx.external:5432/db_name",
                                "psql_command": "PGPASSWORD=db_password psql -h my-service-xxx.external -U db_user db_name"
                            }
                        },
                        "description": "Connection details for the service"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "label",
                    "service_type",
                    "state",
                    "project_id",
                    "billing",
                    "resource_id",
                    "miget_id",
                    "ram_size",
                    "disk_size",
                    "cpu_size",
                    "public_access",
                    "instances",
                    "postgres_version",
                    "mount_point",
                    "mounts",
                    "auto_sleep",
                    "backup_enabled",
                    "scheduled_backup",
                    "created_at",
                    "updated_at",
                    "connection_details"
                ],
                "description": "Api_V1_Entities_Service model"
            },
            "createService": {
                "type": "object",
                "properties": {
                    "service_type": {
                        "type": "string",
                        "description": "Service type: 'postgres' (PostgreSQL database), 'mysql' (MySQL database), 'valkey' (Valkey cache), 'shared_storage' (shared persistent volume)",
                        "enum": [
                            "postgres",
                            "mysql",
                            "valkey",
                            "shared_storage"
                        ]
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the project to create the service in"
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "UUID of the compute resource to provision the service on"
                    },
                    "miget_id": {
                        "type": "string",
                        "description": "DEPRECATED: use resource_id instead"
                    },
                    "billing": {
                        "type": "string",
                        "description": "Where it runs: 'resource' (default, on the resource named by resource_id), 'pay_per_use' (without a resource, paying for what it reserves while it runs; not on an enterprise contract) or 'workspace_pool' (without a resource, in an enterprise contract's pool; refused with 422 when the pool has no room)",
                        "enum": [
                            "resource",
                            "pay_per_use",
                            "workspace_pool"
                        ]
                    },
                    "region_code": {
                        "type": "string",
                        "description": "Region to run in when billing is pay_per_use or workspace_pool, e.g. eu-east-1. Defaults to a region the workspace already runs in, or in a workspace with nothing placed yet to the first active region: send it when the region matters."
                    },
                    "tier": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, the CPU class: 'hobby' (shared CPU) or 'pro' (dedicated). Implied by size when one is named. Hobby and Pro workloads run in separate namespaces, so it cannot be changed afterwards. Ignored for shared_storage, which uses no CPU.",
                        "enum": [
                            "hobby",
                            "pro"
                        ]
                    },
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name for the service"
                    },
                    "ram_size": {
                        "type": "number",
                        "format": "float",
                        "description": "RAM allocation in MiB (e.g., 64, 128, 256). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "disk_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Disk storage in GiB (e.g., 1, 5, 10). For shared_storage 0.1 when not sent; under 100 MiB is refused."
                    },
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation in cores (e.g., 0.1, 0.25, 0.5). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "size": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, one of the size codes from GET /api/v1/workspace/pay_per_use/sizes, e.g. hobby-1c-2g. cpu_size and ram_size are refused for such a workload."
                    },
                    "public_access": {
                        "type": "boolean",
                        "description": "Enable public internet access. Accepts true/false or '1'/'0'. For postgres, mysql and valkey types. A mysql or valkey service is reached on a random TCP port of the region's TCP endpoint, given in external_connection_url."
                    },
                    "environment_variables": {
                        "type": "boolean",
                        "description": "Automatically inject connection environment variables into parent application"
                    },
                    "instances": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Number of database instances (1 for standalone, 3/5/7 for HA cluster). For postgres type.",
                        "enum": [
                            1,
                            3,
                            5,
                            7
                        ]
                    },
                    "auto_sleep": {
                        "type": "boolean",
                        "description": "Sleep when idle (default false), for a postgres service on Usage Billing: true lets the database sleep after a period without connections and wake on the next one. Refused for other types and on free compute, which always sleeps. Requires services:operate."
                    },
                    "creation_mode": {
                        "type": "string",
                        "description": "Creation mode: 'fresh' (new database, default), 'external_replica' (replica of external PostgreSQL). For postgres type.",
                        "enum": [
                            "fresh",
                            "external_replica"
                        ]
                    },
                    "external_host": {
                        "type": "string",
                        "description": "Hostname of the external PostgreSQL source database. Required for external_replica mode."
                    },
                    "external_port": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Port of the external PostgreSQL source database. Required for external_replica mode."
                    },
                    "auth_type": {
                        "type": "string",
                        "description": "Authentication method for external replica: 'password' or 'tls'. Required for external_replica mode.",
                        "enum": [
                            "password",
                            "tls"
                        ]
                    },
                    "replication_username": {
                        "type": "string",
                        "description": "Username for replication connection to external database."
                    },
                    "replication_password": {
                        "type": "string",
                        "description": "Password for replication connection (password auth). Required when auth_type is 'password'."
                    },
                    "ca_crt": {
                        "type": "string",
                        "description": "CA certificate for TLS authentication. Required when auth_type is 'tls'."
                    },
                    "tls_crt": {
                        "type": "string",
                        "description": "TLS client certificate. Required when auth_type is 'tls'."
                    },
                    "tls_key": {
                        "type": "string",
                        "description": "TLS client key. Required when auth_type is 'tls'."
                    },
                    "s3_enabled": {
                        "type": "boolean",
                        "description": "Enable S3 WAL archive fallback. Accepts true/false or '1'/'0'. For external_replica mode."
                    },
                    "s3_endpoint": {
                        "type": "string",
                        "description": "S3 endpoint URL. Required when s3_enabled is true."
                    },
                    "s3_bucket": {
                        "type": "string",
                        "description": "S3 bucket name. Required when s3_enabled is true."
                    },
                    "s3_path": {
                        "type": "string",
                        "description": "S3 path prefix. Required when s3_enabled is true."
                    },
                    "s3_access_key": {
                        "type": "string",
                        "description": "S3 access key. Required when s3_enabled is true."
                    },
                    "s3_secret_key": {
                        "type": "string",
                        "description": "S3 secret key. Required when s3_enabled is true."
                    },
                    "s3_server_name": {
                        "type": "string",
                        "description": "Archive server name from barman-cloud-wal-archive. Required when s3_enabled is true."
                    },
                    "storage_access": {
                        "type": "string",
                        "description": "Access mode: 'RWO' (single node read-write), 'RWX' (multi-node read-write). For shared_storage type.",
                        "enum": [
                            "RWO",
                            "RWX"
                        ]
                    },
                    "postgres_version": {
                        "type": "string",
                        "description": "PostgreSQL major version. Required for postgres type.",
                        "enum": [
                            "18",
                            "17",
                            "16",
                            "15",
                            "14",
                            "13"
                        ]
                    },
                    "mysql_version": {
                        "type": "string",
                        "description": "MySQL major version. Required for mysql type.",
                        "enum": [
                            "8.2",
                            "8.0"
                        ]
                    },
                    "valkey_version": {
                        "type": "string",
                        "description": "Valkey version. Required for valkey type.",
                        "enum": [
                            "7",
                            "7.2"
                        ]
                    },
                    "mount_point": {
                        "type": "string",
                        "description": "Container mount path (e.g., /data). Required for shared_storage type."
                    }
                },
                "required": [
                    "service_type",
                    "project_id",
                    "label"
                ],
                "description": "Create a new service"
            },
            "updateService": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name for the service"
                    },
                    "ram_size": {
                        "type": "number",
                        "format": "float",
                        "description": "RAM allocation in MiB (e.g., 64, 128, 256). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "disk_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Disk storage in GiB (e.g., 1, 5, 10). It only grows: a size below the current one, or under 100 MiB, is refused."
                    },
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation in cores (e.g., 0.1, 0.25, 0.5). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "size": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, one of the size codes from GET /api/v1/workspace/pay_per_use/sizes, e.g. hobby-1c-2g. cpu_size and ram_size are refused for such a workload."
                    },
                    "public_access": {
                        "type": "boolean",
                        "description": "Enable public internet access. Accepts true/false or '1'/'0'. For postgres, mysql and valkey types."
                    },
                    "backup_enabled": {
                        "type": "boolean",
                        "description": "Enable automatic backups. Accepts true/false or '1'/'0'. Applied to the cluster asynchronously: GET backups reports backup_active once it takes effect. For postgres type."
                    },
                    "scheduled_backup": {
                        "type": "string",
                        "description": "Cron expression for backup schedule (6-field: second minute hour day month weekday). For postgres type."
                    },
                    "instances": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Number of database instances (1 for standalone, 3/5/7 for HA cluster). For postgres type.",
                        "enum": [
                            1,
                            3,
                            5,
                            7
                        ]
                    },
                    "auto_sleep": {
                        "type": "boolean",
                        "description": "Sleep when idle, for a postgres service that is not a replica, on Usage Billing: true hibernates the database after a period without activity and wakes it on the next connection. Free compute always sleeps."
                    },
                    "project_id": {
                        "type": "string",
                        "description": "Move the service to another project. Requires services:manage. Refused when the service's resource is assigned to projects that do not include the target."
                    }
                },
                "description": "Update a service"
            },
            "updateServiceState": {
                "type": "object",
                "properties": {
                    "state": {
                        "type": "string",
                        "description": "Target state: 'process_start' to start, 'process_stop' to stop, 'process_restart' to restart",
                        "enum": [
                            "process_start",
                            "process_stop",
                            "process_restart"
                        ]
                    }
                },
                "required": [
                    "state"
                ],
                "description": "Change service state"
            },
            "mountAppToService": {
                "type": "object",
                "properties": {
                    "app_id": {
                        "type": "string",
                        "description": "UUID of the application to mount"
                    },
                    "mount_point": {
                        "type": "string",
                        "description": "Container mount path (e.g., /data). Defaults to the service's mount point."
                    },
                    "sub_path": {
                        "type": "string",
                        "description": "Subdirectory of the shared volume to mount instead of its root (relative path, e.g. media/uploads). Created automatically if missing."
                    },
                    "label": {
                        "type": "string",
                        "description": "Human-readable label for the mounted addon"
                    }
                },
                "required": [
                    "app_id"
                ],
                "description": "Mount an application to a service"
            },
            "unmountAppFromService": {
                "type": "object",
                "properties": {
                    "app_id": {
                        "type": "string",
                        "description": "UUID of the application to unmount"
                    }
                },
                "required": [
                    "app_id"
                ],
                "description": "Unmount an application from a service"
            },
            "restoreServiceBackup": {
                "type": "object",
                "properties": {
                    "backup_name": {
                        "type": "string",
                        "description": "Name of a specific backup to restore from"
                    },
                    "target_time": {
                        "type": "string",
                        "description": "ISO 8601 timestamp for point-in-time recovery"
                    },
                    "to_new_cluster": {
                        "type": "boolean",
                        "description": "Restore to a new cluster instead of replacing the current one. Accepts true/false or '1'/'0'."
                    }
                },
                "description": "Restore service from backup"
            },
            "createServiceReplica": {
                "type": "object",
                "properties": {
                    "cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU allocation for the replica (defaults to primary's value). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "ram_size": {
                        "type": "integer",
                        "format": "int32",
                        "description": "RAM allocation in megabytes (defaults to primary's value). On a resource only; a workload on Usage Billing or in the workspace pool takes size."
                    },
                    "size": {
                        "type": "string",
                        "description": "For a database on Usage Billing or in the workspace pool, one of the size ids from GET /api/v1/workspace/pay_per_use/sizes (defaults to the primary's size)."
                    }
                },
                "description": "Create a read replica of a PostgreSQL service"
            },
            "Api_V1_Entities_StaticSite": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique static site identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "The name the site is served under. Unlike applications, no random suffix is appended, so it is the name you sent at creation"
                    },
                    "label": {
                        "type": "string",
                        "description": "Display name"
                    },
                    "state": {
                        "type": "string",
                        "description": "Current state: pending while the bucket and routing are provisioned, assigned once ready, deploying during a deploy, running when live, failed on error"
                    },
                    "url": {
                        "type": "string",
                        "description": "Public URL the site is served on. Custom domains are listed separately"
                    },
                    "region": {
                        "type": "string",
                        "description": "Region the content is stored in. Serving is region-less"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "Associated project UUID"
                    },
                    "deployment_config": {
                        "type": "object",
                        "description": "Content source and build configuration. Includes credential_id, the UUID of the stored credential accepted by PUT /static/{uuid}/deployment, null when none is set. Bucket credentials are never exposed"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "label",
                    "state",
                    "url",
                    "region",
                    "project_id",
                    "deployment_config",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_StaticSite model"
            },
            "createStaticSite": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name"
                    },
                    "name": {
                        "type": "string",
                        "description": "The name the site is served under (lowercase, alphanumeric with hyphens). Unlike applications no suffix is appended, so it must be unique across the platform"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the project to create the site in. Omit it and supply new_project_name to create one"
                    },
                    "new_project_name": {
                        "type": "string",
                        "description": "Create a new project with this name instead of using project_id"
                    },
                    "new_project_description": {
                        "type": "string",
                        "description": "Description for the project created via new_project_name"
                    },
                    "region": {
                        "type": "string",
                        "description": "Region the content is stored in (defaults to 'eu-east-1'; currently the only supported region). Serving is region-less",
                        "enum": [
                            "eu-east-1"
                        ]
                    },
                    "deployment_config": {
                        "type": "object",
                        "description": "Content source and build configuration",
                        "properties": {
                            "source_type": {
                                "type": "string",
                                "description": "Content source: 'git_push', 'github', 'zip' or 'sftp'",
                                "enum": [
                                    "git_push",
                                    "github",
                                    "zip",
                                    "sftp"
                                ]
                            },
                            "credential_id": {
                                "type": "string",
                                "description": "UUID of stored GitHub App credentials (required for 'github')"
                            },
                            "repository": {
                                "type": "string",
                                "description": "GitHub repository in 'owner/repo' format (for 'github')"
                            },
                            "branch": {
                                "type": "string",
                                "description": "Branch to build from (for 'github'; defaults to 'main')"
                            },
                            "auto_deploy_enabled": {
                                "type": "boolean",
                                "description": "Rebuild and deploy on every push (for 'github')"
                            },
                            "auto_deploy_branch": {
                                "type": "string",
                                "description": "Branch that triggers auto-deploy (for 'github')"
                            },
                            "generator": {
                                "type": "string",
                                "description": "Static site generator; 'auto' detects it (for 'git_push' and 'github')"
                            },
                            "build_command": {
                                "type": "string",
                                "description": "Override the generator's default build command"
                            },
                            "output_dir": {
                                "type": "string",
                                "description": "Override the generator's default output directory"
                            },
                            "project_path": {
                                "type": "string",
                                "description": "Subdirectory to build from, for monorepos"
                            },
                            "spa_mode": {
                                "type": "boolean",
                                "description": "Rewrite unknown paths to /index.html for client-side routing"
                            }
                        },
                        "required": [
                            "source_type"
                        ]
                    },
                    "app_vars_attributes": {
                        "type": "array",
                        "description": "Build-time environment variables, exposed to the build as BUILD_VAR_*",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "description": "Variable name"
                                },
                                "value": {
                                    "type": "string",
                                    "description": "Variable value"
                                }
                            },
                            "required": [
                                "key",
                                "value"
                            ]
                        }
                    }
                },
                "required": [
                    "label",
                    "name",
                    "deployment_config"
                ],
                "description": "Create a static site"
            },
            "updateStaticSite": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of the project to move the site to"
                    }
                },
                "description": "Update a static site"
            },
            "updateStaticSiteDeployment": {
                "type": "object",
                "properties": {
                    "credential_id": {
                        "type": "string",
                        "description": "UUID of stored GitHub App credentials (for a 'github' source)"
                    },
                    "repository": {
                        "type": "string",
                        "description": "GitHub repository in 'owner/repo' format (for a 'github' source)"
                    },
                    "branch": {
                        "type": "string",
                        "description": "Branch to build and deploy from (for a 'github' source)"
                    },
                    "auto_deploy_enabled": {
                        "type": "boolean",
                        "description": "Rebuild and deploy on every push (for a 'github' source)"
                    },
                    "auto_deploy_branch": {
                        "type": "string",
                        "description": "Branch that triggers auto-deploy (for a 'github' source)"
                    },
                    "generator": {
                        "type": "string",
                        "description": "Static site generator; 'auto' detects it (for 'git_push' and 'github')"
                    },
                    "build_command": {
                        "type": "string",
                        "description": "Override the generator's default build command"
                    },
                    "output_dir": {
                        "type": "string",
                        "description": "Override the generator's default output directory"
                    },
                    "project_path": {
                        "type": "string",
                        "description": "Subdirectory to build from, for monorepos"
                    },
                    "spa_mode": {
                        "type": "boolean",
                        "description": "Rewrite unknown paths to /index.html for client-side routing"
                    }
                },
                "description": "Update static site build and routing configuration"
            },
            "deployStaticSite": {
                "type": "object",
                "properties": {
                    "archive": {
                        "type": "string",
                        "description": "Prebuilt site as a zip archive (for a 'zip' source)",
                        "format": "binary"
                    }
                },
                "description": "Deploy a static site"
            },
            "Api_V1_Entities_Stack": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique stack identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "Stack codename (unique per workspace)"
                    },
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name"
                    },
                    "state": {
                        "type": "string",
                        "description": "Computed state (pending, validating, publishing, building, deploying, running, degraded, failed, stopped)"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "Associated project UUID"
                    },
                    "compose_path": {
                        "type": "string",
                        "description": "Path to the docker-compose file within the repository. Also returned by the list endpoint"
                    },
                    "deployment_config": {
                        "type": "object",
                        "description": "Git deployment configuration: type (github for a stack with a credential, public_git without), repository (owner/repo slug for github, null for public_git), repository_url (the repository URL from creation as the platform stores it: public_git ends in .git, github is https://github.com/<owner>/<repo>), branch, auto_deploy_enabled (null for public_git) and credential_id (UUID of the stored Git credential, null when none). Null when the stack has no deployment configuration"
                    },
                    "total_cpu_size": {
                        "type": "number",
                        "format": "float",
                        "description": "Total CPU allocated across stack services (cores)"
                    },
                    "total_ram_size": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Total RAM allocated across stack services, in bytes"
                    },
                    "total_disk_size": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Total disk allocated across stack services, in bytes"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    },
                    "billing": {
                        "type": "string",
                        "enum": [
                            "resource",
                            "pay_per_use",
                            "workspace_pool"
                        ],
                        "description": "Where it runs: 'resource' on its resource, 'pay_per_use' without a resource paying for what it reserves while it runs, 'workspace_pool' without a resource in an enterprise contract's pool"
                    },
                    "resource": {
                        "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                    },
                    "miget": {
                        "$ref": "#/components/schemas/Api_V1_Entities_Resource"
                    },
                    "services": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_StackItem"
                        },
                        "description": "Services materialized from the compose manifest"
                    },
                    "latest_deployment": {
                        "$ref": "#/components/schemas/Api_V1_Entities_StackDeployment"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "label",
                    "state",
                    "project_id",
                    "compose_path",
                    "deployment_config",
                    "total_cpu_size",
                    "total_ram_size",
                    "total_disk_size",
                    "created_at",
                    "updated_at",
                    "billing",
                    "resource",
                    "miget",
                    "services",
                    "latest_deployment"
                ],
                "description": "Api_V1_Entities_Stack model"
            },
            "Api_V1_Entities_StackItem": {
                "type": "object",
                "properties": {
                    "compose_service_name": {
                        "type": "string",
                        "description": "Service name as declared in the compose file"
                    },
                    "compose_service_type": {
                        "type": "string",
                        "description": "Service type (app, standalone, managed, volume). A volume item is the shared storage service for a top-level volume mounted by more than one app or standalone service; its compose_service_name is volume:<name>"
                    },
                    "status": {
                        "type": "string",
                        "description": "Derived status (pending, running, deploying, degraded, failed, stopped)"
                    },
                    "item_type": {
                        "type": "string",
                        "description": "Underlying record type (App or Service)"
                    },
                    "item_uuid": {
                        "type": "string",
                        "description": "Underlying App/Service UUID"
                    },
                    "item_name": {
                        "type": "string",
                        "description": "Underlying App/Service name"
                    }
                },
                "required": [
                    "compose_service_name",
                    "compose_service_type",
                    "status",
                    "item_type",
                    "item_uuid",
                    "item_name"
                ]
            },
            "Api_V1_Entities_StackDeployment": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Deployment identifier"
                    },
                    "state": {
                        "type": "string",
                        "description": "Deployment state (pending, validating, publishing, building, succeeded, failed, cancelled)"
                    },
                    "subevent": {
                        "type": "string",
                        "description": "Deployment kind (build or deploy)"
                    },
                    "commit_sha": {
                        "type": "string",
                        "description": "Deployed commit SHA"
                    },
                    "validation_errors": {
                        "type": "object",
                        "description": "Validation errors when the deployment failed"
                    },
                    "published_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When the build/deploy was published"
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When the deployment reached a terminal state"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "state",
                    "subevent",
                    "commit_sha",
                    "validation_errors",
                    "published_at",
                    "completed_at",
                    "created_at"
                ],
                "description": "Api_V1_Entities_StackDeployment model"
            },
            "analyzeStack": {
                "type": "object",
                "properties": {
                    "repository_url": {
                        "type": "string",
                        "description": "Git repository URL (GitHub or public HTTPS Git)"
                    },
                    "branch": {
                        "type": "string",
                        "description": "Git branch to analyze"
                    },
                    "compose_path": {
                        "type": "string",
                        "description": "Path to the docker-compose file within the repository (defaults to '.')"
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "UUID of the target compute resource (used to derive the detection namespace)"
                    },
                    "credential_id": {
                        "type": "string",
                        "description": "UUID of a stored Git credential (for private repositories)"
                    }
                },
                "required": [
                    "repository_url",
                    "branch"
                ],
                "description": "Analyze a compose source"
            },
            "Api_V1_Entities_StackAnalysis": {
                "type": "object",
                "properties": {
                    "manifest": {
                        "type": "object",
                        "description": "Detected compose manifest (apps, standalone_services, managed_services, volumes, defaults)"
                    },
                    "warnings": {
                        "type": "array",
                        "description": "Non-fatal detection warnings",
                        "items": {}
                    }
                },
                "required": [
                    "manifest",
                    "warnings"
                ],
                "description": "Api_V1_Entities_StackAnalysis model"
            },
            "createStack": {
                "type": "object",
                "properties": {
                    "repository_url": {
                        "type": "string",
                        "description": "Git repository URL (GitHub or public HTTPS Git)"
                    },
                    "branch": {
                        "type": "string",
                        "description": "Git branch to deploy"
                    },
                    "resource_id": {
                        "type": "string",
                        "description": "UUID of the target compute resource. Required unless billing is pay_per_use or workspace_pool."
                    },
                    "billing": {
                        "type": "string",
                        "description": "Where it runs: 'resource' (default, on the resource named by resource_id), 'pay_per_use' (without a resource, paying for what it reserves while it runs; not on an enterprise contract) or 'workspace_pool' (without a resource, in an enterprise contract's pool; refused with 422 when the pool has no room)",
                        "enum": [
                            "resource",
                            "pay_per_use",
                            "workspace_pool"
                        ]
                    },
                    "region_code": {
                        "type": "string",
                        "description": "Region to run in when billing is pay_per_use or workspace_pool, e.g. eu-east-1. Defaults to a region the workspace already runs in, or in a workspace with nothing placed yet to the first active region: send it when the region matters."
                    },
                    "tier": {
                        "type": "string",
                        "description": "With billing pay_per_use or workspace_pool, the CPU class of every workload of the stack: 'hobby' (shared CPU) or 'pro' (dedicated).",
                        "enum": [
                            "hobby",
                            "pro"
                        ]
                    },
                    "compose_path": {
                        "type": "string",
                        "description": "Path to the docker-compose file within the repository (defaults to '.')"
                    },
                    "credential_id": {
                        "type": "string",
                        "description": "UUID of a stored Git credential (for private repositories)"
                    },
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name for the stack"
                    },
                    "name": {
                        "type": "string",
                        "description": "Stack codename seed (must start with a letter; derived from the repository if omitted)"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "UUID of an existing project to create the stack in"
                    },
                    "new_project_name": {
                        "type": "string",
                        "description": "Name of a new project to create for the stack"
                    },
                    "new_project_description": {
                        "type": "string",
                        "description": "Description for the new project"
                    },
                    "env_var_overrides": {
                        "type": "object",
                        "description": "Custom required env var values, shaped as { service_name: { KEY: value } }"
                    },
                    "auto_populate_required_vars": {
                        "type": "boolean",
                        "description": "Random-fill any required env var left without a custom value (default false)"
                    }
                },
                "required": [
                    "repository_url",
                    "branch"
                ],
                "description": "Create a stack"
            },
            "updateStack": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name"
                    },
                    "compose_path": {
                        "type": "string",
                        "description": "Path to the docker-compose file within the repository"
                    },
                    "project_id": {
                        "type": "string",
                        "description": "Move the stack, and every application and service it runs, to another project. Requires apps:manage. Refused when the stack's resource is assigned to projects that do not include the target."
                    }
                },
                "description": "Update a stack"
            },
            "deployStack": {
                "type": "object",
                "properties": {
                    "commit_sha": {
                        "type": "string",
                        "description": "Specific commit SHA to deploy (optional)"
                    }
                },
                "description": "Deploy a stack"
            },
            "updateStackDeployment": {
                "type": "object",
                "properties": {
                    "branch": {
                        "type": "string",
                        "description": "Tracked Git branch"
                    },
                    "auto_deploy_enabled": {
                        "type": "boolean",
                        "description": "Deploy automatically on push to the tracked branch"
                    },
                    "repository": {
                        "type": "string",
                        "description": "Repository slug (owner/repo)"
                    }
                },
                "description": "Update stack deployment configuration"
            },
            "Api_V1_Entities_User": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "User UUID"
                    },
                    "email": {
                        "type": "string",
                        "description": "Email address"
                    },
                    "name": {
                        "type": "string",
                        "description": "First name"
                    },
                    "surname": {
                        "type": "string",
                        "description": "Last name"
                    },
                    "discord_username": {
                        "type": "string",
                        "description": "Discord username"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Registration date"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "email",
                    "name",
                    "surname",
                    "discord_username",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_User model"
            },
            "Api_V1_Entities_SshKey": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "SSH key ID"
                    },
                    "public_key": {
                        "type": "string",
                        "description": "SSH public key content"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "id",
                    "public_key",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_SshKey model"
            },
            "createSshKey": {
                "type": "object",
                "properties": {
                    "public_key": {
                        "type": "string",
                        "description": "SSH public key in OpenSSH format (e.g., 'ssh-ed25519 AAAA... user@host')"
                    }
                },
                "required": [
                    "public_key"
                ],
                "description": "Add an SSH key"
            },
            "Api_V1_Entities_Credit": {
                "type": "object",
                "properties": {
                    "credit_balance_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Your own credits, in cents. They pay for nothing until you transfer them to a workspace with POST /workspace/credits/transfer"
                    },
                    "credit_balance_formatted": {
                        "type": "string",
                        "description": "Formatted credit balance"
                    },
                    "referral_code": {
                        "type": "string",
                        "description": "User's referral code"
                    },
                    "referral_percentage": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Referral credit percentage"
                    },
                    "credit_operations": {
                        "type": "array",
                        "description": "Your credit operations, newest first. operation_type is earned (from a referral), promotion (for a post about Lyngbak), adjustment (a correction by Lyngbak) or transferred_out (moved to a workspace); deducted and spent_on_usage are payments made from your credits before they moved to workspaces",
                        "items": {}
                    }
                },
                "required": [
                    "credit_balance_in_cents",
                    "credit_balance_formatted",
                    "referral_code",
                    "referral_percentage",
                    "credit_operations"
                ],
                "description": "Api_V1_Entities_Credit model"
            },
            "Api_V1_Entities_Vpc": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique VPC identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "VPC name, unique per region"
                    },
                    "label": {
                        "type": "string",
                        "description": "Display label"
                    },
                    "status": {
                        "type": "string",
                        "description": "Current status (pending, active, failed, deleting)"
                    },
                    "region_id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Region identifier, the same value POST /vpcs takes as region_id"
                    },
                    "region_code": {
                        "type": "string",
                        "description": "Region the VPC lives in. A VPC cannot span regions."
                    },
                    "cidr_v4": {
                        "type": "string",
                        "description": "IPv4 range the subnets are carved from"
                    },
                    "cidr_v6": {
                        "type": "string",
                        "description": "IPv6 range, derived when not supplied"
                    },
                    "resolver_v4": {
                        "type": "string",
                        "description": "Address of the VPC's DNS resolver, at the base of the range plus two"
                    },
                    "vpn_pool_v4": {
                        "type": "string",
                        "description": "Range VPN clients are addressed from"
                    },
                    "subnet_count": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Number of subnets"
                    },
                    "attachment_count": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Number of attached workloads"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "label",
                    "status",
                    "region_id",
                    "region_code",
                    "cidr_v4",
                    "cidr_v6",
                    "resolver_v4",
                    "vpn_pool_v4",
                    "subnet_count",
                    "attachment_count",
                    "created_at"
                ],
                "description": "Api_V1_Entities_Vpc model"
            },
            "createVpc": {
                "type": "object",
                "properties": {
                    "region_id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Region the VPC lives in. A VPC cannot span regions."
                    },
                    "name": {
                        "type": "string",
                        "description": "Name, unique per region. Defaults to 'default'."
                    },
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name"
                    },
                    "cidr_v4": {
                        "type": "string",
                        "description": "IPv4 range. Defaults to 10.224.0.0/16."
                    },
                    "cidr_v6": {
                        "type": "string",
                        "description": "IPv6 range. Derived from the workspace and name when omitted."
                    }
                },
                "required": [
                    "region_id"
                ],
                "description": "Create a VPC"
            },
            "updateVpc": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "description": "Human-readable display name"
                    }
                },
                "required": [
                    "label"
                ],
                "description": "Update a VPC"
            },
            "Api_V1_Entities_VpcSubnet": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique subnet identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "Subnet name, unique within the VPC"
                    },
                    "status": {
                        "type": "string",
                        "description": "Current status (pending, active, failed, deleting)"
                    },
                    "cidr_v4": {
                        "type": "string",
                        "description": "IPv4 range, carved out of the VPC's own"
                    },
                    "cidr_v6": {
                        "type": "string",
                        "description": "IPv6 range"
                    },
                    "family": {
                        "type": "string",
                        "description": "Address families the subnet runs (dual, ipv4, ipv6)"
                    },
                    "gateway_v4": {
                        "type": "string",
                        "description": "IPv4 gateway for this subnet"
                    },
                    "gateway_v6": {
                        "type": "string",
                        "description": "IPv6 gateway for this subnet"
                    },
                    "public": {
                        "type": "boolean",
                        "description": "Public keeps the platform default route; private moves it to the VPC so egress leaves through your own gateway"
                    },
                    "attachment_count": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Number of attached workloads"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "status",
                    "cidr_v4",
                    "cidr_v6",
                    "family",
                    "gateway_v4",
                    "gateway_v6",
                    "public",
                    "attachment_count",
                    "created_at"
                ],
                "description": "Api_V1_Entities_VpcSubnet model"
            },
            "createVpcSubnet": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Subnet name, unique within the VPC"
                    },
                    "family": {
                        "type": "string",
                        "description": "Address families the subnet runs. dual (default), ipv4 for no IPv6 at all, or ipv6 for no IPv4.",
                        "enum": [
                            "dual",
                            "ipv4",
                            "ipv6"
                        ],
                        "default": "dual"
                    },
                    "cidr_v4": {
                        "type": "string",
                        "description": "IPv4 range inside the VPC. Required unless family is ipv6."
                    },
                    "cidr_v6": {
                        "type": "string",
                        "description": "IPv6 range. Derived from the VPC's own when omitted; required when family is ipv6."
                    },
                    "public": {
                        "type": "boolean",
                        "description": "Public keeps the platform default route on eth0; private moves it to the VPC so egress leaves through your own gateway. This is the only difference between the two.",
                        "default": true
                    }
                },
                "required": [
                    "name"
                ],
                "description": "Create a subnet"
            },
            "Api_V1_Entities_VpcAttachment": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique attachment identifier"
                    },
                    "status": {
                        "type": "string",
                        "description": "Current status (pending, active, failed, detaching)"
                    },
                    "attachable_type": {
                        "type": "string",
                        "description": "Kind of workload attached (App, Service, Addon)"
                    },
                    "attachable_uuid": {
                        "type": "string",
                        "description": "UUID of the attached workload"
                    },
                    "workload_name": {
                        "type": "string",
                        "description": "Name the platform uses to find the workload"
                    },
                    "subnet_uuid": {
                        "type": "string",
                        "description": "UUID of the subnet the workload joined, the same value POST attachments takes as subnet_uuid"
                    },
                    "subnet_name": {
                        "type": "string",
                        "description": "Subnet the workload joined"
                    },
                    "fqdn": {
                        "type": "string",
                        "description": "Name this workload answers to inside the VPC. Absent for a cronjob, whose pods are transient. For a static attachment it resolves to the fixed address; for any other it points at a pod address, which changes when the pod is replaced."
                    },
                    "static_ip": {
                        "type": "boolean",
                        "description": "Whether the app holds a fixed address on the subnet. Only apps can, and it is chosen when attaching."
                    },
                    "address_v4": {
                        "type": "string",
                        "description": "Fixed IPv4 address of a static attachment. Null unless static_ip is true."
                    },
                    "address_v6": {
                        "type": "string",
                        "description": "Fixed IPv6 address of a static attachment. Null unless static_ip is true and the subnet has an IPv6 range."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "status",
                    "attachable_type",
                    "attachable_uuid",
                    "workload_name",
                    "subnet_uuid",
                    "subnet_name",
                    "fqdn",
                    "static_ip",
                    "address_v4",
                    "address_v6",
                    "created_at"
                ],
                "description": "Api_V1_Entities_VpcAttachment model"
            },
            "createVpcAttachment": {
                "type": "object",
                "properties": {
                    "subnet_uuid": {
                        "type": "string",
                        "description": "UUID of the subnet to join"
                    },
                    "attachable_type": {
                        "type": "string",
                        "description": "Kind of workload: App, Service or Addon",
                        "enum": [
                            "App",
                            "Service",
                            "Addon"
                        ]
                    },
                    "attachable_uuid": {
                        "type": "string",
                        "description": "UUID of the workload"
                    },
                    "static_ip": {
                        "type": "boolean",
                        "description": "Give the app a fixed address on the subnet instead of one that changes whenever its pod is replaced. Apps only, and the app must run a single replica without autoscaling. Deployments of the app then replace the pod instead of rolling it, which means a short downtime on every deploy. The address is allocated when the attachment is created and returned at once in address_v4, and in address_v6 when the subnet has an IPv6 range. Defaults to false.",
                        "default": false
                    }
                },
                "required": [
                    "subnet_uuid",
                    "attachable_type",
                    "attachable_uuid"
                ],
                "description": "Attach a workload to a VPC"
            },
            "Api_V1_Entities_VpnGateway": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique gateway identifier"
                    },
                    "kind": {
                        "type": "string",
                        "description": "Terminator: wireguard, tailscale, cloudflare or ipsec"
                    },
                    "status": {
                        "type": "string",
                        "description": "Current status (pending, active, failed, disabling)"
                    },
                    "endpoint": {
                        "type": "string",
                        "description": "Address clients dial, once the platform has allocated one. Null for the terminators that dial out instead"
                    },
                    "external_port": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Port on that address, for WireGuard"
                    },
                    "public_ip": {
                        "type": "string",
                        "description": "Public IPv4 held exclusively by this gateway. Only IPsec takes one"
                    },
                    "organization": {
                        "type": "string",
                        "description": "Cloudflare Zero Trust organization (team name) the gateway enrolls into. Null unless the kind is cloudflare. The client secret and the Tailscale auth key are never returned"
                    },
                    "client_id": {
                        "type": "string",
                        "description": "Cloudflare service token client ID. Null unless the kind is cloudflare. The client secret is never returned"
                    },
                    "vpn_user_count": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Devices registered against this gateway"
                    },
                    "site_connection_count": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Site-to-site tunnels terminating on it"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "kind",
                    "status",
                    "endpoint",
                    "external_port",
                    "public_ip",
                    "organization",
                    "client_id",
                    "vpn_user_count",
                    "site_connection_count",
                    "created_at"
                ],
                "description": "Api_V1_Entities_VpnGateway model"
            },
            "createVpcVpnGateway": {
                "type": "object",
                "properties": {
                    "kind": {
                        "type": "string",
                        "description": "Terminator to enable: wireguard, cloudflare or tailscale",
                        "enum": [
                            "wireguard",
                            "cloudflare",
                            "tailscale"
                        ]
                    },
                    "organization": {
                        "type": "string",
                        "description": "Cloudflare Zero Trust team name. Required for cloudflare."
                    },
                    "client_id": {
                        "type": "string",
                        "description": "Cloudflare service token client ID. Required for cloudflare."
                    },
                    "client_secret": {
                        "type": "string",
                        "description": "Cloudflare service token secret. Stored encrypted and never returned. Required for cloudflare."
                    },
                    "auth_key": {
                        "type": "string",
                        "description": "Tailscale auth key. Stored encrypted and never returned. Required for tailscale."
                    }
                },
                "required": [
                    "kind"
                ],
                "description": "Enable a VPN gateway"
            },
            "Api_V1_Entities_VpnUserConfig": {
                "type": "object",
                "properties": {
                    "filename": {
                        "type": "string",
                        "description": "Suggested filename, e.g. laptop.conf"
                    },
                    "config": {
                        "type": "string",
                        "description": "The WireGuard configuration file, private key included. Returned once and never again — write it straight to disk"
                    }
                },
                "required": [
                    "filename",
                    "config"
                ],
                "description": "Api_V1_Entities_VpnUserConfig model"
            },
            "Api_V1_Entities_VpnUser": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique device identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "Device name, unique within the gateway"
                    },
                    "status": {
                        "type": "string",
                        "description": "Current status (pending, active, failed)"
                    },
                    "public_key": {
                        "type": "string",
                        "description": "The device's WireGuard public key. The private half is never stored and is returned only once, by the config endpoint"
                    },
                    "allocated_v4": {
                        "type": "string",
                        "description": "Address the device answers to inside the VPC, allocated from the VPN pool"
                    },
                    "config_available": {
                        "type": "boolean",
                        "description": "Whether the configuration can still be downloaded. It can be read exactly once, and reading it empties the vault"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "status",
                    "public_key",
                    "allocated_v4",
                    "config_available",
                    "created_at"
                ],
                "description": "Api_V1_Entities_VpnUser model"
            },
            "createVpcVpnUser": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Device name, unique within the gateway. Lowercase letters, numbers and hyphens, 2 to 30 characters. This is the name the gateway identifies the peer by."
                    }
                },
                "required": [
                    "name"
                ],
                "description": "Add a VPN device"
            },
            "Api_V1_Entities_VpcPeerRoute": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique route identifier"
                    },
                    "cidr": {
                        "type": "string",
                        "description": "IPv4 range reachable through the gateway"
                    },
                    "gateway_kind": {
                        "type": "string",
                        "description": "Terminator the range sits behind: cloudflare or tailscale"
                    },
                    "description": {
                        "type": "string",
                        "description": "Free-text note"
                    },
                    "status": {
                        "type": "string",
                        "description": "pending until applied, then applied or failed"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "cidr",
                    "gateway_kind",
                    "description",
                    "status",
                    "created_at"
                ],
                "description": "Api_V1_Entities_VpcPeerRoute model"
            },
            "createVpcPeerRoute": {
                "type": "object",
                "properties": {
                    "cidr": {
                        "type": "string",
                        "description": "IPv4 range on the far side, e.g. 192.168.10.0/24. Unique within the VPC."
                    },
                    "gateway_kind": {
                        "type": "string",
                        "description": "Terminator the range sits behind. In practice only `cloudflare` and `tailscale` need a route: WireGuard's client pool and an IPsec connection's remote selectors are derived from the gateways themselves and added automatically.",
                        "enum": [
                            "wireguard",
                            "cloudflare",
                            "ipsec",
                            "tailscale",
                            "egress"
                        ]
                    },
                    "description": {
                        "type": "string",
                        "description": "Free-text note, e.g. what lives in that range"
                    }
                },
                "required": [
                    "cidr",
                    "gateway_kind"
                ],
                "description": "Stage a peer route"
            },
            "Api_V1_Entities_SiteConnection": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique connection identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "Connection name, unique within the gateway"
                    },
                    "peer_kind": {
                        "type": "string",
                        "description": "Far side's platform. Only aws today"
                    },
                    "peer_asn": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Far side's BGP ASN, when it runs BGP"
                    },
                    "remote_cidrs": {
                        "type": "array",
                        "description": "The far side's IPv4 ranges",
                        "items": {}
                    },
                    "remote_gateways": {
                        "type": "array",
                        "description": "Addresses of the far side's tunnel endpoints. The pre-shared keys sent alongside them are never returned",
                        "items": {}
                    },
                    "status": {
                        "type": "string",
                        "description": "Current status (pending, active, failed, deleting)"
                    },
                    "public_ip": {
                        "type": "string",
                        "description": "The public IPv4 this connection holds exclusively. Enter it on the far side"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "peer_kind",
                    "peer_asn",
                    "remote_cidrs",
                    "remote_gateways",
                    "status",
                    "public_ip",
                    "created_at"
                ],
                "description": "Api_V1_Entities_SiteConnection model"
            },
            "createVpcSiteConnection": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Connection name, unique within the gateway. Lowercase letters, numbers and hyphens, 2 to 30 characters. This is the name the platform addresses the tunnel by."
                    },
                    "remote_cidrs": {
                        "type": "array",
                        "description": "The far side's IPv4 ranges, e.g. ['10.0.0.0/16']. Anything outside them is not routed over the tunnel.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "tunnels": {
                        "type": "array",
                        "description": "One entry per tunnel from the far side's configuration. AWS gives two; only the first is used today, because running both needs a guest-kernel roll that has not happened yet.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "remote_gateway": {
                                    "type": "string",
                                    "description": "The far side's tunnel endpoint address"
                                },
                                "psk": {
                                    "type": "string",
                                    "description": "Pre-shared key for that tunnel. Stored encrypted and never returned."
                                }
                            },
                            "required": [
                                "remote_gateway",
                                "psk"
                            ]
                        }
                    },
                    "peer_asn": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The far side's BGP ASN, when it runs BGP"
                    }
                },
                "required": [
                    "name",
                    "remote_cidrs",
                    "tunnels"
                ],
                "description": "Create a site-to-site connection"
            },
            "Api_V1_Entities_Webhook": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique webhook identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "Display name (unique per workspace)"
                    },
                    "url": {
                        "type": "string",
                        "description": "Destination URL events are POSTed to"
                    },
                    "enabled": {
                        "type": "boolean",
                        "description": "Whether deliveries are currently sent"
                    },
                    "event_filter": {
                        "type": "array",
                        "description": "Event types this webhook subscribes to. One or more of: deploy_started, deploy_ended, app_unhealthy, app_crash_loop, app_stopped, app_state_changed, app_blocked, scaling_limit_reached, certificate_expiring, domain_verified, quota_alert",
                        "items": {}
                    },
                    "app_uuids": {
                        "type": "array",
                        "description": "App UUIDs this webhook is scoped to. Empty means every app in the workspace.",
                        "items": {}
                    },
                    "include_review_apps": {
                        "type": "boolean",
                        "description": "Whether events from preview environments of the scoped apps are sent. A preview environment has its own app UUID, so it is not covered by app_uuids alone."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "url",
                    "enabled",
                    "event_filter",
                    "app_uuids",
                    "include_review_apps",
                    "created_at",
                    "updated_at"
                ],
                "description": "Api_V1_Entities_Webhook model"
            },
            "createWebhook": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Display name (must be unique within the workspace)"
                    },
                    "url": {
                        "type": "string",
                        "description": "Destination URL; must be an http or https URL"
                    },
                    "event_filter": {
                        "type": "array",
                        "description": "Event types to subscribe to. One or more of: deploy_started, deploy_ended, app_unhealthy, app_crash_loop, app_stopped, app_state_changed, app_blocked, scaling_limit_reached, certificate_expiring, domain_verified, quota_alert",
                        "items": {
                            "type": "string",
                            "enum": [
                                "deploy_started",
                                "deploy_ended",
                                "app_unhealthy",
                                "app_crash_loop",
                                "app_stopped",
                                "app_state_changed",
                                "app_blocked",
                                "scaling_limit_reached",
                                "certificate_expiring",
                                "domain_verified",
                                "quota_alert"
                            ]
                        }
                    },
                    "app_uuids": {
                        "type": "array",
                        "description": "App UUIDs to scope this webhook to. Omit or send an empty array for every app in the workspace.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "enabled": {
                        "type": "boolean",
                        "description": "Whether deliveries are sent (default true)",
                        "default": true
                    },
                    "include_review_apps": {
                        "type": "boolean",
                        "description": "Also send events from preview environments of the scoped apps. A preview environment has its own app UUID, so app_uuids alone does not cover it (default false).",
                        "default": false
                    }
                },
                "required": [
                    "name",
                    "url",
                    "event_filter"
                ],
                "description": "Create a webhook"
            },
            "Api_V1_Entities_WebhookCreated": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique webhook identifier"
                    },
                    "name": {
                        "type": "string",
                        "description": "Display name (unique per workspace)"
                    },
                    "url": {
                        "type": "string",
                        "description": "Destination URL events are POSTed to"
                    },
                    "enabled": {
                        "type": "boolean",
                        "description": "Whether deliveries are currently sent"
                    },
                    "event_filter": {
                        "type": "array",
                        "description": "Event types this webhook subscribes to. One or more of: deploy_started, deploy_ended, app_unhealthy, app_crash_loop, app_stopped, app_state_changed, app_blocked, scaling_limit_reached, certificate_expiring, domain_verified, quota_alert",
                        "items": {}
                    },
                    "app_uuids": {
                        "type": "array",
                        "description": "App UUIDs this webhook is scoped to. Empty means every app in the workspace.",
                        "items": {}
                    },
                    "include_review_apps": {
                        "type": "boolean",
                        "description": "Whether events from preview environments of the scoped apps are sent. A preview environment has its own app UUID, so it is not covered by app_uuids alone."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Last update timestamp"
                    },
                    "secret": {
                        "type": "string",
                        "description": "Signing secret, formatted 'whsec_<base64>'. Returned ONLY in the create response — store it, it cannot be read back."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "url",
                    "enabled",
                    "event_filter",
                    "app_uuids",
                    "include_review_apps",
                    "created_at",
                    "updated_at",
                    "secret"
                ],
                "description": "Api_V1_Entities_WebhookCreated model"
            },
            "updateWebhook": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Display name (must be unique within the workspace)"
                    },
                    "url": {
                        "type": "string",
                        "description": "Destination URL; must be an http or https URL"
                    },
                    "event_filter": {
                        "type": "array",
                        "description": "Event types to subscribe to. One or more of: deploy_started, deploy_ended, app_unhealthy, app_crash_loop, app_stopped, app_state_changed, app_blocked, scaling_limit_reached, certificate_expiring, domain_verified, quota_alert",
                        "items": {
                            "type": "string",
                            "enum": [
                                "deploy_started",
                                "deploy_ended",
                                "app_unhealthy",
                                "app_crash_loop",
                                "app_stopped",
                                "app_state_changed",
                                "app_blocked",
                                "scaling_limit_reached",
                                "certificate_expiring",
                                "domain_verified",
                                "quota_alert"
                            ]
                        }
                    },
                    "app_uuids": {
                        "type": "array",
                        "description": "App UUIDs to scope this webhook to. Send an empty array for every app in the workspace.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "enabled": {
                        "type": "boolean",
                        "description": "Whether deliveries are sent"
                    },
                    "include_review_apps": {
                        "type": "boolean",
                        "description": "Also send events from preview environments of the scoped apps. A preview environment has its own app UUID, so app_uuids alone does not cover it."
                    }
                },
                "description": "Update a webhook"
            },
            "Api_V1_Entities_WebhookDelivery": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Unique delivery identifier"
                    },
                    "event_id": {
                        "type": "string",
                        "description": "Event UUID, matching the 'webhook-id' header and the payload 'id'"
                    },
                    "event_type": {
                        "type": "string",
                        "description": "Event type that was delivered: 'deploy_started' or 'deploy_ended'"
                    },
                    "status": {
                        "type": "string",
                        "description": "Outcome: 'pending', 'delivered' or 'failed'"
                    },
                    "response_code": {
                        "type": "integer",
                        "format": "int32",
                        "description": "HTTP status returned by the endpoint; null when no response was received"
                    },
                    "message": {
                        "type": "string",
                        "description": "Response body or error, truncated to 500 characters"
                    },
                    "attempts": {
                        "type": "integer",
                        "format": "int32",
                        "description": "How many times delivery has been tried, including retries"
                    },
                    "last_attempt_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When the most recent attempt ran"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When the event was first queued"
                    },
                    "payload": {
                        "type": "object",
                        "description": "The exact JSON body that was POSTed to the endpoint"
                    }
                },
                "required": [
                    "uuid",
                    "event_id",
                    "event_type",
                    "status",
                    "response_code",
                    "message",
                    "attempts",
                    "last_attempt_at",
                    "created_at",
                    "payload"
                ],
                "description": "Api_V1_Entities_WebhookDelivery model"
            },
            "Api_V1_Entities_WorkspaceUsage": {
                "type": "object",
                "properties": {
                    "billed_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Hours written to the ledger this cycle before the hour in progress, plus any adjustments"
                    },
                    "pending_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The hours not closed yet, from billed_through to now, priced live"
                    },
                    "total_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "billed_in_cents plus pending_in_cents"
                    },
                    "minimum_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The monthly minimum while the workspace is charged it, or 0; usage up to it is not charged on top. It is charged from the first workload on Usage Billing until the renewal after the last one is gone, and only while the subscription pays for nothing else"
                    },
                    "projected_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The cycle's usage if what runs now keeps running until cycle_end: total_in_cents plus the hourly cost of every running workload at its current replicas and all storage, and never below minimum_in_cents"
                    },
                    "limit_reached_on": {
                        "type": "string",
                        "format": "date",
                        "description": "ISO8601 date that pace reaches spend_limit_in_cents within this cycle, or null when there is no limit, it is already reached, or the projection stays under it"
                    },
                    "spend_limit_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The admin's ceiling, or null for none"
                    },
                    "spend_limit_floor_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The lowest limit that can be set: the monthly minimum, or what storage alone costs for a cycle when that is more"
                    },
                    "pay_per_use_enabled": {
                        "type": "boolean",
                        "description": "Whether Usage Billing is offered in this workspace; on by default"
                    },
                    "charge_threshold_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Unbilled usage beyond the minimum is charged to the card whenever it reaches this amount, rather than waiting for the renewal. It starts at 2500 and each paid renewal raises it a step (5000, 25000, 100000, 400000); during a free trial, until a charge in it is paid, it is 500. A value Lyngbak set for the workspace, on an approved limit increase or otherwise, replaces the ladder; null once usage is charged with the renewal alone, and before the subscription's first payment, when nothing is charged. A refused charge stops the workspace's workloads on Usage Billing until it is paid"
                    },
                    "charged_early_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "What was charged this cycle at the threshold; the renewal bills only the usage beyond it"
                    },
                    "credits_applied_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "What the workspace's credits pay of this cycle's usage beyond the minimum, before the card: what they paid of the hours already sent to billing, plus what the balance left covers of the rest, the hour in progress included. The renewal and the threshold bill only the usage beyond the minimum and these credits"
                    },
                    "due_after_first_payment_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Usage that ran before the subscription's first payment, as during an onboarding Lyngbak set up, and is not billed yet: all of it, with no monthly minimum taken off, is charged to the card right after that payment, the workspace's credits paying first. 0 once the subscription is paid"
                    },
                    "cycle_start": {
                        "type": "string",
                        "description": "ISO8601 start of the billing cycle; the calendar month before the subscription's first payment"
                    },
                    "cycle_end": {
                        "type": "string",
                        "description": "ISO8601 end of the billing cycle"
                    },
                    "billed_through": {
                        "type": "string",
                        "description": "ISO8601 start of the first hour not closed yet; billed_in_cents counts the closed hours before it"
                    },
                    "workloads": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_WorkspaceUsageWorkload"
                        }
                    },
                    "adjustments": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_WorkspaceUsageAdjustment"
                        }
                    }
                },
                "required": [
                    "billed_in_cents",
                    "pending_in_cents",
                    "total_in_cents",
                    "minimum_in_cents",
                    "projected_in_cents",
                    "limit_reached_on",
                    "spend_limit_in_cents",
                    "spend_limit_floor_in_cents",
                    "pay_per_use_enabled",
                    "charge_threshold_in_cents",
                    "charged_early_in_cents",
                    "credits_applied_in_cents",
                    "due_after_first_payment_in_cents",
                    "cycle_start",
                    "cycle_end",
                    "billed_through",
                    "workloads",
                    "adjustments"
                ],
                "description": "Api_V1_Entities_WorkspaceUsage model"
            },
            "Api_V1_Entities_WorkspaceUsageWorkload": {
                "type": "object",
                "properties": {
                    "workload_type": {
                        "type": "string",
                        "description": "What the workload is: App or Addon"
                    },
                    "workload_id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Internal id of the workload"
                    },
                    "name": {
                        "type": "string",
                        "description": "Workload name as it was when the hours were recorded"
                    },
                    "amount_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "What this workload has cost this cycle, the hour in progress included, in cents"
                    },
                    "resources": {
                        "type": "object",
                        "description": "Per-resource totals, keyed cpu / ram / disk, object_storage for a bucket, and run for a cron job's runs: what was billed, so a run its resource's included cron minutes covered counts 0"
                    }
                },
                "required": [
                    "workload_type",
                    "workload_id",
                    "name",
                    "amount_in_cents",
                    "resources"
                ]
            },
            "Api_V1_Entities_WorkspaceUsageAdjustment": {
                "type": "object",
                "properties": {
                    "amount_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Signed amount in cents: negative is a credit, positive a charge"
                    },
                    "note": {
                        "type": "string",
                        "description": "Why the usage was adjusted"
                    },
                    "made_at": {
                        "type": "string",
                        "description": "ISO8601 time the adjustment was made"
                    }
                },
                "required": [
                    "amount_in_cents",
                    "note",
                    "made_at"
                ]
            },
            "updateWorkspaceSpendLimit": {
                "type": "object",
                "properties": {
                    "spend_limit_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The ceiling in cents, or null for no limit"
                    }
                },
                "required": [
                    "spend_limit_in_cents"
                ],
                "description": "Set the usage spend limit"
            },
            "updateWorkspacePayPerUse": {
                "type": "object",
                "properties": {
                    "enabled": {
                        "type": "boolean",
                        "description": "true to offer Usage Billing, false to turn it off"
                    }
                },
                "required": [
                    "enabled"
                ],
                "description": "Turn Usage Billing on or off"
            },
            "Api_V1_Entities_PayPerUseSize": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "The size code, what to send as size, e.g. hobby-1c-2g; also the code of the resource plan of this CPU and RAM where there is one"
                    },
                    "tier": {
                        "type": "string",
                        "enum": [
                            "hobby",
                            "pro"
                        ],
                        "description": "The CPU class: 'hobby' (shared) or 'pro' (dedicated)"
                    },
                    "free": {
                        "type": "boolean",
                        "description": "The free size, at no charge, with one replica, no backups and no public ports: apps share the account's monthly free hours; one PostgreSQL and one Valkey service per account"
                    },
                    "cpu": {
                        "type": "number",
                        "format": "float",
                        "description": "CPU cores per replica or instance"
                    },
                    "ram_mb": {
                        "type": "integer",
                        "format": "int32",
                        "description": "RAM in MiB per replica or instance"
                    },
                    "hourly_in_cents": {
                        "type": "number",
                        "format": "float",
                        "description": "What one replica or instance costs an hour it runs, in cents; null on an enterprise contract"
                    },
                    "monthly_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "What one replica or instance costs running all month, in cents; null on an enterprise contract"
                    }
                },
                "required": [
                    "id",
                    "tier",
                    "free",
                    "cpu",
                    "ram_mb",
                    "hourly_in_cents",
                    "monthly_in_cents"
                ],
                "description": "Api_V1_Entities_PayPerUseSize model"
            },
            "Api_V1_Entities_WorkspaceLimit": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string",
                        "description": "replicas_per_process, mounts_per_volume, databases_per_workspace, buckets_per_workspace, charge_threshold, cron_minutes_per_resource, hobby_process_cpu, hobby_process_ram, pro_process_cpu, pro_process_ram or volume_size"
                    },
                    "name": {
                        "type": "string",
                        "description": "What the Limits page calls it"
                    },
                    "description": {
                        "type": "string",
                        "description": "What it limits and where it applies"
                    },
                    "value": {
                        "type": "number",
                        "format": "float",
                        "description": "The limit in its unit, or null when there is none (charge_threshold once usage is charged with the renewal alone; cron_minutes_per_resource on an enterprise contract without a limit, which is unlimited)"
                    },
                    "unit": {
                        "type": "string",
                        "description": "replicas, mounts, databases, buckets, cents, minutes, cores or bytes"
                    },
                    "usage": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The most the workspace uses of it now: the highest replica count, or autoscaling maximum while it autoscales, of any process the limit holds (on Usage Billing or scaling beyond its resource's plan); the most mounts of any shared storage; its databases and its buckets; the most cron minutes any resource has used this cycle. Null for a limit that is not used up"
                    },
                    "adjustable": {
                        "type": "boolean",
                        "description": "Whether an increase can be requested with POST /workspace/limits/increase_requests"
                    },
                    "increase_requested": {
                        "type": "boolean",
                        "description": "Whether a request to raise it is waiting for review"
                    }
                },
                "required": [
                    "key",
                    "name",
                    "description",
                    "value",
                    "unit",
                    "usage",
                    "adjustable",
                    "increase_requested"
                ],
                "description": "Api_V1_Entities_WorkspaceLimit model"
            },
            "requestWorkspaceLimitIncrease": {
                "type": "object",
                "properties": {
                    "limit": {
                        "type": "string",
                        "description": "The key of the limit to raise",
                        "enum": [
                            "replicas_per_process",
                            "mounts_per_volume",
                            "databases_per_workspace",
                            "buckets_per_workspace",
                            "charge_threshold"
                        ]
                    },
                    "requested_value": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The value asked for, in the limit's unit: replicas, mounts, databases, buckets or cents"
                    },
                    "reason": {
                        "type": "string",
                        "description": "What it is needed for, at most 2000 characters"
                    }
                },
                "required": [
                    "limit",
                    "requested_value",
                    "reason"
                ],
                "description": "Ask for a limit to be raised"
            },
            "Api_V1_Entities_WorkspaceLimitIncreaseRequest": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Request ID"
                    },
                    "limit": {
                        "type": "string",
                        "description": "The limit's key"
                    },
                    "current_value": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The limit when the request was made, in its unit"
                    },
                    "requested_value": {
                        "type": "integer",
                        "format": "int32",
                        "description": "What was asked for, in the limit's unit"
                    },
                    "reason": {
                        "type": "string",
                        "description": "What it is needed for"
                    },
                    "status": {
                        "type": "string",
                        "description": "pending, approved or rejected"
                    },
                    "approved_value": {
                        "type": "integer",
                        "format": "int32",
                        "description": "What it was raised to, which may differ from requested_value; null until approved"
                    },
                    "rejection_note": {
                        "type": "string",
                        "description": "Why it was declined; null unless rejected"
                    },
                    "created_at": {
                        "type": "string",
                        "description": "ISO8601 time the request was made"
                    },
                    "reviewed_at": {
                        "type": "string",
                        "description": "ISO8601 time it was approved or declined"
                    }
                },
                "required": [
                    "id",
                    "limit",
                    "current_value",
                    "requested_value",
                    "reason",
                    "status",
                    "approved_value",
                    "rejection_note",
                    "created_at",
                    "reviewed_at"
                ],
                "description": "Api_V1_Entities_WorkspaceLimitIncreaseRequest model"
            },
            "Api_V1_Entities_WorkspaceCredits": {
                "type": "object",
                "properties": {
                    "balance_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "The workspace's credits, in cents. They go on its purchases and renewals, and pay for Usage Billing beyond its monthly minimum before the card does"
                    },
                    "balance_formatted": {
                        "type": "string",
                        "description": "The balance formatted, e.g. $25.00"
                    },
                    "expiring_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "What of the balance expires next, in cents, or null when nothing does"
                    },
                    "expires_at": {
                        "type": "string",
                        "description": "ISO8601 time expiring_in_cents expires, or null"
                    },
                    "operations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Api_V1_Entities_CreditOperation"
                        },
                        "description": "The 50 newest operations, newest first"
                    }
                },
                "required": [
                    "balance_in_cents",
                    "balance_formatted",
                    "expiring_in_cents",
                    "expires_at",
                    "operations"
                ],
                "description": "Api_V1_Entities_WorkspaceCredits model"
            },
            "Api_V1_Entities_CreditOperation": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Operation ID"
                    },
                    "amount_in_cents": {
                        "type": "integer",
                        "format": "int32",
                        "description": "Positive for credits received, negative for credits spent or taken back"
                    },
                    "operation_type": {
                        "type": "string",
                        "description": "transferred_in (a member transferred theirs), granted (from Lyngbak, a program's or another), adjustment (a correction by Lyngbak), deducted (applied to a payment), spent_on_usage (what Usage Billing took, one per billing period, growing as its usage is billed) or expired (what was left of a grant on its expiry date)"
                    },
                    "description": {
                        "type": "string",
                        "description": "What it was for"
                    },
                    "program": {
                        "type": "string",
                        "description": "The program a grant came from, or null"
                    },
                    "expires_at": {
                        "type": "string",
                        "description": "ISO8601 time a grant expires, or null"
                    },
                    "created_at": {
                        "type": "string",
                        "description": "ISO8601 time it was written"
                    }
                },
                "required": [
                    "id",
                    "amount_in_cents",
                    "operation_type",
                    "description",
                    "program",
                    "expires_at",
                    "created_at"
                ]
            },
            "Api_V1_Entities_Workspace": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "Workspace UUID, the value to send as X-Workspace-Id"
                    },
                    "name": {
                        "type": "string",
                        "description": "Workspace display name"
                    },
                    "role": {
                        "type": "string",
                        "description": "Name of the caller's role in the workspace (admin for the owner); null for a workspace-scoped token"
                    },
                    "default": {
                        "type": "boolean",
                        "description": "Whether this is the workspace currently selected in the dashboard; always false for a workspace-scoped token"
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "role",
                    "default"
                ],
                "description": "Api_V1_Entities_Workspace model"
            }
        }
    }
}