{
  "openapi": "3.1.0",
  "info": {
    "title": "VÆZRA Developer API",
    "version": "1.0.1",
    "description": "Isolierte projektgebundene Developer API. Keys für developers.vaezra.eu gewähren keinen Zugriff auf das interne Office."
  },
  "servers": [
    {
      "url": "https://developers.vaezra.eu"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "vz_live_xxx"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/api/v1/status": {
      "get": {
        "summary": "Developer API Health",
        "description": "Scope status:read. API-Dienststatus, nicht globale Uptime.",
        "responses": {
          "200": {
            "description": "API verfügbar"
          },
          "401": {
            "description": "API-Key ungültig"
          },
          "403": {
            "description": "Scope fehlt"
          }
        }
      }
    },
    "/api/v1/events": {
      "get": {
        "summary": "Eigene Projekt-Events",
        "description": "Scope events:read; Ergebnisse nur für das Projekt des API-Keys.",
        "responses": {
          "200": {
            "description": "Projekt-Events"
          }
        }
      },
      "post": {
        "summary": "Projekt-Event veröffentlichen",
        "description": "Scope events:write; löst passende Webhooks aus.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "type",
                  "payload"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "example": "customer.created"
                  },
                  "subject": {
                    "type": "string",
                    "maxLength": 180
                  },
                  "payload": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Gespeichert"
          }
        }
      }
    }
  }
}
