{
  "openapi": "3.1.0",
  "info": {
    "title": "Pelli Public API",
    "version": "1.0.0",
    "summary": "Public, unauthenticated endpoints exposed by the Pelli marketing site.",
    "description": "Machine-readable description of the public endpoints served by https://pelli.io. This covers only the unauthenticated marketing-site API. The Pelli application API (client galleries, invoicing, bookings, print store) lives behind authentication at https://app.pelli.io and is not described here.",
    "contact": {
      "name": "Pelli",
      "url": "https://pelli.io"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://pelli.io/legal"
    }
  },
  "servers": [
    {
      "url": "https://pelli.io",
      "description": "Production"
    }
  ],
  "paths": {
    "/api/status": {
      "get": {
        "operationId": "getStatus",
        "summary": "Aggregated service status",
        "description": "Returns Pelli's current operational status, aggregated from the public status monitors. Always responds with HTTP 200; the operational state is carried in the `status` field. Cached for 30 seconds.",
        "tags": ["status"],
        "responses": {
          "200": {
            "description": "Current aggregated status.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["status"],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": ["operational", "degraded", "down"],
                      "description": "operational = all monitors up; degraded = partial outage; down = full outage."
                    },
                    "monitors": {
                      "type": "object",
                      "description": "Monitor counts. Omitted when the upstream status page is unreachable.",
                      "properties": {
                        "total": { "type": "integer", "minimum": 0 },
                        "up": { "type": "integer", "minimum": 0 },
                        "down": { "type": "integer", "minimum": 0 }
                      }
                    }
                  }
                },
                "examples": {
                  "operational": {
                    "summary": "All systems operational",
                    "value": { "status": "operational", "monitors": { "total": 8, "up": 8, "down": 0 } }
                  },
                  "degraded": {
                    "summary": "Partial outage",
                    "value": { "status": "degraded", "monitors": { "total": 8, "up": 6, "down": 2 } }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
