{
  "components": {
    "schemas": {
      "AccessRequest": {
        "properties": {
          "public": {
            "type": "boolean"
          }
        },
        "required": [
          "public"
        ],
        "type": "object"
      },
      "AddProjectRequest": {
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "AddServerRequest": {
        "properties": {
          "location": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "size": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "size"
        ],
        "type": "object"
      },
      "AppLogs": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "lines": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "runs": {
            "type": "string"
          }
        },
        "required": [
          "lines",
          "runs"
        ],
        "type": "object"
      },
      "AppView": {
        "properties": {
          "app": {
            "type": "string"
          },
          "approved_at": {
            "format": "date-time",
            "type": "string"
          },
          "approved_by": {
            "type": "string"
          },
          "ends_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "last_used_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "app",
          "approved_at",
          "approved_by",
          "ends_at",
          "id"
        ],
        "type": "object"
      },
      "AuditView": {
        "properties": {
          "action": {
            "type": "string"
          },
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "client": {
            "type": "string"
          },
          "command": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "duration_ms": {
            "type": "integer"
          },
          "ip": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          },
          "result": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "who": {
            "type": "string"
          }
        },
        "required": [
          "action",
          "at",
          "channel",
          "duration_ms",
          "result",
          "target",
          "who"
        ],
        "type": "object"
      },
      "AutosaveRequest": {
        "properties": {
          "on": {
            "type": "boolean"
          }
        },
        "required": [
          "on"
        ],
        "type": "object"
      },
      "Changes": {
        "properties": {
          "added": {
            "type": "integer"
          },
          "database_files": {
            "type": "integer"
          },
          "deleted": {
            "type": "integer"
          },
          "files": {
            "items": {
              "$ref": "#/components/schemas/FileChange"
            },
            "type": "array"
          },
          "hidden": {
            "type": "integer"
          },
          "machine": {
            "type": "string"
          },
          "modified": {
            "type": "integer"
          },
          "more": {
            "type": "integer"
          },
          "renamed": {
            "type": "integer"
          },
          "since": {
            "type": "string"
          },
          "since_time": {
            "format": "date-time",
            "type": "string"
          },
          "until": {
            "type": "string"
          }
        },
        "required": [
          "added",
          "database_files",
          "deleted",
          "files",
          "machine",
          "modified",
          "renamed",
          "since",
          "since_time"
        ],
        "type": "object"
      },
      "CheckRequest": {
        "properties": {
          "command": {
            "type": "string"
          },
          "http": {
            "type": "string"
          },
          "interval_seconds": {
            "type": "integer"
          },
          "port": {
            "type": "integer"
          },
          "retries": {
            "type": "integer"
          },
          "start_period_seconds": {
            "type": "integer"
          },
          "timeout_seconds": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "CheckRun": {
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "passed": {
            "type": "boolean"
          }
        },
        "required": [
          "at",
          "passed"
        ],
        "type": "object"
      },
      "CommandResult": {
        "properties": {
          "exit_code": {
            "type": "integer"
          },
          "stderr": {
            "type": "string"
          },
          "stdout": {
            "type": "string"
          },
          "timed_out": {
            "type": "boolean"
          }
        },
        "required": [
          "exit_code",
          "stderr",
          "stdout"
        ],
        "type": "object"
      },
      "CopyRequest": {
        "properties": {
          "name": {
            "type": "string"
          },
          "project": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateMachineRequest": {
        "properties": {
          "autosave": {
            "type": "boolean"
          },
          "branch": {
            "type": "string"
          },
          "build": {
            "type": "string"
          },
          "build_memory": {
            "type": "string"
          },
          "cpu": {
            "type": "string"
          },
          "dir": {
            "type": "string"
          },
          "disk": {
            "type": "string"
          },
          "memory": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "os": {
            "type": "string"
          },
          "port": {
            "type": "integer"
          },
          "processes": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "public": {
            "type": "boolean"
          },
          "repo": {
            "type": "string"
          },
          "site": {
            "type": "boolean"
          },
          "template": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "ExecRequest": {
        "properties": {
          "command": {
            "type": "string"
          }
        },
        "required": [
          "command"
        ],
        "type": "object"
      },
      "FailingCheckView": {
        "properties": {
          "detail": {
            "type": "string"
          },
          "failing_since": {
            "format": "date-time",
            "type": "string"
          },
          "machine": {
            "type": "string"
          },
          "not_checked_since": {
            "format": "date-time",
            "type": "string"
          },
          "org": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "server": {
            "type": "string"
          }
        },
        "required": [
          "detail",
          "machine",
          "project",
          "server"
        ],
        "type": "object"
      },
      "FileChange": {
        "properties": {
          "change": {
            "type": "string"
          },
          "new_path": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "change",
          "path"
        ],
        "type": "object"
      },
      "FileDiff": {
        "properties": {
          "diff": {
            "type": "string"
          },
          "machine": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "since": {
            "type": "string"
          },
          "until": {
            "type": "string"
          }
        },
        "required": [
          "diff",
          "machine",
          "path",
          "since"
        ],
        "type": "object"
      },
      "InviteView": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "invited_by": {
            "type": "string"
          },
          "projects": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "role": {
            "type": "string"
          },
          "sent": {
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "email",
          "expires_at",
          "id",
          "role"
        ],
        "type": "object"
      },
      "KeptVersion": {
        "properties": {
          "disk_bytes": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "of": {
            "type": "string"
          },
          "project": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "of",
          "project"
        ],
        "type": "object"
      },
      "LimitsRequest": {
        "properties": {
          "cpu": {
            "type": "string"
          },
          "disk": {
            "type": "string"
          },
          "memory": {
            "type": "string"
          },
          "processes": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "LoadAverage": {
        "properties": {
          "fifteen": {
            "type": "number"
          },
          "five": {
            "type": "number"
          },
          "one": {
            "type": "number"
          }
        },
        "required": [
          "fifteen",
          "five",
          "one"
        ],
        "type": "object"
      },
      "Machine": {
        "properties": {
          "access": {
            "type": "string"
          },
          "app": {
            "$ref": "#/components/schemas/MachineApp"
          },
          "autosave": {
            "type": "boolean"
          },
          "check": {
            "$ref": "#/components/schemas/MachineCheck"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "hostname": {
            "type": "string"
          },
          "ipv4": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "limits": {
            "$ref": "#/components/schemas/MachineLimits"
          },
          "name": {
            "type": "string"
          },
          "os": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "temporary": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "hostname",
          "name",
          "project",
          "status",
          "url"
        ],
        "type": "object"
      },
      "MachineApp": {
        "properties": {
          "branch": {
            "type": "string"
          },
          "commit": {
            "type": "string"
          },
          "dir": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "runs": {
            "type": "string"
          }
        },
        "required": [
          "repo",
          "runs"
        ],
        "type": "object"
      },
      "MachineBackups": {
        "properties": {
          "backups": {
            "type": "integer"
          },
          "bytes": {
            "type": "integer"
          },
          "machine": {
            "type": "string"
          },
          "newest_at": {
            "format": "date-time",
            "type": "string"
          },
          "project": {
            "type": "string"
          }
        },
        "required": [
          "backups",
          "bytes",
          "machine",
          "project"
        ],
        "type": "object"
      },
      "MachineCheck": {
        "properties": {
          "command": {
            "type": "string"
          },
          "failing_since": {
            "format": "date-time",
            "type": "string"
          },
          "failures": {
            "type": "integer"
          },
          "http": {
            "type": "string"
          },
          "interval_seconds": {
            "type": "integer"
          },
          "last": {
            "$ref": "#/components/schemas/CheckRun"
          },
          "machine": {
            "type": "string"
          },
          "not_checked_since": {
            "format": "date-time",
            "type": "string"
          },
          "port": {
            "type": "integer"
          },
          "retries": {
            "type": "integer"
          },
          "start_period_seconds": {
            "type": "integer"
          },
          "stopped": {
            "type": "boolean"
          },
          "timeout_seconds": {
            "type": "integer"
          }
        },
        "required": [
          "command",
          "failures",
          "interval_seconds",
          "machine",
          "retries",
          "start_period_seconds",
          "timeout_seconds"
        ],
        "type": "object"
      },
      "MachineLimits": {
        "properties": {
          "cpus": {
            "type": "number"
          },
          "disk_bytes": {
            "type": "integer"
          },
          "disk_pending": {
            "type": "boolean"
          },
          "memory_bytes": {
            "type": "integer"
          },
          "processes": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "MachineUsage": {
        "properties": {
          "cpu_percent": {
            "type": "number"
          },
          "disk_bytes": {
            "type": "integer"
          },
          "load": {
            "$ref": "#/components/schemas/LoadAverage"
          },
          "memory_bytes": {
            "type": "integer"
          },
          "memory_kills": {
            "$ref": "#/components/schemas/MemoryKills"
          },
          "name": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "temporary": {
            "type": "string"
          }
        },
        "required": [
          "cpu_percent",
          "disk_bytes",
          "memory_bytes",
          "name",
          "project",
          "status"
        ],
        "type": "object"
      },
      "Me": {
        "properties": {
          "failing_checks": {
            "items": {
              "$ref": "#/components/schemas/FailingCheckView"
            },
            "type": "array"
          },
          "org": {
            "type": "string"
          },
          "plan": {
            "type": "string"
          },
          "projects": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "role": {
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "user": {
            "type": "string"
          }
        },
        "required": [
          "org",
          "plan",
          "role",
          "user"
        ],
        "type": "object"
      },
      "MemberView": {
        "properties": {
          "disabled": {
            "type": "boolean"
          },
          "email": {
            "type": "string"
          },
          "github_login": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "member_since": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "projects": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "role": {
            "type": "string"
          },
          "you": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "member_since",
          "role"
        ],
        "type": "object"
      },
      "MembersView": {
        "properties": {
          "invites": {
            "items": {
              "$ref": "#/components/schemas/InviteView"
            },
            "type": "array"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/MemberView"
            },
            "type": "array"
          }
        },
        "required": [
          "invites",
          "members"
        ],
        "type": "object"
      },
      "MemoryKills": {
        "properties": {
          "count": {
            "type": "integer"
          },
          "last": {
            "format": "date-time",
            "type": "string"
          },
          "stopped": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "count"
        ],
        "type": "object"
      },
      "Operation": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "error_code": {
            "type": "string"
          },
          "finished_at": {
            "format": "date-time",
            "type": "string"
          },
          "has_secret": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "result": {
            "description": "any JSON value"
          },
          "status": {
            "type": "string"
          },
          "step": {
            "type": "string"
          },
          "target": {
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "id",
          "kind",
          "status",
          "target"
        ],
        "type": "object"
      },
      "PortRequest": {
        "properties": {
          "port": {
            "type": "integer"
          }
        },
        "required": [
          "port"
        ],
        "type": "object"
      },
      "Problem": {
        "properties": {
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "detail",
          "status",
          "title",
          "type"
        ],
        "type": "object"
      },
      "ProjectList": {
        "properties": {
          "limit": {
            "type": "integer"
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/ProjectView"
            },
            "type": "array"
          },
          "server": {
            "type": "string"
          }
        },
        "required": [
          "projects",
          "server"
        ],
        "type": "object"
      },
      "ProjectView": {
        "properties": {
          "machines": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "required": [
          "machines",
          "name",
          "state"
        ],
        "type": "object"
      },
      "Removed": {
        "properties": {
          "removed": {
            "type": "string"
          }
        },
        "required": [
          "removed"
        ],
        "type": "object"
      },
      "RenameRequest": {
        "properties": {
          "keep_hostname": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "RequestEntry": {
        "properties": {
          "bytes": {
            "type": "integer"
          },
          "duration_ms": {
            "type": "number"
          },
          "method": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "time": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "bytes",
          "duration_ms",
          "method",
          "path",
          "status",
          "time"
        ],
        "type": "object"
      },
      "ResizeServerRequest": {
        "properties": {
          "size": {
            "type": "string"
          }
        },
        "required": [
          "size"
        ],
        "type": "object"
      },
      "RestoreRequest": {
        "properties": {
          "no_check": {
            "type": "boolean"
          },
          "save": {
            "type": "string"
          }
        },
        "required": [
          "save"
        ],
        "type": "object"
      },
      "Revoked": {
        "properties": {
          "revoked": {
            "type": "string"
          }
        },
        "required": [
          "revoked"
        ],
        "type": "object"
      },
      "SSHKeyView": {
        "properties": {
          "added_at": {
            "format": "date-time",
            "type": "string"
          },
          "comment": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "last_used_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "added_at",
          "fingerprint",
          "type"
        ],
        "type": "object"
      },
      "Save": {
        "properties": {
          "auto": {
            "type": "boolean"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "holds_bytes": {
            "type": "integer"
          },
          "machine": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "off_site": {
            "type": "boolean"
          },
          "on_server_only": {
            "type": "boolean"
          },
          "only_off_site": {
            "type": "boolean"
          },
          "replaced": {
            "type": "string"
          },
          "restored_here": {
            "type": "boolean"
          },
          "warning": {
            "type": "string"
          }
        },
        "required": [
          "auto",
          "created_at",
          "machine",
          "name"
        ],
        "type": "object"
      },
      "SaveRequest": {
        "properties": {
          "name": {
            "type": "string"
          },
          "replace_oldest": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "Secret": {
        "properties": {
          "secret": {
            "type": "string"
          }
        },
        "required": [
          "secret"
        ],
        "type": "object"
      },
      "ServerView": {
        "properties": {
          "certificate": {
            "type": "string"
          },
          "ipv4": {
            "type": "string"
          },
          "ipv6": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "machine_limit": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "off_site": {
            "type": "string"
          },
          "problem": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "status"
        ],
        "type": "object"
      },
      "ShareLinkRequest": {
        "properties": {
          "days": {
            "type": "integer"
          },
          "note": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SiteAccess": {
        "properties": {
          "access": {
            "type": "string"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/SiteLink"
            },
            "type": "array"
          },
          "machine": {
            "type": "string"
          },
          "port": {
            "type": "integer"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "access",
          "links",
          "machine",
          "port",
          "url"
        ],
        "type": "object"
      },
      "SiteLink": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "expires_at",
          "id"
        ],
        "type": "object"
      },
      "SiteRequest": {
        "properties": {
          "on": {
            "type": "boolean"
          },
          "port": {
            "type": "integer"
          }
        },
        "required": [
          "on"
        ],
        "type": "object"
      },
      "Stats": {
        "properties": {
          "machine": {
            "type": "string"
          },
          "points": {
            "items": {
              "$ref": "#/components/schemas/StatsPoint"
            },
            "type": "array"
          },
          "project": {
            "type": "string"
          },
          "resolution": {
            "type": "string"
          },
          "server": {
            "type": "string"
          },
          "since": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "points",
          "resolution",
          "server",
          "since"
        ],
        "type": "object"
      },
      "StatsPoint": {
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "cpu_percent": {
            "type": "number"
          },
          "cpu_percent_max": {
            "type": "number"
          },
          "disk_bytes": {
            "type": "number"
          },
          "load1": {
            "type": "number"
          },
          "load1_max": {
            "type": "number"
          },
          "memory_bytes": {
            "type": "number"
          },
          "memory_bytes_max": {
            "type": "number"
          },
          "read_bytes_per_second": {
            "type": "number"
          },
          "write_bytes_per_second": {
            "type": "number"
          }
        },
        "required": [
          "at"
        ],
        "type": "object"
      },
      "TemplateView": {
        "properties": {
          "name": {
            "type": "string"
          },
          "problem": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "status"
        ],
        "type": "object"
      },
      "TokenView": {
        "properties": {
          "created_by": {
            "type": "integer"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_used_at": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "created_by",
          "expires_at",
          "name",
          "role"
        ],
        "type": "object"
      },
      "UpdateRequest": {
        "properties": {
          "build_memory": {
            "type": "string"
          },
          "rebuild": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "Usage": {
        "properties": {
          "cpus": {
            "type": "integer"
          },
          "disk_free": {
            "type": "string"
          },
          "disk_size": {
            "type": "string"
          },
          "disk_size_bytes": {
            "type": "integer"
          },
          "disk_used": {
            "type": "string"
          },
          "disk_used_bytes": {
            "type": "integer"
          },
          "images_bytes": {
            "type": "integer"
          },
          "kept": {
            "items": {
              "$ref": "#/components/schemas/KeptVersion"
            },
            "type": "array"
          },
          "load": {
            "$ref": "#/components/schemas/LoadAverage"
          },
          "machines": {
            "items": {
              "$ref": "#/components/schemas/MachineUsage"
            },
            "type": "array"
          },
          "memory_total_bytes": {
            "type": "integer"
          },
          "memory_used_bytes": {
            "type": "integer"
          }
        },
        "required": [
          "machines"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearer": {
        "description": "a personal API token (sat_...), created over SSH with: token add \u003cname\u003e",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Every site has history. The same actions as over SSH and MCP. Within /v1, changes are only additive.",
    "title": "satama API",
    "version": "1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/me": {
      "get": {
        "operationId": "get_me",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Who this token acts as, and the org's health checks that are failing or aren't being run"
      }
    },
    "/v1/me/ssh-keys": {
      "get": {
        "operationId": "get_me_ssh-keys",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SSHKeyView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "The SSH keys of the person this token acts for (add and remove them over SSH)"
      }
    },
    "/v1/me/ssh-keys/{key}": {
      "delete": {
        "operationId": "delete_me_ssh-keys",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SSHKeyView"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Remove one of your SSH keys: refused for API tokens and apps, so this answers 403; remove keys over SSH (ssh-key rm)"
      }
    },
    "/v1/operations/{id}": {
      "get": {
        "operationId": "get_operations",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "An operation; ?wait=N waits up to N seconds (at most 30) for it to finish"
      }
    },
    "/v1/operations/{id}/secret": {
      "post": {
        "operationId": "post_operations_secret",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Secret"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Take an operation's one-time secret (shown once, to whoever started it)"
      }
    },
    "/v1/orgs/{org}/audit": {
      "get": {
        "operationId": "get_orgs_audit",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "server",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machine",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "who",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuditView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "The audit log: who did what, when, and what happened (query: server, machine, who, since, limit). Owners and admins see everything; a member their own entries, and what was done in the projects they reach, without others' commands, addresses, tokens and apps"
      }
    },
    "/v1/orgs/{org}/invites": {
      "get": {
        "operationId": "get_orgs_invites",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/InviteView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "The invites that are waiting (never their codes)"
      }
    },
    "/v1/orgs/{org}/invites/{invite}": {
      "delete": {
        "operationId": "delete_orgs_invites",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "invite",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InviteView"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Withdraw an invite by its id: its code stops working (owners and admins)"
      }
    },
    "/v1/orgs/{org}/mcp": {
      "get": {
        "operationId": "get_orgs_mcp",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AppView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "The apps that can act in the org over MCP (a person approves one over SSH: mcp approve \u003ccode\u003e)"
      }
    },
    "/v1/orgs/{org}/mcp/{app}": {
      "delete": {
        "operationId": "delete_orgs_mcp",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppView"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "End an app's access at once, by its number (admins any app; members the ones they approved)"
      }
    },
    "/v1/orgs/{org}/members": {
      "get": {
        "operationId": "get_orgs_members",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembersView"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Who is in the org, with their roles and the projects they're held to, and the invites that are waiting (for a member held to projects, who can get into those). Inviting, changing roles and projects and removing people are done over SSH (member add, member projects, member role, member rm, org leave): a token can't change who is in an org"
      }
    },
    "/v1/orgs/{org}/operations": {
      "get": {
        "operationId": "get_orgs_operations",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Operation"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "The org's latest operations, newest first (?limit=N, at most 200; a member sees their own)"
      }
    },
    "/v1/orgs/{org}/servers": {
      "get": {
        "operationId": "get_orgs_servers",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ServerView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "List servers (for a member held to projects, those their projects are on, by name and status)"
      },
      "post": {
        "operationId": "post_orgs_servers",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddServerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Add a server of a size, on a node satama runs (an operation); the org's allowance says how many, of which sizes"
      }
    },
    "/v1/orgs/{org}/servers/{server}": {
      "delete": {
        "operationId": "delete_orgs_servers",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Delete a server with every site and save on it, for good (an operation)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/backups": {
      "get": {
        "operationId": "get_orgs_servers_backups",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MachineBackups"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "What is off-site for a server's machines: the newest backed-up save, how many backups and their size"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines": {
      "get": {
        "operationId": "get_orgs_servers_machines",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Machine"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "List a server's machines (?project=\u003cname\u003e for one project)"
      },
      "post": {
        "operationId": "post_orgs_servers_machines",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMachineRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Create a machine (an operation)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}": {
      "delete": {
        "operationId": "delete_orgs_servers_machines",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Delete a machine, its site and all its saves, for good (an operation)"
      },
      "get": {
        "operationId": "get_orgs_servers_machines",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Machine"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Get a machine"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/access": {
      "get": {
        "operationId": "get_orgs_servers_machines_access",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteAccess"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Who gets a machine's site: private (only browsers let in with a share link) or public, and its links without their secrets"
      },
      "post": {
        "operationId": "post_orgs_servers_machines_access",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccessRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteAccess"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Make a machine's site public ({\"public\": true}) or private ({\"public\": false}); a new site and every copy start private"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/access/links": {
      "post": {
        "operationId": "post_orgs_servers_machines_access_links",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareLinkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteLink"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "A share link into a machine's private site, for you or anyone you give it to, no account needed: reusable until it expires or is removed, and the browsers that used it get in until then. The link is a secret, returned once; tools can send its key (its last path segment) in a Satama-Key header"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/access/links/{link}": {
      "delete": {
        "operationId": "delete_orgs_servers_machines_access_links",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "link",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Removed"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Remove one of a site's links by its id: it stops working, and so does every browser that got in with it"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/autosave": {
      "post": {
        "operationId": "post_orgs_servers_machines_autosave",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutosaveRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Machine"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Turn a machine's automatic saves on or off. Off stops its hourly saves and, because they're made from those, its off-site backups; saves made by hand keep working, and the saves and backups it has stay and run out as they would have (owners and admins)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/changes": {
      "get": {
        "operationId": "get_orgs_servers_machines_changes",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "all",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changes"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "What changed in a machine's files since a save (query: since, until, all=1); the machine must be running"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/changes/file": {
      "get": {
        "operationId": "get_orgs_servers_machines_changes_file",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDiff"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "One file line by line, since a save (query: path, since, until); the machine must be running"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/check": {
      "delete": {
        "operationId": "delete_orgs_servers_machines_check",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Removed"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Take a machine's health check away"
      },
      "get": {
        "operationId": "get_orgs_servers_machines_check",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MachineCheck"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "A machine's health check and its last run, without running it (404 when it has none)"
      },
      "post": {
        "operationId": "post_orgs_servers_machines_check",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MachineCheck"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Give a machine a health check, or replace its check. One of: an HTTP request made from outside it, on its network, passing when it answers 200 to 399 ({\"http\": \"/health\"}, on its site's port or 80 unless \"port\" is given); a connection to a port ({\"port\": 6379}); or a command run in it as root with sh -c, passing when it exits 0, like Docker's HEALTHCHECK ({\"command\": \"mysqladmin ping\"}). With interval_seconds 30, timeout_seconds 10, retries 3 and start_period_seconds 0 unless given (a timeout with http or port is at most 10). It's run once first and kept only if it passes. Programs in the machine can see the command while it runs, so a password belongs in a file it reads"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/check/run": {
      "post": {
        "operationId": "post_orgs_servers_machines_check_run",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MachineCheck"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Run a machine's health check now; the answer says whether it passed and, if not, why"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/copy": {
      "post": {
        "operationId": "post_orgs_servers_machines_copy",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Copy a machine as it is now, while it keeps running (an operation); a WordPress site moves to its new address"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/exec": {
      "post": {
        "operationId": "post_orgs_servers_machines_exec",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommandResult"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Run a command in a machine as root, through its shell, and return its output (at most 50 seconds and 1 MiB per stream)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/limits": {
      "post": {
        "operationId": "post_orgs_servers_machines_limits",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LimitsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Machine"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Give a machine its own memory, CPU, disk or process limit within its server's, change one, or take it away (\"none\"); unset fields stay as they are (owners and admins)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/logs": {
      "get": {
        "operationId": "get_orgs_servers_machines_logs",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppLogs"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "What an app (made with repo) printed: its last lines, oldest first, and a cursor where they end; with after=\u003cthat cursor\u003e, only the lines that came since (query: limit, 1 to 1000, default 100; after)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/rename": {
      "post": {
        "operationId": "post_orgs_servers_machines_rename",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Rename a machine (an operation; a running machine restarts, and its web address stays)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/requests": {
      "get": {
        "operationId": "get_orgs_servers_machines_requests",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RequestEntry"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "A site's latest requests, newest first (query: since=1h, after=\u003cRFC 3339 time\u003e, status=5xx or 404, limit); visitors' addresses stay on the server"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/restart": {
      "post": {
        "operationId": "post_orgs_servers_machines_restart",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Restart a machine, by force after 30 seconds (an operation; a stopped machine is started)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/restore": {
      "post": {
        "operationId": "post_orgs_servers_machines_restore",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Restore a machine to a save (an operation)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/saves": {
      "get": {
        "operationId": "get_orgs_servers_machines_saves",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Save"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "A machine's history (saves, including from before restores)"
      },
      "post": {
        "operationId": "post_orgs_servers_machines_saves",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Save"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Save a machine now"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/saves/{save}": {
      "delete": {
        "operationId": "delete_orgs_servers_machines_saves",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "save",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Save"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Delete a save, for good (the newest of that name in the machine's history)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/site": {
      "post": {
        "operationId": "post_orgs_servers_machines_site",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SiteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Give a machine a web address ({\"on\": true}) or take it away ({\"on\": false}); a WordPress site keeps its address (an operation)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/site/port": {
      "post": {
        "operationId": "post_orgs_servers_machines_site_port",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PortRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteAccess"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Say which port of the machine its site's requests go to ({\"port\": 3000}): 80 unless set, for a web server; an app listening elsewhere needs its port named. Nothing in the machine is changed"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/start": {
      "post": {
        "operationId": "post_orgs_servers_machines_start",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Start a machine (an operation; a running machine stays as it is)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/stop": {
      "post": {
        "operationId": "post_orgs_servers_machines_stop",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Stop a machine, by force after 30 seconds (an operation; a stopped machine stays as it is)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/undo": {
      "post": {
        "operationId": "post_orgs_servers_machines_undo",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Undo a machine's latest restore or update (an operation; undoing again redoes it)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/machines/{machine}/update": {
      "post": {
        "operationId": "post_orgs_servers_machines_update",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "machine",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Build an app's new version from the newest commit of its branch and put it in the app's place (an operation; rebuild: true builds the same commit again)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/projects": {
      "get": {
        "operationId": "get_orgs_servers_projects",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectList"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "A server's client projects, their machines, and how many it may have (for a member held to projects, theirs alone)"
      },
      "post": {
        "operationId": "post_orgs_servers_projects",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddProjectRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectView"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Make an empty project on a server (owners and admins); otherwise the first machine in a project makes it"
      }
    },
    "/v1/orgs/{org}/servers/{server}/projects/{project}": {
      "delete": {
        "operationId": "delete_orgs_servers_projects",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectView"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Remove an empty project from a server, with its network (off its last server, the people held to it lose it)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/resize": {
      "post": {
        "operationId": "post_orgs_servers_resize",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "send the same key to retry safely: the first response is returned again",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResizeServerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Give a server another size (an operation)"
      }
    },
    "/v1/orgs/{org}/servers/{server}/stats": {
      "get": {
        "operationId": "get_orgs_servers_stats",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "machine",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stats"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "What a server (or ?machine=\u003cname\u003e, with ?project=\u003cname\u003e) used over time: ?since=2h, 24h (the default), 7d, up to 30d"
      }
    },
    "/v1/orgs/{org}/servers/{server}/templates": {
      "get": {
        "operationId": "get_orgs_servers_templates",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/TemplateView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "The templates for new machines, and their state on this server"
      }
    },
    "/v1/orgs/{org}/servers/{server}/usage": {
      "get": {
        "operationId": "get_orgs_servers_usage",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "server",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Usage"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "What a server and its machines are using right now (?project=\u003cname\u003e for one project)"
      }
    },
    "/v1/orgs/{org}/tokens": {
      "get": {
        "operationId": "get_orgs_tokens",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/TokenView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "List API tokens (create them over SSH); for a member held to projects, their own"
      }
    },
    "/v1/orgs/{org}/tokens/{name}": {
      "delete": {
        "operationId": "delete_orgs_tokens",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Revoked"
                }
              }
            },
            "description": "success"
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "an error, as a problem with a stable code"
          }
        },
        "summary": "Revoke an API token"
      }
    }
  },
  "security": [
    {
      "bearer": []
    }
  ],
  "servers": [
    {
      "url": "https://satama.dev"
    }
  ]
}
