{
  "openapi": "3.0.0",
  "info": {
    "title": "Davetiya API",
    "version": "2.0.0",
    "description": "Davetiya etkinlik yonetim API. Tum /api/* uclari API key (Authorization: Bearer dvt_live_...) veya dashboard oturumu ile calisir. API key scope formati: kaynak:read | kaynak:write | notifications:send | * (tumu).",
    "contact": {
      "name": "Davetiya",
      "url": "https://davetiya.com"
    }
  },
  "servers": [
    {
      "url": "https://davetiya.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "dvt_live_...",
        "description": "Dashboard > Gelistirici > API Anahtarlari"
      }
    },
    "schemas": {
      "Event": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenant_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "completed",
              "cancelled"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Guest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "event_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "phone": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "confirmed",
              "declined",
              "attended"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Payment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "event_id": {
            "type": "string",
            "format": "uuid"
          },
          "amount": {
            "type": "number",
            "format": "decimal"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "completed",
              "failed",
              "refunded"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PaginatedResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer"
              },
              "limit": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              },
              "totalPages": {
                "type": "integer"
              }
            }
          }
        }
      }
    }
  },
  "paths": {
    "/api/accounting/e-sign": {
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "POST /api/accounting/e-sign",
        "x-scope": "payments:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/accounting/invoice": {
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "POST /api/accounting/invoice",
        "x-scope": "payments:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/ai/enhance": {
      "post": {
        "tags": [
          "media"
        ],
        "summary": "POST /api/ai/enhance",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/ai/face-detect": {
      "post": {
        "tags": [
          "media"
        ],
        "summary": "POST /api/ai/face-detect",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/ai/face-match": {
      "post": {
        "tags": [
          "media"
        ],
        "summary": "POST /api/ai/face-match",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/ai/process-album": {
      "post": {
        "tags": [
          "media"
        ],
        "summary": "POST /api/ai/process-album",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/branches/{branchId}/reports": {
      "get": {
        "tags": [
          "venues"
        ],
        "summary": "GET /api/branches/{branchId}/reports",
        "x-scope": "venues:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "branchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/branches/{branchId}": {
      "get": {
        "tags": [
          "venues"
        ],
        "summary": "GET /api/branches/{branchId}",
        "x-scope": "venues:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "branchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "venues"
        ],
        "summary": "PUT /api/branches/{branchId}",
        "x-scope": "venues:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "branchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "venues"
        ],
        "summary": "DELETE /api/branches/{branchId}",
        "x-scope": "venues:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "branchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/branches/{branchId}/staff": {
      "get": {
        "tags": [
          "venues"
        ],
        "summary": "GET /api/branches/{branchId}/staff",
        "x-scope": "venues:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "branchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "venues"
        ],
        "summary": "POST /api/branches/{branchId}/staff",
        "x-scope": "venues:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "branchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/branches/dashboard": {
      "get": {
        "tags": [
          "venues"
        ],
        "summary": "GET /api/branches/dashboard",
        "x-scope": "venues:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      }
    },
    "/api/branches": {
      "get": {
        "tags": [
          "venues"
        ],
        "summary": "GET /api/branches",
        "x-scope": "venues:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "venues"
        ],
        "summary": "POST /api/branches",
        "x-scope": "venues:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/checkin": {
      "get": {
        "tags": [
          "checkin"
        ],
        "summary": "GET /api/checkin",
        "x-scope": "checkin:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "checkin"
        ],
        "summary": "POST /api/checkin",
        "x-scope": "checkin:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/checkin/scan": {
      "post": {
        "tags": [
          "checkin"
        ],
        "summary": "QR ile giris kaydi (checkin.completed webhook)",
        "x-scope": "checkin:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/checkin/stats": {
      "get": {
        "tags": [
          "checkin"
        ],
        "summary": "GET /api/checkin/stats",
        "x-scope": "checkin:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      }
    },
    "/api/contracts/{id}": {
      "get": {
        "tags": [
          "contracts"
        ],
        "summary": "GET /api/contracts/{id}",
        "x-scope": "contracts:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "contracts"
        ],
        "summary": "PUT /api/contracts/{id}",
        "x-scope": "contracts:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "contracts"
        ],
        "summary": "DELETE /api/contracts/{id}",
        "x-scope": "contracts:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/contracts/{id}/upload": {
      "post": {
        "tags": [
          "contracts"
        ],
        "summary": "Imzali sozlesme dosyasi yukle",
        "x-scope": "contracts:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "contracts"
        ],
        "summary": "Dosyayi kaldir",
        "x-scope": "contracts:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/contracts": {
      "get": {
        "tags": [
          "contracts"
        ],
        "summary": "Sozlesmeler",
        "x-scope": "contracts:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "contracts"
        ],
        "summary": "Sablondan sozlesme olustur",
        "x-scope": "contracts:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/contracts/templates/{id}": {
      "put": {
        "tags": [
          "contracts"
        ],
        "summary": "PUT /api/contracts/templates/{id}",
        "x-scope": "contracts:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "contracts"
        ],
        "summary": "DELETE /api/contracts/templates/{id}",
        "x-scope": "contracts:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/contracts/templates": {
      "get": {
        "tags": [
          "contracts"
        ],
        "summary": "GET /api/contracts/templates",
        "x-scope": "contracts:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "contracts"
        ],
        "summary": "POST /api/contracts/templates",
        "x-scope": "contracts:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/customers/{id}": {
      "get": {
        "tags": [
          "customers"
        ],
        "summary": "GET /api/customers/{id}",
        "x-scope": "customers:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "customers"
        ],
        "summary": "PUT /api/customers/{id}",
        "x-scope": "customers:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "customers"
        ],
        "summary": "DELETE /api/customers/{id}",
        "x-scope": "customers:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/customers": {
      "get": {
        "tags": [
          "customers"
        ],
        "summary": "Musteriler (?q= arama)",
        "x-scope": "customers:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "customers"
        ],
        "summary": "Musteri olustur",
        "x-scope": "customers:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/events/{id}/installments": {
      "get": {
        "tags": [
          "events"
        ],
        "summary": "Taksit plani",
        "x-scope": "events:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "events"
        ],
        "summary": "Taksit plani olustur",
        "x-scope": "events:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/events/{id}": {
      "get": {
        "tags": [
          "events"
        ],
        "summary": "Etkinlik detayi",
        "x-scope": "events:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "events"
        ],
        "summary": "Guncelle (status=cancelled -> event.cancelled webhook)",
        "x-scope": "events:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "events"
        ],
        "summary": "Sil (owner/admin/manager)",
        "x-scope": "events:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/events/availability": {
      "get": {
        "tags": [
          "events"
        ],
        "summary": "Musaitlik: ?from=YYYY-MM-DD&to=&venue_id=&slot=HH:MM-HH:MM -> {days:[{date,available,events[]}]}",
        "x-scope": "events:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      }
    },
    "/api/events": {
      "get": {
        "tags": [
          "events"
        ],
        "summary": "Etkinlikleri listele (?from&to&venue_id&status)",
        "x-scope": "events:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "events"
        ],
        "summary": "Rezervasyon/etkinlik olustur (title,event_type,customer_id,venue_id,event_date,start_time,end_time,guest_count,budget)",
        "x-scope": "events:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/gallery/albums/{albumId}/files": {
      "get": {
        "tags": [
          "media"
        ],
        "summary": "GET /api/gallery/albums/{albumId}/files",
        "x-scope": "media:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "albumId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "media"
        ],
        "summary": "POST /api/gallery/albums/{albumId}/files",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "albumId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/gallery/albums/{albumId}": {
      "get": {
        "tags": [
          "media"
        ],
        "summary": "GET /api/gallery/albums/{albumId}",
        "x-scope": "media:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "albumId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "media"
        ],
        "summary": "PUT /api/gallery/albums/{albumId}",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "albumId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "media"
        ],
        "summary": "DELETE /api/gallery/albums/{albumId}",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "albumId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/gallery/albums": {
      "get": {
        "tags": [
          "media"
        ],
        "summary": "GET /api/gallery/albums",
        "x-scope": "media:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "media"
        ],
        "summary": "POST /api/gallery/albums",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/gallery/files/{fileId}": {
      "get": {
        "tags": [
          "media"
        ],
        "summary": "GET /api/gallery/files/{fileId}",
        "x-scope": "media:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "media"
        ],
        "summary": "PUT /api/gallery/files/{fileId}",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "media"
        ],
        "summary": "DELETE /api/gallery/files/{fileId}",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/gallery/upload-url": {
      "post": {
        "tags": [
          "media"
        ],
        "summary": "POST /api/gallery/upload-url",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/guests/{guestId}/invite": {
      "post": {
        "tags": [
          "guests"
        ],
        "summary": "POST /api/guests/{guestId}/invite",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "guestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/guests/{guestId}": {
      "get": {
        "tags": [
          "guests"
        ],
        "summary": "GET /api/guests/{guestId}",
        "x-scope": "guests:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "guestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "guests"
        ],
        "summary": "PUT /api/guests/{guestId}",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "guestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "guests"
        ],
        "summary": "DELETE /api/guests/{guestId}",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "guestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/guests/bulk-invite": {
      "post": {
        "tags": [
          "guests"
        ],
        "summary": "Toplu LCV daveti gonder (SMS/WA)",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/guests/import": {
      "post": {
        "tags": [
          "guests"
        ],
        "summary": "CSV/Excel toplu davetli",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/guests": {
      "get": {
        "tags": [
          "guests"
        ],
        "summary": "Davetliler (?event_id)",
        "x-scope": "guests:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "guests"
        ],
        "summary": "Davetli ekle",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/livestream/{streamId}": {
      "get": {
        "tags": [
          "media"
        ],
        "summary": "GET /api/livestream/{streamId}",
        "x-scope": "media:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "streamId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "media"
        ],
        "summary": "PUT /api/livestream/{streamId}",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "streamId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "media"
        ],
        "summary": "DELETE /api/livestream/{streamId}",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "streamId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/livestream": {
      "get": {
        "tags": [
          "media"
        ],
        "summary": "GET /api/livestream",
        "x-scope": "media:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "media"
        ],
        "summary": "POST /api/livestream",
        "x-scope": "media:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/notifications/{id}": {
      "put": {
        "tags": [
          "notifications"
        ],
        "summary": "PUT /api/notifications/{id}",
        "x-scope": "notifications:send",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "notifications"
        ],
        "summary": "DELETE /api/notifications/{id}",
        "x-scope": "notifications:send",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/notifications/preferences": {
      "get": {
        "tags": [
          "notifications"
        ],
        "summary": "GET /api/notifications/preferences",
        "x-scope": "notifications:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "put": {
        "tags": [
          "notifications"
        ],
        "summary": "PUT /api/notifications/preferences",
        "x-scope": "notifications:send",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/notifications": {
      "get": {
        "tags": [
          "notifications"
        ],
        "summary": "GET /api/notifications",
        "x-scope": "notifications:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "notifications"
        ],
        "summary": "POST /api/notifications",
        "x-scope": "notifications:send",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/notifications/send": {
      "post": {
        "tags": [
          "notifications"
        ],
        "summary": "SMS/WhatsApp gonder (scope: notifications:send)",
        "x-scope": "notifications:send",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/notifications/triggers": {
      "post": {
        "tags": [
          "notifications"
        ],
        "summary": "POST /api/notifications/triggers",
        "x-scope": "notifications:send",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/payments/{id}": {
      "put": {
        "tags": [
          "payments"
        ],
        "summary": "PUT /api/payments/{id}",
        "x-scope": "payments:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "payments"
        ],
        "summary": "DELETE /api/payments/{id}",
        "x-scope": "payments:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/payments": {
      "get": {
        "tags": [
          "payments"
        ],
        "summary": "Odemeler (?event_id)",
        "x-scope": "payments:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "Odeme kaydi (payment.received webhook)",
        "x-scope": "payments:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/payments/summary": {
      "get": {
        "tags": [
          "payments"
        ],
        "summary": "Tahsilat ozeti",
        "x-scope": "payments:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      }
    },
    "/api/reports/compare": {
      "get": {
        "tags": [
          "reports"
        ],
        "summary": "GET /api/reports/compare",
        "x-scope": "reports:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      }
    },
    "/api/reports/dashboard": {
      "get": {
        "tags": [
          "reports"
        ],
        "summary": "GET /api/reports/dashboard",
        "x-scope": "reports:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      }
    },
    "/api/reports/download": {
      "post": {
        "tags": [
          "reports"
        ],
        "summary": "POST /api/reports/download",
        "x-scope": "reports:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/reports/export": {
      "post": {
        "tags": [
          "reports"
        ],
        "summary": "POST /api/reports/export",
        "x-scope": "reports:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/reports": {
      "get": {
        "tags": [
          "reports"
        ],
        "summary": "Raporlar (?type=&from=&to=)",
        "x-scope": "reports:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      }
    },
    "/api/seating/assignments": {
      "get": {
        "tags": [
          "seating"
        ],
        "summary": "GET /api/seating/assignments",
        "x-scope": "guests:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "seating"
        ],
        "summary": "POST /api/seating/assignments",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "seating"
        ],
        "summary": "DELETE /api/seating/assignments",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      }
    },
    "/api/seating/layout": {
      "put": {
        "tags": [
          "seating"
        ],
        "summary": "PUT /api/seating/layout",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/seating/tables/{tableId}": {
      "get": {
        "tags": [
          "seating"
        ],
        "summary": "GET /api/seating/tables/{tableId}",
        "x-scope": "guests:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "tableId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "seating"
        ],
        "summary": "PUT /api/seating/tables/{tableId}",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "tableId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "seating"
        ],
        "summary": "DELETE /api/seating/tables/{tableId}",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "tableId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/seating/tables": {
      "get": {
        "tags": [
          "seating"
        ],
        "summary": "GET /api/seating/tables",
        "x-scope": "guests:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "seating"
        ],
        "summary": "POST /api/seating/tables",
        "x-scope": "guests:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/settings/branding": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "GET /api/settings/branding",
        "x-scope": "settings:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "PUT /api/settings/branding",
        "x-scope": "settings:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/settings/domain": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "GET /api/settings/domain",
        "x-scope": "settings:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/domain",
        "x-scope": "settings:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "settings"
        ],
        "summary": "DELETE /api/settings/domain",
        "x-scope": "settings:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      }
    },
    "/api/settings/domain/verify": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/domain/verify",
        "x-scope": "settings:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tasks/{taskId}": {
      "get": {
        "tags": [
          "tasks"
        ],
        "summary": "GET /api/tasks/{taskId}",
        "x-scope": "tasks:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "tasks"
        ],
        "summary": "PUT /api/tasks/{taskId}",
        "x-scope": "tasks:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "tasks"
        ],
        "summary": "DELETE /api/tasks/{taskId}",
        "x-scope": "tasks:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/tasks/{taskId}/toggle": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "POST /api/tasks/{taskId}/toggle",
        "x-scope": "tasks:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tasks/reorder": {
      "put": {
        "tags": [
          "tasks"
        ],
        "summary": "PUT /api/tasks/reorder",
        "x-scope": "tasks:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tasks": {
      "get": {
        "tags": [
          "tasks"
        ],
        "summary": "GET /api/tasks",
        "x-scope": "tasks:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "POST /api/tasks",
        "x-scope": "tasks:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/team/invite": {
      "post": {
        "tags": [
          "team"
        ],
        "summary": "POST /api/team/invite",
        "x-scope": "team:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/team": {
      "get": {
        "tags": [
          "team"
        ],
        "summary": "GET /api/team",
        "x-scope": "team:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      }
    },
    "/api/tenant": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "GET /api/tenant",
        "x-scope": "settings:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "PUT /api/tenant",
        "x-scope": "settings:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/vendors/{vendorId}/assignments": {
      "get": {
        "tags": [
          "vendors"
        ],
        "summary": "GET /api/vendors/{vendorId}/assignments",
        "x-scope": "vendors:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "vendorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "vendors"
        ],
        "summary": "POST /api/vendors/{vendorId}/assignments",
        "x-scope": "vendors:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "vendorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/vendors/{vendorId}": {
      "get": {
        "tags": [
          "vendors"
        ],
        "summary": "GET /api/vendors/{vendorId}",
        "x-scope": "vendors:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "vendorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "vendors"
        ],
        "summary": "PUT /api/vendors/{vendorId}",
        "x-scope": "vendors:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "vendorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "vendors"
        ],
        "summary": "DELETE /api/vendors/{vendorId}",
        "x-scope": "vendors:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "vendorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/vendors/assignments/{assignmentId}": {
      "get": {
        "tags": [
          "vendors"
        ],
        "summary": "GET /api/vendors/assignments/{assignmentId}",
        "x-scope": "vendors:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "assignmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "vendors"
        ],
        "summary": "PUT /api/vendors/assignments/{assignmentId}",
        "x-scope": "vendors:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "assignmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "vendors"
        ],
        "summary": "DELETE /api/vendors/assignments/{assignmentId}",
        "x-scope": "vendors:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "assignmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/vendors/assignments/{assignmentId}/tasks/{taskId}": {
      "put": {
        "tags": [
          "vendors"
        ],
        "summary": "PUT /api/vendors/assignments/{assignmentId}/tasks/{taskId}",
        "x-scope": "vendors:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "assignmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "vendors"
        ],
        "summary": "DELETE /api/vendors/assignments/{assignmentId}/tasks/{taskId}",
        "x-scope": "vendors:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "assignmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/vendors/assignments/{assignmentId}/tasks": {
      "get": {
        "tags": [
          "vendors"
        ],
        "summary": "GET /api/vendors/assignments/{assignmentId}/tasks",
        "x-scope": "vendors:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "assignmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "vendors"
        ],
        "summary": "POST /api/vendors/assignments/{assignmentId}/tasks",
        "x-scope": "vendors:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "assignmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/vendors": {
      "get": {
        "tags": [
          "vendors"
        ],
        "summary": "GET /api/vendors",
        "x-scope": "vendors:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "vendors"
        ],
        "summary": "POST /api/vendors",
        "x-scope": "vendors:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/venues/{id}": {
      "get": {
        "tags": [
          "venues"
        ],
        "summary": "GET /api/venues/{id}",
        "x-scope": "venues:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "venues"
        ],
        "summary": "PUT /api/venues/{id}",
        "x-scope": "venues:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "venues"
        ],
        "summary": "DELETE /api/venues/{id}",
        "x-scope": "venues:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/venues/{id}/sections/{sectionId}": {
      "put": {
        "tags": [
          "venues"
        ],
        "summary": "PUT /api/venues/{id}/sections/{sectionId}",
        "x-scope": "venues:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "venues"
        ],
        "summary": "DELETE /api/venues/{id}/sections/{sectionId}",
        "x-scope": "venues:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/venues/{id}/sections": {
      "post": {
        "tags": [
          "venues"
        ],
        "summary": "POST /api/venues/{id}/sections",
        "x-scope": "venues:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/venues": {
      "get": {
        "tags": [
          "venues"
        ],
        "summary": "GET /api/venues",
        "x-scope": "venues:read",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        }
      },
      "post": {
        "tags": [
          "venues"
        ],
        "summary": "POST /api/venues",
        "x-scope": "venues:write",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Yetkisiz / scope yetersiz"
          },
          "429": {
            "description": "Rate limit"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ],
  "tags": [
    {
      "name": "events"
    },
    {
      "name": "venues"
    },
    {
      "name": "customers"
    },
    {
      "name": "payments"
    },
    {
      "name": "contracts"
    },
    {
      "name": "guests"
    },
    {
      "name": "seating"
    },
    {
      "name": "checkin"
    },
    {
      "name": "tasks"
    },
    {
      "name": "vendors"
    },
    {
      "name": "reports"
    },
    {
      "name": "notifications"
    },
    {
      "name": "media"
    },
    {
      "name": "team"
    },
    {
      "name": "settings"
    },
    {
      "name": "webhooks"
    }
  ],
  "x-webhooks": {
    "events": [
      "event.created",
      "event.updated",
      "event.cancelled",
      "event.deleted",
      "payment.received",
      "payment.due",
      "guest.rsvp",
      "checkin.completed",
      "contract.signed"
    ],
    "signature": "X-Davetiya-Signature: HMAC-SHA256(secret, JSON body); ayrica X-Davetiya-Event, X-Davetiya-Timestamp",
    "payload": {
      "eventType": "string",
      "timestamp": "ISO8601",
      "data": "object"
    }
  }
}