{
  "service": "Locket Gold Activator Serverless API",
  "version": "2.0.0",
  "platform": "Cloudflare Workers & D1",
  "mode": "Free (No Payment Required)",
  "endpoints": {
    "POST /api/activate": {
      "description": "Kích hoạt Locket Gold 1 Năm miễn phí (POST body: { input: \"username hoặc link\" })",
      "example_curl": "curl -X POST https://gold.manhit.dev/api/activate -H \"Content-Type: application/json\" -d '{\"input\": \"username\"}'"
    },
    "GET /api/activate?input={username}": {
      "description": "Kích hoạt Locket Gold 1 Năm nhanh qua query param",
      "example": "https://gold.manhit.dev/api/activate?input=username"
    },
    "GET /api/locket/resolve?input={username}": {
      "description": "Tra cứu thông tin tài khoản Locket (UID, avatar, trạng thái VIP)",
      "example": "https://gold.manhit.dev/api/locket/resolve?input=username"
    },
    "GET /api/locket/status?uid={uid}": {
      "description": "Kiểm tra trạng thái Locket Gold trực tiếp từ RevenueCat bằng UID",
      "example": "https://gold.manhit.dev/api/locket/status?uid=AbCdEf1234567890AbCdEf12"
    },
    "GET /api/dns/download?username={username}": {
      "description": "Tải profile cấu hình DNS cho iOS (.mobileconfig) chống mất Gold",
      "example": "https://gold.manhit.dev/api/dns/download?username=username"
    },
    "POST /api/telegram/webhook": {
      "description": "Webhook Telegram Bot nhận username và kích hoạt tự động 100%"
    },
    "GET /api/telegram/set-webhook": {
      "description": "Cài đặt webhook Telegram Bot"
    },
    "GET /api/stats": {
      "description": "Thống kê số lượt kích hoạt"
    },
    "GET /health": {
      "description": "Health check"
    }
  },
  "support": "https://t.me/SmartSubVNBot"
}