{"openapi":"3.1.0","jsonSchemaDialect":"https://spec.openapis.org/oas/3.1/dialect/base","info":{"title":"Hotspotly Public API","version":"1.3.0","description":"Hotspotly Public REST API v1. Panelle aynı veri yolu: aynı servisler, aynı maskeleme, aynı\nk-eşiği. Paketinizde `api` modülü varsa dakikada 60 istek varsayılan olarak açılır (süper\nyönetici paket başına `apiRpm` ayarlayabilir; 0 = kapalı); anahtarı hesap sahibi panelde\n**Hesap → API anahtarları** ekranında üretir.\n\n# Kimlik doğrulama\n\n`Authorization: Bearer hsp_live_…` başlığı. Panel oturum token’ı kabul edilmez. Anahtar yalnız\noluşturulurken bir kez gösterilir; sunucuda yalnız HMAC özeti saklanır. IP listesi tanımlıysa\nliste dışı istemci `403 IP_NOT_ALLOWED`; süresi dolmuş / iptal edilmiş anahtar `401`.\n\n# Scope\n\nHer uç tek bir scope ister (`x-hotspotly-scope`); yoksa `403 SCOPE_DENIED`. Müşteri geneli\nscope’lar lokasyon kapsamlı anahtara verilmez. `guest_pii` varsayılan kapalıdır.\n\n| Scope | Tür | Modül | Müşteri geneli |\n| --- | --- | --- | --- |\n| `reports.read` | okuma | analytics | hayır |\n| `sessions.read` | okuma | — | hayır |\n| `sessions.disconnect` | yazma | — | hayır |\n| `hotspots.read` | okuma | — | hayır |\n| `devices.read` | okuma | — | hayır |\n| `guests.read` | okuma | — | hayır |\n| `guest_pii` | okuma | — | evet |\n| `consents.read` | okuma | — | evet |\n| `marketing.read` | okuma | marketing | hayır |\n| `vouchers.read` | okuma | vouchers | evet |\n| `vouchers.write` | yazma | vouchers | evet |\n| `coupons.redeem` | yazma | vouchers | evet |\n| `log5651.read` | okuma | log5651 | evet |\n| `log5651.export` | yazma | log5651 | evet |\n| `webhooks.manage` | yazma | api | evet |\n| `local_users.read` | okuma | — | hayır |\n| `local_users.write` | yazma | — | hayır |\n| `profiles.read` | okuma | — | hayır |\n| `profiles.assign` | yazma | — | hayır |\n| `occupancy.read` | okuma | — | hayır |\n\n# Hatalar\n\nHata gövdesi `{ error, code, details?, requestId }`. `code` makine okunurdur (ör.\n`VALIDATION_ERROR`, `INVALID_CURSOR`, `SCOPE_DENIED`, `NOT_FOUND`, `RATE_LIMITED`);\n`error` metni değişebilir, ona göre dallanmayın.\n\n# Hız sınırı\n\nAnahtar başına dakikalık `apiRpm` (paketinizde). Yanıtlarda `RateLimit-Limit`,\n`RateLimit-Remaining`, `RateLimit-Reset`; aşımda `429 RATE_LIMITED` + `Retry-After`.\n\n# Sayfalama\n\nListeler `{ data, nextCursor }` döner. `limit` 1–200 (varsayılan\n50); sonraki sayfa için `cursor=<nextCursor>`. İmleç opaktır ve yalnız\nüretildiği uçta geçerlidir (`400 INVALID_CURSOR`).\n\n# Idempotency\n\nYazma uçları isteğe bağlı `Idempotency-Key` başlığı alır (24 saat). Aynı anahtar + aynı istek\nsaklanan yanıtı `Idempotent-Replayed: true` ile döner; farklı istek `422\nIDEMPOTENCY_KEY_REUSED`, işlenen istek `409 IDEMPOTENCY_IN_PROGRESS`.\n\n# 5651 dışa aktarım\n\n`POST /log5651/exports` işi kuyruğa alır (`202`); `GET /log5651/exports/{id}` ile durum\n`completed` olunca `POST /log5651/exports/{id}/link` en çok 5 dakikalık, tek kullanımlık\nindirme adresi verir (Authorization gerekmez; her indirme 5651 erişim kaydına yazılır).\n\n# Deprecation\n\nKırıcı değişiklik (uç ya da alan silme, tip daraltma, yeni zorunlu alan) yalnız duyurudan en\naz 180 gün sonra yapılır. Kullanımdan kalkacak uç her yanıtta `Deprecation`\n(RFC 9745) ve `Sunset` (RFC 8594) başlıklarını taşır; alanlar bu belgede `deprecated` işaretlidir.\nYeni alan, yeni uç ve yanıtta yeni enum değeri kırıcı sayılmaz — istemciler bilinmeyen alan ve\ndeğerlere dayanıklı olmalıdır."},"servers":[{"url":"/api/public/v1"}],"security":[{"ApiKey":[]}],"tags":[{"name":"Hotspots"},{"name":"Raporlar"},{"name":"Oturumlar"},{"name":"Misafirler"},{"name":"Rızalar"},{"name":"Cihazlar"},{"name":"Voucher"},{"name":"5651"},{"name":"Webhooks"},{"name":"Yerel kullanıcılar"},{"name":"Hız profilleri"}],"paths":{"/hotspots":{"get":{"operationId":"hotspotsList","summary":"Hotspot listesi","tags":["Hotspots"],"x-hotspotly-scope":"hotspots.read","security":[{"ApiKey":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{1,4}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"deviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"locationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"isActive":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","deviceId","locationId","isActive","createdAt"],"additionalProperties":false}},"nextCursor":{"description":"Sonraki sayfa; null = son sayfa","type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/reports/visits":{"get":{"operationId":"reportsVisits","summary":"Ziyaret raporu","tags":["Raporlar"],"x-hotspotly-scope":"reports.read","security":[{"ApiKey":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["7","30","90"]}},{"name":"hotspotId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"window":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fromDay":{"type":"string","format":"date","description":"YYYY-AA-GG (Europe/Istanbul)"},"toDay":{"type":"string","format":"date","description":"YYYY-AA-GG (Europe/Istanbul)"}},"required":["days","fromDay","toDay"],"additionalProperties":false},"locationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"İstekteki hotspotId; null = tüm hesap"},"kThreshold":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"source":{"type":"string","description":"period (gece özeti) | live (anlık sayım)"},"visitors":{"type":"object","properties":{},"additionalProperties":{},"description":"Tekil / yeni / dönen / kimlikli ziyaretçi; k altı değer null + suppressed"},"activity":{"type":"object","properties":{},"additionalProperties":{},"description":"Ziyaret, oturum, trafik, kalış süresi (k altı gizli)"},"series":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{},"description":"Gün başına sayılar (k altı hücre gizli)"}},"heatmap":{"type":"array","items":{"type":"object","properties":{"weekday":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"value":{"type":["number","null"]},"suppressed":{"type":"boolean"}},"required":["weekday","hour","value","suppressed"],"additionalProperties":false}},"frequency":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{},"description":"Ziyaret sıklığı kovası"}},"methods":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{},"description":"Giriş yöntemi başına ziyaret / ziyaretçi"}}},"required":["window","locationId","kThreshold","source","visitors","activity","series","heatmap","frequency","methods"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/reports/visits/locations":{"get":{"operationId":"reportsVisitLocations","summary":"Şube kıyası","tags":["Raporlar"],"x-hotspotly-scope":"reports.read","security":[{"ApiKey":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["7","30","90"]}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"window":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fromDay":{"type":"string","format":"date","description":"YYYY-AA-GG (Europe/Istanbul)"},"toDay":{"type":"string","format":"date","description":"YYYY-AA-GG (Europe/Istanbul)"}},"required":["days","fromDay","toDay"],"additionalProperties":false},"kThreshold":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"source":{"type":"string"},"locations":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{},"description":"Hotspot (şube) başına sayılar; k altı satır suppressed"}},"regions":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{},"description":"Bölge (lokasyon ağacı) toplamları"}}},"required":["window","kThreshold","source","locations","regions"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/sessions/live":{"get":{"operationId":"sessionsLive","summary":"Canlı oturumlar","tags":["Oturumlar"],"x-hotspotly-scope":"sessions.read","security":[{"ApiKey":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{1,4}$"}},{"name":"hotspotId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Erişim oturumu kimliği (access_sessions; sayısal metin)"},"hotspotId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Log-only (DHCP) oturumda null"},"deviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"source":{"type":"string","description":"radacct_hotspot | radacct_dhcp | api_snapshot"},"macAddress":{"description":"Maskeli","type":["string","null"]},"ipAddress":{"type":["string","null"]},"startTime":{"type":"string","format":"date-time"},"lastUpdateAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"uploadBytes":{"type":"number"},"downloadBytes":{"type":"number"},"guest":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"username":{"description":"Maskeli","type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"authMethod":{"type":["string","null"]}},"required":["id","username","firstName","lastName","authMethod"],"additionalProperties":false},{"type":"null"}]}},"required":["id","hotspotId","deviceId","source","macAddress","ipAddress","startTime","lastUpdateAt","uploadBytes","downloadBytes","guest"],"additionalProperties":false}},"nextCursor":{"description":"Sonraki sayfa; null = son sayfa","type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/sessions/{id}/disconnect":{"post":{"operationId":"sessionsDisconnect","summary":"Oturumu sonlandır","tags":["Oturumlar"],"x-hotspotly-scope":"sessions.disconnect","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9]\\d{0,18}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","description":"disconnected | not_on_router"},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Router'dan düşürülen oturum sayısı"},"durationSeconds":{"type":["number","null"]}},"required":["id","status","removed","durationSeconds"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"502":{"$ref":"#/components/responses/E502"},"503":{"$ref":"#/components/responses/E503"}}}},"/guests":{"get":{"operationId":"guestsList","summary":"Misafirler (maskeli)","tags":["Misafirler"],"x-hotspotly-scope":"guests.read","security":[{"ApiKey":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{1,4}$"}},{"name":"hotspotId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"identityId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"username":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"description":"Maskeli","type":["string","null"]},"phone":{"description":"Maskeli","type":["string","null"]},"macAddress":{"description":"Maskeli","type":["string","null"]},"authMethod":{"type":["string","null"]},"groupTag":{"type":["string","null"]},"isActive":{"type":"boolean"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"piiMasked":{"type":"boolean","const":true}},"required":["id","hotspotId","identityId","username","firstName","lastName","email","phone","macAddress","authMethod","groupTag","isActive","expiryDate","createdAt","piiMasked"],"additionalProperties":false}},"nextCursor":{"description":"Sonraki sayfa; null = son sayfa","type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/guests/search":{"post":{"operationId":"guestsSearch","summary":"Misafir ara (maskeli)","tags":["Misafirler"],"x-hotspotly-scope":"guests.read","security":[{"ApiKey":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","minLength":3,"maxLength":100,"description":"Kullanıcı adı, ad ya da soyadında içerir; e-posta ya da telefonda (E.164 / yerel biçim) yalnız tam eşleşme"},"hotspotId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"limit":{"type":"integer","minimum":1,"maximum":200},"cursor":{"type":"string","maxLength":512}},"required":["q"],"additionalProperties":false}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"identityId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"username":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"description":"Maskeli","type":["string","null"]},"phone":{"description":"Maskeli","type":["string","null"]},"macAddress":{"description":"Maskeli","type":["string","null"]},"authMethod":{"type":["string","null"]},"groupTag":{"type":["string","null"]},"isActive":{"type":"boolean"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"piiMasked":{"type":"boolean","const":true}},"required":["id","hotspotId","identityId","username","firstName","lastName","email","phone","macAddress","authMethod","groupTag","isActive","expiryDate","createdAt","piiMasked"],"additionalProperties":false}},"nextCursor":{"description":"Sonraki sayfa; null = son sayfa","type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/guests/{id}":{"get":{"operationId":"guestsGet","summary":"Misafir (maskeli)","tags":["Misafirler"],"x-hotspotly-scope":"guests.read","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"identityId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"username":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"description":"Maskeli","type":["string","null"]},"phone":{"description":"Maskeli","type":["string","null"]},"macAddress":{"description":"Maskeli","type":["string","null"]},"authMethod":{"type":["string","null"]},"groupTag":{"type":["string","null"]},"isActive":{"type":"boolean"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"piiMasked":{"type":"boolean","const":true}},"required":["id","hotspotId","identityId","username","firstName","lastName","email","phone","macAddress","authMethod","groupTag","isActive","expiryDate","createdAt","piiMasked"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/guests/{id}/unmask":{"post":{"operationId":"guestsUnmask","summary":"Gerekçeli PII açma","tags":["Misafirler"],"x-hotspotly-scope":"guest_pii","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reasonCode":{"type":"string","enum":["guest_request","legal_request","support","security_incident","other"]},"reasonText":{"type":"string","minLength":10,"maxLength":500},"fields":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"string","enum":["phone","email","tcKimlikNo","pasaportNo","macAddress","username"]}}},"required":["reasonCode","reasonText"],"additionalProperties":false}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"values":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Açılan alan → düz değer"},"revealedFields":{"type":"array","items":{"type":"string"}}},"required":["id","values","revealedFields"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/consents":{"get":{"operationId":"consentsStates","summary":"Kimliğin rıza durumu","tags":["Rızalar"],"x-hotspotly-scope":"consents.read","security":[{"ApiKey":[]}],"parameters":[{"name":"identityId","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"identityId":{"type":"string","format":"uuid"},"states":{"type":"array","items":{"type":"object","properties":{"purposeCode":{"type":"string"},"state":{"type":"string","description":"none | granted | declined | withdrawn"},"active":{"type":"boolean"},"recordId":{"type":["string","null"]},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"channel":{"type":["string","null"]},"documentId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"documentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"contentHash":{"type":["string","null"]},"purposeVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["purposeCode","state","active","recordId","at","channel","documentId","documentVersion","contentHash","purposeVersion"],"additionalProperties":false}}},"required":["identityId","states"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/consents/events":{"get":{"operationId":"consentsEvents","summary":"Rıza değişiklikleri","tags":["Rızalar"],"x-hotspotly-scope":"consents.read","security":[{"ApiKey":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{1,4}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"identityId":{"type":"string","format":"uuid"},"purposeCode":{"type":"string"},"purposeVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"action":{"type":"string","description":"accept | decline | withdraw"},"accepted":{"type":"boolean"},"channel":{"type":["string","null"]},"hotspotId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"at":{"type":"string","format":"date-time"}},"required":["id","identityId","purposeCode","purposeVersion","action","accepted","channel","hotspotId","at"],"additionalProperties":false}},"nextCursor":{"description":"Sonraki sayfa; null = son sayfa","type":["string","null"]},"hasMore":{"type":"boolean","description":"Hemen ardından başka sayfa var"}},"required":["data","nextCursor","hasMore"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/devices/{id}/status":{"get":{"operationId":"devicesStatus","summary":"Cihaz durumu","tags":["Cihazlar"],"x-hotspotly-scope":"devices.read","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"vendor":{"type":["string","null"]},"status":{"type":"string","description":"online | offline | error"},"online":{"type":"boolean"},"lastSeen":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"operationMode":{"type":"string"},"isActive":{"type":"boolean"}},"required":["id","name","vendor","status","online","lastSeen","operationMode","isActive"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/vouchers":{"post":{"operationId":"vouchersCreate","summary":"Voucher partisi oluştur","tags":["Voucher"],"x-hotspotly-scope":"vouchers.write","security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"count":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^-?\\d{1,15}$"}]},"durationMinutes":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^-?\\d{1,15}$"}]},"dataLimitMb":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","pattern":"^-?\\d{1,15}$"}]},{"type":"string","const":""}]},{"type":"null"}]},"maxDevices":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","pattern":"^-?\\d{1,15}$"}]},{"type":"string","const":""}]},{"type":"null"}]},"usesPerCode":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","pattern":"^-?\\d{1,15}$"}]},{"type":"string","const":""}]},{"type":"null"}]},"usageCapMode":{"anyOf":[{"type":"string","enum":["shared","per_site"]},{"type":"null"}]},"hotspotIds":{"anyOf":[{"maxItems":200,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"type":"null"}]},"validFrom":{"anyOf":[{"anyOf":[{"type":"string","maxLength":64},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]},{"type":"null"}]},"validUntil":{"anyOf":[{"anyOf":[{"type":"string","maxLength":64},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]},{"type":"null"}]},"priceMinor":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","pattern":"^-?\\d{1,15}$"}]},{"type":"string","const":""}]},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","enum":["TRY","EUR","USD","GBP"]},{"type":"null"}]}},"required":["name","count","durationMinutes"],"additionalProperties":false}}}},"responses":{"201":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"batch":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"hotspotIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}]},"codeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"durationMinutes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"dataLimitMb":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"maxDevices":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usesPerCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usageCapMode":{"anyOf":[{"type":"string","enum":["shared","per_site"]},{"type":"null"}]},"validFrom":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"validUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"priceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":["string","null"]},"source":{"type":"string","description":"panel | bayi | order | api"}},"required":["id","name","hotspotIds","codeCount","durationMinutes","dataLimitMb","maxDevices","usesPerCode","usageCapMode","validFrom","validUntil","revokedAt","createdAt","priceMinor","currency","source"],"additionalProperties":false},"codes":{"type":"array","items":{"type":"string"},"description":"XXXX-XXXX; yalnız bu yanıtta (no-store)"}},"required":["batch","codes"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/qr-codes":{"post":{"operationId":"qrOneTime","summary":"Tek seferlik QR (otomat)","tags":["Voucher"],"x-hotspotly-scope":"vouchers.write","security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hotspotId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"durationMinutes":{"type":"integer","minimum":1,"maximum":10080},"dataLimitMb":{"type":"integer","minimum":1,"maximum":1048576},"maxDevices":{"type":"integer","minimum":1,"maximum":5},"validMinutes":{"type":"integer","minimum":1,"maximum":1440},"label":{"type":"string","minLength":1,"maxLength":60}},"required":["hotspotId","durationMinutes"],"additionalProperties":false}}}},"responses":{"201":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string","description":"QR içeriği: <PORTAL_URL>/p/qr/<jeton>"},"code":{"type":"string","description":"XXXX-XXXX; yalnız bu yanıtta (no-store)"},"voucherId":{"type":"string","format":"uuid"},"batchId":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dataLimitMb":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"maxDevices":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"validUntil":{"type":"string","format":"date-time"}},"required":["url","code","voucherId","batchId","hotspotId","durationMinutes","dataLimitMb","maxDevices","validUntil"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/vouchers/redeem":{"post":{"operationId":"vouchersRedeem","summary":"Voucher kodunu cihaz için kullan","tags":["Voucher"],"x-hotspotly-scope":"vouchers.write","security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":4,"maxLength":32},"hotspotId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"mac":{"type":"string","pattern":"^[0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}$"}},"required":["code","hotspotId","mac"],"additionalProperties":false}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"kind":{"type":"string","description":"voucher"},"voucherId":{"type":"string","format":"uuid"},"batchId":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"newRedemption":{"type":"boolean"},"usedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usesPerCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxDevices":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dataLimitMb":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["kind","voucherId","batchId","hotspotId","newRedemption","usedCount","usesPerCode","maxDevices","dataLimitMb","expiresAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/coupons/redeem":{"post":{"operationId":"couponsRedeem","summary":"Kupon (voucher kodu) kullan","tags":["Voucher"],"x-hotspotly-scope":"coupons.redeem","security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":4,"maxLength":32},"hotspotId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"mac":{"type":"string","pattern":"^[0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}$"}},"required":["code","hotspotId","mac"],"additionalProperties":false}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"kind":{"type":"string","description":"voucher"},"voucherId":{"type":"string","format":"uuid"},"batchId":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"newRedemption":{"type":"boolean"},"usedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usesPerCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxDevices":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dataLimitMb":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["kind","voucherId","batchId","hotspotId","newRedemption","usedCount","usesPerCode","maxDevices","dataLimitMb","expiresAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/log5651/events":{"get":{"operationId":"log5651Events","summary":"5651 erişim kaydı olayları","tags":["5651"],"x-hotspotly-scope":"log5651.read","security":[{"ApiKey":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{1,4}$"}},{"name":"from","in":"query","required":false,"description":"YYYY-AA-GG, YYYY-AA-GGTSS:DD (Europe/Istanbul) ya da ofsetli ISO 8601; aralık [from, to), ≤ 93 gün, varsayılan son 7 gün","schema":{"type":"string","maxLength":40}},{"name":"to","in":"query","required":false,"description":"YYYY-AA-GG, YYYY-AA-GGTSS:DD (Europe/Istanbul) ya da ofsetli ISO 8601; aralık [from, to), ≤ 93 gün, varsayılan son 7 gün","schema":{"type":"string","maxLength":40}},{"name":"deviceId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"hotspotId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"internalIp","in":"query","required":false,"description":"İç IP; sonda '*' önek araması","schema":{"type":"string","maxLength":46}},{"name":"mac","in":"query","required":false,"description":"MAC; sonda '*' önek araması","schema":{"type":"string","maxLength":18}},{"name":"sessionKey","in":"query","required":false,"description":"Oturum anahtarı (birebir)","schema":{"type":"string","maxLength":64}},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["radacct_hotspot","radacct_dhcp","api_snapshot","legacy","syslog","radius_staff","radius_passpoint"]}},{"name":"eventType","in":"query","required":false,"schema":{"type":"string","enum":["start","stop","update"]}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"source":{"type":"string","description":"radacct_hotspot | radacct_dhcp | api_snapshot | …"},"customerId":{"type":"string","format":"uuid"},"deviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"deviceName":{"type":["string","null"]},"hotspotId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"hotspotName":{"type":["string","null"]},"nasIp":{"type":["string","null"]},"internalIp":{"type":["string","null"]},"mac":{"type":["string","null"]},"identityType":{"type":["string","null"]},"identityMasked":{"description":"Maskeli kimlik; tam değer yok","type":["string","null"]},"identityStatus":{"type":"string","description":"bound | none"},"username":{"description":"Maskeli","type":["string","null"]},"bytesIn":{"type":["number","null"]},"bytesOut":{"type":["number","null"]},"terminateCause":{"type":["string","null"]},"eventAt":{"type":"string","format":"date-time"},"eventDay":{"type":"string","format":"date","description":"YYYY-AA-GG (Europe/Istanbul)"},"eventType":{"type":"string","description":"start | stop | update"},"sessionKey":{"type":["string","null"]},"sessionStartAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","source","customerId","deviceId","deviceName","hotspotId","hotspotName","nasIp","internalIp","mac","identityType","identityMasked","identityStatus","username","bytesIn","bytesOut","terminateCause","eventAt","eventDay","eventType","sessionKey","sessionStartAt"],"additionalProperties":false}},"nextCursor":{"description":"Sonraki sayfa; null = son sayfa","type":["string","null"]},"range":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"timezone":{"type":"string"},"bounds":{"type":"string","description":"[from, to) — yarı açık"}},"required":["from","to","timezone","bounds"],"additionalProperties":false}},"required":["data","nextCursor","range"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/log5651/sessions":{"get":{"operationId":"log5651Sessions","summary":"5651 oturumları","tags":["5651"],"x-hotspotly-scope":"log5651.read","security":[{"ApiKey":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{1,4}$"}},{"name":"from","in":"query","required":false,"description":"YYYY-AA-GG, YYYY-AA-GGTSS:DD (Europe/Istanbul) ya da ofsetli ISO 8601; aralık [from, to), ≤ 93 gün, varsayılan son 7 gün","schema":{"type":"string","maxLength":40}},{"name":"to","in":"query","required":false,"description":"YYYY-AA-GG, YYYY-AA-GGTSS:DD (Europe/Istanbul) ya da ofsetli ISO 8601; aralık [from, to), ≤ 93 gün, varsayılan son 7 gün","schema":{"type":"string","maxLength":40}},{"name":"deviceId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"hotspotId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"internalIp","in":"query","required":false,"description":"İç IP; sonda '*' önek araması","schema":{"type":"string","maxLength":46}},{"name":"mac","in":"query","required":false,"description":"MAC; sonda '*' önek araması","schema":{"type":"string","maxLength":18}},{"name":"sessionKey","in":"query","required":false,"description":"Oturum anahtarı (birebir)","schema":{"type":"string","maxLength":64}},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["radacct_hotspot","radacct_dhcp","api_snapshot","legacy","syslog","radius_staff","radius_passpoint"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","closed"]}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"source":{"type":"string","description":"radacct_hotspot | radacct_dhcp | api_snapshot | …"},"customerId":{"type":"string","format":"uuid"},"deviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"deviceName":{"type":["string","null"]},"hotspotId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"hotspotName":{"type":["string","null"]},"nasIp":{"type":["string","null"]},"internalIp":{"type":["string","null"]},"mac":{"type":["string","null"]},"identityType":{"type":["string","null"]},"identityMasked":{"description":"Maskeli kimlik; tam değer yok","type":["string","null"]},"identityStatus":{"type":"string","description":"bound | none"},"username":{"description":"Maskeli","type":["string","null"]},"bytesIn":{"type":["number","null"]},"bytesOut":{"type":["number","null"]},"terminateCause":{"type":["string","null"]},"sessionKey":{"type":"string"},"startedAt":{"type":"string","format":"date-time"},"lastUpdateAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"stoppedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"open":{"type":"boolean"},"identityBoundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"identityFlags":{"type":"array","items":{"type":"string"}},"qrPointId":{"description":"QR erişim noktasının kısa kimliği (roadmap 22.3); QR'sız girişte null","type":["string","null"]}},"required":["id","source","customerId","deviceId","deviceName","hotspotId","hotspotName","nasIp","internalIp","mac","identityType","identityMasked","identityStatus","username","bytesIn","bytesOut","terminateCause","sessionKey","startedAt","lastUpdateAt","stoppedAt","open","identityBoundAt","identityFlags","qrPointId"],"additionalProperties":false}},"nextCursor":{"description":"Sonraki sayfa; null = son sayfa","type":["string","null"]},"range":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"timezone":{"type":"string"},"bounds":{"type":"string","description":"[from, to) — yarı açık"}},"required":["from","to","timezone","bounds"],"additionalProperties":false}},"required":["data","nextCursor","range"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/log5651/exports":{"post":{"operationId":"log5651ExportsCreate","summary":"5651 dışa aktarımı başlat (asenkron)","tags":["5651"],"x-hotspotly-scope":"log5651.export","security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","maxLength":40,"description":"YYYY-AA-GG, YYYY-AA-GGTSS:DD (Europe/Istanbul) ya da ofsetli ISO 8601; aralık [from, to), ≤ 93 gün, varsayılan son 7 gün"},"to":{"type":"string","maxLength":40,"description":"YYYY-AA-GG, YYYY-AA-GGTSS:DD (Europe/Istanbul) ya da ofsetli ISO 8601; aralık [from, to), ≤ 93 gün, varsayılan son 7 gün"},"deviceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"hotspotId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"internalIp":{"type":"string","maxLength":46,"description":"İç IP; sonda '*' önek araması"},"mac":{"type":"string","maxLength":18,"description":"MAC; sonda '*' önek araması"},"sessionKey":{"type":"string","maxLength":64,"description":"Oturum anahtarı (birebir)"},"source":{"type":"string","enum":["radacct_hotspot","radacct_dhcp","api_snapshot","legacy","syslog","radius_staff","radius_passpoint"]},"username":{"type":"string","maxLength":65,"description":"Kullanıcı adı; sonda '*' önek"},"identityType":{"type":"string","maxLength":48,"description":"Kimlik türü (phone, tc, email …); identity ile birlikte"},"identity":{"type":"string","maxLength":320,"description":"Kimlik değeri (kör indeksle aranır; saklanmaz)"}},"additionalProperties":false}}}},"responses":{"202":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","description":"queued | running | completed | failed | expired"},"complete":{"type":"boolean","description":"Kapsamdaki bütün günler mühürlü"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"filters":{"type":"object","properties":{"internalIp":{"type":"string"},"mac":{"type":"string"},"identityType":{"type":"string"},"identityMasked":{"type":"string"},"username":{"type":"string"},"deviceId":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"}},"additionalProperties":false},"fileName":{"type":["string","null"]},"sizeBytes":{"type":["number","null"]},"sha256":{"type":["string","null"]},"rowCount":{"type":["number","null"]},"error":{"type":["string","null"]},"downloadCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Dosyanın silineceği an"}},"required":["id","status","complete","from","to","filters","fileName","sizeBytes","sha256","rowCount","error","downloadCount","createdAt","finishedAt","expiresAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/log5651/exports/{id}":{"get":{"operationId":"log5651ExportsGet","summary":"5651 dışa aktarım durumu","tags":["5651"],"x-hotspotly-scope":"log5651.export","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","description":"queued | running | completed | failed | expired"},"complete":{"type":"boolean","description":"Kapsamdaki bütün günler mühürlü"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"filters":{"type":"object","properties":{"internalIp":{"type":"string"},"mac":{"type":"string"},"identityType":{"type":"string"},"identityMasked":{"type":"string"},"username":{"type":"string"},"deviceId":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"}},"additionalProperties":false},"fileName":{"type":["string","null"]},"sizeBytes":{"type":["number","null"]},"sha256":{"type":["string","null"]},"rowCount":{"type":["number","null"]},"error":{"type":["string","null"]},"downloadCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Dosyanın silineceği an"}},"required":["id","status","complete","from","to","filters","fileName","sizeBytes","sha256","rowCount","error","downloadCount","createdAt","finishedAt","expiresAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/log5651/exports/{id}/link":{"post":{"operationId":"log5651ExportsLink","summary":"5 dakikalık tek kullanımlık indirme bağlantısı","tags":["5651"],"x-hotspotly-scope":"log5651.export","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string","description":"Tek kullanımlık indirme adresi (Authorization gerekmez)"},"expiresAt":{"type":"string","format":"date-time"},"expiresInSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["url","expiresAt","expiresInSeconds"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/webhooks/event-types":{"get":{"operationId":"webhooksEventTypes","summary":"Abone olunabilir olay tipleri","tags":["Webhooks"],"x-hotspotly-scope":"webhooks.manage","security":[{"ApiKey":[]}],"parameters":[],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Olay tipi (ör. guest.session.started)"},"group":{"type":"string"},"object":{"type":"string","description":"Gövdedeki data.object"}},"required":["type","group","object"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/webhooks/samples":{"get":{"operationId":"webhooksSamples","summary":"Olay tipi için örnek gövdeler","tags":["Webhooks"],"x-hotspotly-scope":"webhooks.manage","security":[{"ApiKey":[]}],"parameters":[{"name":"eventType","in":"query","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_.]{2,63}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","description":"recent (hesabın son gerçek olayları) | example (olay yoksa şemadan örnek)"},"data":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{},"description":"Teslim gövdesiyle aynı biçim (docs/developers/webhooks.md §2)"}}},"required":["source","data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/webhooks":{"get":{"operationId":"webhooksList","summary":"Bu anahtarın webhook abonelikleri","tags":["Webhooks"],"x-hotspotly-scope":"webhooks.manage","security":[{"ApiKey":[]}],"parameters":[],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"url":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"disabledReason":{"description":"manual | auto_failing | api_key_revoked","type":["string","null"]},"secretHint":{"type":"string","description":"İmza sırrının son 4 karakteri"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","url","eventTypes","active","disabledReason","secretHint","createdAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}},"post":{"operationId":"webhooksSubscribe","summary":"Webhook aboneliği aç (imza sırrı yalnız bu yanıtta)","tags":["Webhooks"],"x-hotspotly-scope":"webhooks.manage","security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":8,"maxLength":2048,"description":"Alıcı adresi (https; özel / yerel ağ reddedilir)"},"eventTypes":{"minItems":1,"maxItems":64,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_.]{2,63}$"},"description":"GET /webhooks/event-types listesinden"},"name":{"description":"Panelde görünen ad; varsayılan \"API aboneliği\"","type":"string","minLength":1,"maxLength":100}},"required":["url","eventTypes"],"additionalProperties":false}}}},"responses":{"201":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"endpoint":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"url":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"disabledReason":{"description":"manual | auto_failing | api_key_revoked","type":["string","null"]},"secretHint":{"type":"string","description":"İmza sırrının son 4 karakteri"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","url","eventTypes","active","disabledReason","secretHint","createdAt"],"additionalProperties":false},"secret":{"type":"string","description":"whsec_… imza sırrı; yalnız bu yanıtta (Hotspotly-Signature)"}},"required":["endpoint","secret"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/webhooks/{id}":{"delete":{"operationId":"webhooksUnsubscribe","summary":"Webhook aboneliğini kapat (yalnız bu anahtarın)","tags":["Webhooks"],"x-hotspotly-scope":"webhooks.manage","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/local-users":{"get":{"operationId":"localUsersList","summary":"Yerel kullanıcılar (maskeli)","tags":["Yerel kullanıcılar"],"x-hotspotly-scope":"local_users.read","security":[{"ApiKey":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{1,4}$"}},{"name":"hotspotId","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"groupTag","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"isActive","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"username":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"description":"Maskeli (10.1)","type":["string","null"]},"phone":{"description":"Maskeli (10.1)","type":["string","null"]},"groupTag":{"type":["string","null"]},"profileType":{"description":"hourly | daily | weekly | monthly | unlimited","type":["string","null"]},"bandwidthProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Hesaba atanmış hız profili; null = atamalardan / müşteri varsayılanından"},"dataLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Bayt"},"timeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Saniye"},"dailyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"isActive":{"type":"boolean"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"piiMasked":{"type":"boolean","const":true}},"required":["id","hotspotId","username","firstName","lastName","email","phone","groupTag","profileType","bandwidthProfileId","dataLimit","timeLimit","dailyTimeLimit","monthlyTimeLimit","isActive","expiryDate","createdAt","updatedAt","piiMasked"],"additionalProperties":false}},"nextCursor":{"description":"Sonraki sayfa; null = son sayfa","type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}},"post":{"operationId":"localUsersCreate","summary":"Yerel kullanıcı oluştur (üretilen şifre yalnız bu yanıtta)","tags":["Yerel kullanıcılar"],"x-hotspotly-scope":"local_users.write","security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hotspotId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"username":{"type":"string","minLength":1,"maxLength":64},"password":{"type":"string","minLength":8,"maxLength":64,"pattern":"^[^\\s\\u0000-\\u001f\\u007f]+$","description":"Verilmezse 10 karakterlik rastgele şifre üretilir ve yalnız yanıtta döner"},"bandwidthProfileId":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"null"}]},"firstName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":255,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}]},"profileType":{"anyOf":[{"type":"string","enum":["hourly","daily","weekly","monthly","unlimited"]},{"type":"null"}]},"dataLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"timeLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"dailyTimeLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":86400},{"type":"null"}]},"monthlyTimeLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":2678400},{"type":"null"}]},"expiryDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Ofsetli ISO 8601 (ör. 2026-12-31T23:59:00+03:00); null = bitiş yok"},{"type":"null"}]},"groupTag":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"delivery":{"description":"Kimlik bilgisini gönder (SMS kredi düşer); WhatsApp kapalı","type":"string","enum":["sms","email"]},"locale":{"description":"Gönderim metninin dili (varsayılan tr)","type":"string","enum":["tr","en","de","fr","ru","ar"]}},"required":["hotspotId","username"],"additionalProperties":false}}}},"responses":{"201":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"username":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"description":"Maskeli (10.1)","type":["string","null"]},"phone":{"description":"Maskeli (10.1)","type":["string","null"]},"groupTag":{"type":["string","null"]},"profileType":{"description":"hourly | daily | weekly | monthly | unlimited","type":["string","null"]},"bandwidthProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Hesaba atanmış hız profili; null = atamalardan / müşteri varsayılanından"},"dataLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Bayt"},"timeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Saniye"},"dailyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"isActive":{"type":"boolean"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"piiMasked":{"type":"boolean","const":true}},"required":["id","hotspotId","username","firstName","lastName","email","phone","groupTag","profileType","bandwidthProfileId","dataLimit","timeLimit","dailyTimeLimit","monthlyTimeLimit","isActive","expiryDate","createdAt","updatedAt","piiMasked"],"additionalProperties":false},"password":{"description":"Yalnız şifre üretildiyse ve yalnız bu yanıtta (sunucuda düz saklanmaz); verdiyseniz null","type":["string","null"]},"delivery":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","description":"sms | email"},"status":{"type":"string","description":"sent | failed | skipped"},"errorCode":{"type":["string","null"]}},"required":["channel","status","errorCode"],"additionalProperties":false},{"type":"null"}],"description":"delivery istenmediyse null"}},"required":["user","password","delivery"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/local-users/{id}":{"get":{"operationId":"localUsersGet","summary":"Yerel kullanıcı (maskeli)","tags":["Yerel kullanıcılar"],"x-hotspotly-scope":"local_users.read","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"username":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"description":"Maskeli (10.1)","type":["string","null"]},"phone":{"description":"Maskeli (10.1)","type":["string","null"]},"groupTag":{"type":["string","null"]},"profileType":{"description":"hourly | daily | weekly | monthly | unlimited","type":["string","null"]},"bandwidthProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Hesaba atanmış hız profili; null = atamalardan / müşteri varsayılanından"},"dataLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Bayt"},"timeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Saniye"},"dailyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"isActive":{"type":"boolean"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"piiMasked":{"type":"boolean","const":true}},"required":["id","hotspotId","username","firstName","lastName","email","phone","groupTag","profileType","bandwidthProfileId","dataLimit","timeLimit","dailyTimeLimit","monthlyTimeLimit","isActive","expiryDate","createdAt","updatedAt","piiMasked"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}},"patch":{"operationId":"localUsersUpdate","summary":"Yerel kullanıcıyı güncelle","tags":["Yerel kullanıcılar"],"x-hotspotly-scope":"local_users.write","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":255,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}]},"profileType":{"anyOf":[{"type":"string","enum":["hourly","daily","weekly","monthly","unlimited"]},{"type":"null"}]},"dataLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"timeLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"dailyTimeLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":86400},{"type":"null"}]},"monthlyTimeLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":2678400},{"type":"null"}]},"expiryDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Ofsetli ISO 8601 (ör. 2026-12-31T23:59:00+03:00); null = bitiş yok"},{"type":"null"}]},"groupTag":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"username":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"description":"Maskeli (10.1)","type":["string","null"]},"phone":{"description":"Maskeli (10.1)","type":["string","null"]},"groupTag":{"type":["string","null"]},"profileType":{"description":"hourly | daily | weekly | monthly | unlimited","type":["string","null"]},"bandwidthProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Hesaba atanmış hız profili; null = atamalardan / müşteri varsayılanından"},"dataLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Bayt"},"timeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Saniye"},"dailyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"isActive":{"type":"boolean"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"piiMasked":{"type":"boolean","const":true}},"required":["id","hotspotId","username","firstName","lastName","email","phone","groupTag","profileType","bandwidthProfileId","dataLimit","timeLimit","dailyTimeLimit","monthlyTimeLimit","isActive","expiryDate","createdAt","updatedAt","piiMasked"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/local-users/{id}/disable":{"post":{"operationId":"localUsersDisable","summary":"Yerel kullanıcıyı pasifleştir (açık oturum düşer)","tags":["Yerel kullanıcılar"],"x-hotspotly-scope":"local_users.write","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"username":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"description":"Maskeli (10.1)","type":["string","null"]},"phone":{"description":"Maskeli (10.1)","type":["string","null"]},"groupTag":{"type":["string","null"]},"profileType":{"description":"hourly | daily | weekly | monthly | unlimited","type":["string","null"]},"bandwidthProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Hesaba atanmış hız profili; null = atamalardan / müşteri varsayılanından"},"dataLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Bayt"},"timeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Saniye"},"dailyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"isActive":{"type":"boolean"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"piiMasked":{"type":"boolean","const":true}},"required":["id","hotspotId","username","firstName","lastName","email","phone","groupTag","profileType","bandwidthProfileId","dataLimit","timeLimit","dailyTimeLimit","monthlyTimeLimit","isActive","expiryDate","createdAt","updatedAt","piiMasked"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/local-users/{id}/enable":{"post":{"operationId":"localUsersEnable","summary":"Pasif yerel kullanıcıyı etkinleştir","tags":["Yerel kullanıcılar"],"x-hotspotly-scope":"local_users.write","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"username":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"description":"Maskeli (10.1)","type":["string","null"]},"phone":{"description":"Maskeli (10.1)","type":["string","null"]},"groupTag":{"type":["string","null"]},"profileType":{"description":"hourly | daily | weekly | monthly | unlimited","type":["string","null"]},"bandwidthProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Hesaba atanmış hız profili; null = atamalardan / müşteri varsayılanından"},"dataLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Bayt"},"timeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Saniye"},"dailyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"isActive":{"type":"boolean"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"piiMasked":{"type":"boolean","const":true}},"required":["id","hotspotId","username","firstName","lastName","email","phone","groupTag","profileType","bandwidthProfileId","dataLimit","timeLimit","dailyTimeLimit","monthlyTimeLimit","isActive","expiryDate","createdAt","updatedAt","piiMasked"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/local-users/{id}/reset-password":{"post":{"operationId":"localUsersResetPassword","summary":"Şifreyi yenile ve isteğe bağlı gönder","tags":["Yerel kullanıcılar"],"x-hotspotly-scope":"local_users.write","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":8,"maxLength":64,"pattern":"^[^\\s\\u0000-\\u001f\\u007f]+$","description":"Verilmezse 10 karakterlik rastgele şifre üretilir ve yalnız yanıtta döner"},"delivery":{"description":"Kimlik bilgisini gönder (SMS kredi düşer); WhatsApp kapalı","type":"string","enum":["sms","email"]},"locale":{"description":"Gönderim metninin dili (varsayılan tr)","type":"string","enum":["tr","en","de","fr","ru","ar"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"password":{"description":"Üretilen yeni şifre (yalnız bu yanıtta); verdiyseniz null","type":["string","null"]},"delivery":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","description":"sms | email"},"status":{"type":"string","description":"sent | failed | skipped"},"errorCode":{"type":["string","null"]}},"required":["channel","status","errorCode"],"additionalProperties":false},{"type":"null"}],"description":"delivery istenmediyse null"}},"required":["id","password","delivery"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/profiles":{"get":{"operationId":"profilesList","summary":"Atanabilir hız profilleri","tags":["Hız profilleri"],"x-hotspotly-scope":"profiles.read","security":[{"ApiKey":[]}],"parameters":[],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"downloadKbps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadKbps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"burstDownloadKbps":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"burstUploadKbps":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"priority":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"isDefault":{"type":"boolean","description":"Müşterinin varsayılan profili"},"capped":{"type":"boolean","description":"Değerler platform / bayi hız tavanına kırpıldı (router’a giden etkin değer)"}},"required":["id","name","description","downloadKbps","uploadKbps","burstDownloadKbps","burstUploadKbps","priority","isDefault","capped"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/local-users/{id}/profile":{"put":{"operationId":"profilesAssign","summary":"Yerel kullanıcıya hız profili ata","tags":["Hız profilleri"],"x-hotspotly-scope":"profiles.assign","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Yeniden denemede aynı yanıt (24 saat; yazdırılabilir ASCII)","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"null"}],"description":"GET /profiles listesinden; null = hesap profilini kaldır (atamalara bağlanır)"}},"required":["profileId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hotspotId":{"type":"string","format":"uuid"},"username":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"description":"Maskeli (10.1)","type":["string","null"]},"phone":{"description":"Maskeli (10.1)","type":["string","null"]},"groupTag":{"type":["string","null"]},"profileType":{"description":"hourly | daily | weekly | monthly | unlimited","type":["string","null"]},"bandwidthProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Hesaba atanmış hız profili; null = atamalardan / müşteri varsayılanından"},"dataLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Bayt"},"timeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Saniye"},"dailyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"monthlyTimeLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"isActive":{"type":"boolean"},"expiryDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"piiMasked":{"type":"boolean","const":true}},"required":["id","hotspotId","username","firstName","lastName","email","phone","groupTag","profileType","bandwidthProfileId","dataLimit","timeLimit","dailyTimeLimit","monthlyTimeLimit","isActive","expiryDate","createdAt","updatedAt","piiMasked"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/hotspots/{id}/occupancy":{"get":{"operationId":"hotspotsOccupancy","summary":"Hotspot doluluğu (anlık)","tags":["Hotspots"],"x-hotspotly-scope":"occupancy.read","security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"hotspotId":{"type":"string","format":"uuid"},"activeSessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Açık erişim oturumu (access_sessions; panel sayacıyla aynı koşul)"},"activeDevices":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Açık oturumu olan tekil cihaz (MAC)"},"capacity":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Eşzamanlı misafir kapasitesi; kapasite fiyatlaması (23.3) tanımlı değilse null"},"utilization":{"description":"activeDevices / capacity (0–1+); kapasite yoksa null","type":["number","null"]},"measuredAt":{"type":"string","format":"date-time"}},"required":["hotspotId","activeSessions","activeDevices","capacity","utilization","measuredAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","bearerFormat":"hsp_live_<id>_<secret>"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string","description":"İnsan okunur ileti (Türkçe)"},"code":{"type":"string","description":"Makine okunur hata kodu (ör. SCOPE_DENIED)"},"details":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}},"requestId":{"type":"string"}},"required":["error","code"],"additionalProperties":{}}},"responses":{"E400":{"description":"Geçersiz istek (VALIDATION_ERROR, INVALID_CURSOR, IDEMPOTENCY_KEY_INVALID)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E401":{"description":"Anahtar yok / geçersiz / iptal / süresi dolmuş","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E403":{"description":"IP_NOT_ALLOWED, SCOPE_DENIED, API_DISABLED, ENTITLEMENT_REQUIRED, ACCOUNT_SUSPENDED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E404":{"description":"Kayıt yok ya da bu anahtarın kapsamı dışında","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E409":{"description":"Çakışma (IDEMPOTENCY_IN_PROGRESS, kayıt hazır değil)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E422":{"description":"İşlenemez (IDEMPOTENCY_KEY_REUSED, VOUCHER_EXPIRED …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E429":{"description":"Hız sınırı (RATE_LIMITED) — Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E502":{"description":"Ağ geçidine (router) ulaşılamadı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E503":{"description":"Geçici olarak kullanılamıyor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}