{
  "success": true,
  "name": "Content Delivery API",
  "version": "1.0.0",
  "description": "API for retrieving documents from MongoDB with video streaming support",
  "endpoints": {
    "GET /": "API information",
    "GET /health": "Health check",
    "GET /api/document/{id}": "Get document by ID",
    "GET /api/documents": "List documents (with optional query parameters)",
    "POST /api/documents/search": "Search documents",
    "GET /api/stream/{id}": "Stream video with light protection (default) or direct mode (?direct=true)",
    "GET /api/stream/{id}/info": "Get video information for streaming",
    "GET /api/hostnames": "Get current hostname allowlist from TOKEN_STORE KV",
    "POST /api/hostnames/clear-cache": "Clear hostname cache",
    "POST /api/hostnames/refresh": "Force refresh hostname list from KV",
    "GET /api/download/config": "Get download system configuration",
    "GET /api/download/status/{key}": "Check download status for a specific key",
    "POST /api/download/test": "Test download API (requires documentId or videoUrl)",
    "GET /api/security/download-detector/stats": "Get download detector statistics",
    "POST /api/security/download-detector/reset": "Reset download detector sessions",
    "GET /api/security/recovery": "Quick recovery for blocked browsers"
  },
  "testPages": {
    "GET /test-client.html": "Document API test client",
    "GET /video-stream-test.html": "Video streaming test client"
  },
  "hostname_management": {
    "source": "TOKEN_STORE KV (direct access)",
    "cache_ttl": "300 seconds",
    "fallback": "ALLOWED_REF_HOSTS environment variable"
  },
  "timestamp": 1779115089266,
  "processingTime": "0ms"
}