ดึงการตั้งค่าเว็บไซต์

ใช้งานได้
GET/api/v1/site/config

ดึง branding, ธีมสี (รวมไล่สีหัว/ท้ายเว็บ), ไอคอนที่ agent อัปเอง, แบนเนอร์, SEO, live chat และ feature flags (otp_enabled / wheel_enabled / affiliate_enabled / jackpot) ของเว็บ agent — ใช้ render หน้าเว็บก่อนสมาชิก login

URL ของสื่อ (โลโก้/แบนเนอร์/ป๊อปอัป) ถูก resolve ให้แล้ว — บางกรณีเป็น presigned URL ที่มีวันหมดอายุ อย่า cache ยาว ให้ดึง config ใหม่เมื่อโหลดหน้า

ตัววิ่ง jackpot คำนวณฝั่งหน้าเว็บ: ยอดปัจจุบัน ≈ base_amount_thb + growth_per_day_thb × จำนวนวันตั้งแต่ seeded_at (โชว์อย่างเดียว ไม่ใช่ยอดจ่ายจริง)

Headers

ฟิลด์ชนิดจำเป็นคำอธิบาย
Authorizationstring—ไม่ใช้ — endpoint นี้เป็น public ไม่ต้องแนบ token สมาชิก
X-Api-Keystringใช่API key ของ agent (ak_…) จากหน้า bo
X-Timestampstringใช่เวลา sign เป็น unix milliseconds (คลาดเคลื่อนได้ ±300 วินาที)
X-Noncestringใช่ค่าไม่ซ้ำต่อ request (UUIDv4) กัน replay
X-Signaturestringใช่hex(HMAC-SHA256(secret, canonical)) — ดูหน้า Authentication
X-Player-IPstring—IP จริงของผู้เล่น (IPv4/IPv6) — แนะนำให้ส่ง (ใช้ใน login history)
X-Player-UAstring—User-Agent ของผู้เล่น (optional — ลง login history)
X-Request-Idstring—correlation id ของฝั่งคุณ — ระบบ echo กลับใน request_uuid (แนะนำให้ส่ง)
x-langstring—th (default) หรือ en — ภาษาของ message

Response

ฟิลด์ใน data

ฟิลด์ชนิดจำเป็นคำอธิบาย
templatestring—เทมเพลตหน้าเว็บที่ agent เลือกใช้CLASSIC | MODERN | PREMIUM
brand_namestring—ชื่อแบรนด์ของเว็บ
logo_urlstring | null—URL โลโก้ (resolve เป็น URL ที่แสดงผลได้แล้ว)
favicon_urlstring | null—URL favicon
primary_colorstring—สีหลักของธีม (hex)
secondary_colorstring | null—สีรอง (hex)
background_image_urlstring | null—URL ภาพพื้นหลัง
background_colorstring | null—สีพื้นหลัง (hex)
header_colorstring | null—สีส่วนหัว (hex)
footer_colorstring | null—สีส่วนท้าย (hex)
header_stylestring | null—ชนิดพื้นหลังส่วนหัว: SOLID = ใช้ header_color · GRADIENT = ใช้คู่สีด้านล่าง · null = SOLIDSOLID | GRADIENT
header_gradient_fromstring | null—สีต้นของไล่สีส่วนหัว (hex) — มีค่าเมื่อ header_style = GRADIENT
header_gradient_tostring | null—สีปลายของไล่สีส่วนหัว (hex)
header_gradient_anglenumber | null—องศาไล่สีส่วนหัว (0-360) — null = 180 (บนลงล่าง)
footer_stylestring | null—ชนิดพื้นหลังส่วนท้าย: SOLID = ใช้ footer_color · GRADIENT = ใช้คู่สีด้านล่าง · null = SOLIDSOLID | GRADIENT
footer_gradient_fromstring | null—สีต้นของไล่สีส่วนท้าย (hex) — มีค่าเมื่อ footer_style = GRADIENT
footer_gradient_tostring | null—สีปลายของไล่สีส่วนท้าย (hex)
footer_gradient_anglenumber | null—องศาไล่สีส่วนท้าย (0-360) — null = 180 (บนลงล่าง)
homepage_banner_urlsstring[]—URL แบนเนอร์สไลด์หน้าแรก (เรียงตามลำดับแสดงผล)
info_strip_enabledboolean—แสดงแถบการ์ดจุดขาย 4 ใบท้ายหน้าแรกไหม
info_strip_1_titlestring | null—หัวข้อการ์ดใบที่ 1 — null = เว็บของคุณใช้ข้อความเริ่มต้นของใบนั้นเอง
info_strip_1_icon_urlstring | null—URL ไอคอนของการ์ดใบที่ 1 ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
info_strip_1_descstring | null—คำอธิบายการ์ดใบที่ 1 — เงื่อนไข null เหมือนหัวข้อ
info_strip_2_titlestring | null—หัวข้อการ์ดใบที่ 2 — null = เว็บของคุณใช้ข้อความเริ่มต้นของใบนั้นเอง
info_strip_2_icon_urlstring | null—URL ไอคอนของการ์ดใบที่ 2 ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
info_strip_2_descstring | null—คำอธิบายการ์ดใบที่ 2 — เงื่อนไข null เหมือนหัวข้อ
info_strip_3_titlestring | null—หัวข้อการ์ดใบที่ 3 — null = เว็บของคุณใช้ข้อความเริ่มต้นของใบนั้นเอง
info_strip_3_icon_urlstring | null—URL ไอคอนของการ์ดใบที่ 3 ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
info_strip_3_descstring | null—คำอธิบายการ์ดใบที่ 3 — เงื่อนไข null เหมือนหัวข้อ
info_strip_4_titlestring | null—หัวข้อการ์ดใบที่ 4 — null = เว็บของคุณใช้ข้อความเริ่มต้นของใบนั้นเอง
info_strip_4_icon_urlstring | null—URL ไอคอนของการ์ดใบที่ 4 ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
category_icon_slot_urlstring | null—URL ไอคอนปุ่มหมวดเกม "สล็อต" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
category_icon_arcade_urlstring | null—URL ไอคอนปุ่มหมวดเกม "เกมอาเขต" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
category_icon_live_casino_urlstring | null—URL ไอคอนปุ่มหมวดเกม "คาสิโนสด" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
category_icon_sports_urlstring | null—URL ไอคอนปุ่มหมวดเกม "กีฬา" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
category_icon_fishing_urlstring | null—URL ไอคอนปุ่มหมวดเกม "ยิงปลา" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
category_icon_lottery_urlstring | null—URL ไอคอนปุ่มหมวดเกม "หวย" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
nav_icon_games_urlstring | null—URL ไอคอนเมนูแถบล่างบนมือถือ "เกม" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
nav_icon_wallet_urlstring | null—URL ไอคอนเมนูแถบล่างบนมือถือ "ฝาก/ถอน" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
nav_icon_promotions_urlstring | null—URL ไอคอนเมนูแถบล่างบนมือถือ "โปรโมชั่น" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
nav_icon_account_urlstring | null—URL ไอคอนเมนูแถบล่างบนมือถือ "บัญชี" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_cashback_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "คืนยอดเสีย" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_free_credit_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "เครดิตฟรี" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_daily_login_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "ล็อกอินรายวัน" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_deposit_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "ฝากเงิน" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_withdraw_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "ถอนเงิน" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_promotions_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "โปรโมชั่น" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_wheel_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "วงล้อเสี่ยงโชค" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_diamond_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "ร้านค้าเพชร" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_card_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "เปิดการ์ด" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_affiliate_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "ชวนเพื่อน" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_transactions_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "ประวัติธุรกรรม" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_contact_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "ติดต่อ" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_change_password_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "เปลี่ยนรหัสผ่าน" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
account_icon_logout_urlstring | null—URL ไอคอนปุ่มในหน้าบัญชี "ออกจากระบบ" ที่ agent อัปเอง — null = เว็บของคุณใช้ไอคอนของตัวเอง
info_strip_4_descstring | null—คำอธิบายการ์ดใบที่ 4 — เงื่อนไข null เหมือนหัวข้อ
announcement_enabledboolean—แสดงแถบประกาศไหม — false ทั้งที่ announcement_text มีค่า แปลว่า agent ปิดไว้ชั่วคราวโดยไม่ลบข้อความ
announcement_textstring | null—ข้อความบนแถบประกาศ
announcement_link_urlstring | null—ปลายทางเมื่อคลิกแถบประกาศ — null = กดไม่ได้
announcement_stylestring | null—"STATIC" | "MARQUEE" — null = STATIC
homepage_banner_linksstring[]—ปลายทางของแบนเนอร์แต่ละรูป index ตรงกับ homepage_banner_urls เสมอ ("" = รูปนั้นกดไม่ได้)
footer_textstring | null—ข้อความส่วนท้ายเว็บ
popup_enabledboolean—เปิดป๊อปอัปประกาศหน้าแรกไหม
popup_image_urlstring | null—URL ภาพป๊อปอัป
popup_link_urlstring | null—ลิงก์ปลายทางเมื่อคลิกป๊อปอัป
seo_titlestring | null—SEO title ของหน้าเว็บ
seo_descriptionstring | null—SEO description
seo_og_image_urlstring | null—URL ภาพ Open Graph สำหรับแชร์โซเชียล
seo_keywordsstring[]—SEO keywords
gtm_idstring | null—Google Tag Manager container id ของ agent — null = ไม่ได้ตั้ง หรือถูกปิดชั่วคราวจากฝั่ง best-system
facebook_pixel_idstring | null—Meta Pixel id ของ agent — เงื่อนไข null เหมือน gtm_id
contact_line_urlstring | null—ลิงก์ LINE Official Account ของ agent — null = ไม่ได้ตั้ง
contact_telegram_urlstring | null—ลิงก์ Telegram ของ agent — null = ไม่ได้ตั้ง
livechat_embed_htmlstring | null—สคริปต์ embed ดิบจากผู้ให้บริการ (agent เป็นคนวาง) — ต้อง sanitize ก่อน inject ลงหน้าเว็บ
otp_enabledboolean—agent นี้บังคับยืนยัน OTP ตอนสมัครไหม — true = วิซาร์ดสมัครต้องมีขั้นตอน request-otp → verify-otp
wheel_enabledboolean—เปิดกงล้อนำโชคไหม — false = ซ่อนเมนู
affiliate_enabledboolean—เปิดระบบแนะนำเพื่อน ไหม — false = ซ่อนเมนู
diamond_enabledboolean—เปิดร้านค้าเพชรไหม — false = ซ่อนเมนู
daily_card_enabledboolean—เปิดเกมเปิดการ์ดรายวันไหม — false = ซ่อนเมนู
jackpot_enabledboolean—true เมื่อมี jackpot อย่างน้อย 1 ระดับเปิดอยู่ (ตัวเลขโชว์อย่างเดียว §15.21b)
jackpotobject—ข้อมูล jackpot สำหรับแสดงผล — ระดับที่เปิด + ผู้ชนะล่าสุด
└ tiersobject[]—ระดับ jackpot ที่เปิดอยู่ เรียง MINI → MAJOR → GRAND
└ tierstring—ระดับ jackpotMINI | MAJOR | GRAND
└ labelstring | null—ชื่อที่ agent ตั้งให้ระดับนี้
└ base_amount_thbstring—ยอดตั้งต้น (บาท, decimal string)
└ growth_per_day_thbstring—ยอดที่เพิ่มต่อวัน (บาท, decimal string)
└ seeded_atstring (ISO 8601)—เวลาเริ่มนับ — reset ทุกครั้งที่มีคนถูกรางวัล ใช้เป็นจุดอ้างอิงคำนวณตัววิ่ง
└ recent_winnersobject[]—ผู้ชนะล่าสุดสูงสุด 10 รายการ (ใหม่สุดก่อน) สำหรับ marquee หน้าแรก
└ tierstring—ระดับที่ถูกรางวัลMINI | MAJOR | GRAND
└ member_maskedstring—username แบบปกปิด (เหลือ 3 ตัวแรก เช่น abc***) — ไม่มี PII
└ amount_thbstring—ยอดที่ถูกรางวัล (บาท, decimal string)
└ won_atstring (ISO 8601)—เวลาถูกรางวัล
ตัวอย่าง response
{
  "success": true,
  "code": 0,
  "message": "สำเร็จ",
  "data": {
    "template": "MODERN",
    "brand_name": "ABC888",
    "logo_url": "https://cdn.example.com/site/abc/logo.png",
    "favicon_url": "https://cdn.example.com/site/abc/favicon.ico",
    "primary_color": "#D4AF37",
    "secondary_color": "#1A1A2E",
    "background_image_url": null,
    "background_color": "#0F0F1A",
    "header_color": "#16162A",
    "footer_color": "#16162A",
    "header_style": "GRADIENT",
    "header_gradient_from": "#16162A",
    "header_gradient_to": "#2A1A3E",
    "header_gradient_angle": 180,
    "footer_style": "SOLID",
    "footer_gradient_from": null,
    "footer_gradient_to": null,
    "footer_gradient_angle": null,
    "homepage_banner_urls": [
      "https://cdn.example.com/site/abc/banner-1.jpg",
      "https://cdn.example.com/site/abc/banner-2.jpg"
    ],
    "info_strip_enabled": true,
    "info_strip_1_icon_url": "https://cdn.example.com/site/abc/info-1.svg",
    "info_strip_2_icon_url": null,
    "info_strip_3_icon_url": null,
    "info_strip_4_icon_url": null,
    "category_icon_slot_url": "https://cdn.example.com/site/abc/icon-slot.png",
    "category_icon_arcade_url": null,
    "category_icon_live_casino_url": null,
    "category_icon_sports_url": null,
    "category_icon_fishing_url": null,
    "category_icon_lottery_url": null,
    "nav_icon_games_url": null,
    "nav_icon_wallet_url": null,
    "nav_icon_promotions_url": "https://cdn.example.com/site/abc/icon-promo.png",
    "nav_icon_account_url": null,
    "account_icon_cashback_url": null,
    "account_icon_free_credit_url": null,
    "account_icon_daily_login_url": null,
    "account_icon_deposit_url": "https://cdn.example.com/site/abc/icon-deposit.png",
    "account_icon_withdraw_url": null,
    "account_icon_promotions_url": null,
    "account_icon_wheel_url": null,
    "account_icon_diamond_url": null,
    "account_icon_card_url": null,
    "account_icon_affiliate_url": null,
    "account_icon_transactions_url": null,
    "account_icon_contact_url": null,
    "account_icon_change_password_url": null,
    "account_icon_logout_url": null,
    "info_strip_1_title": "ฝาก-ถอนออโต้",
    "info_strip_1_desc": "ระบบอัตโนมัติ รวดเร็วใน 30 วินาที",
    "info_strip_2_title": "ปลอดภัย 100%",
    "info_strip_2_desc": "เว็บตรง มั่นคง ข้อมูลเข้ารหัส",
    "info_strip_3_title": null,
    "info_strip_3_desc": null,
    "info_strip_4_title": null,
    "info_strip_4_desc": null,
    "announcement_enabled": true,
    "announcement_text": "ระบบถอนปิดปรับปรุง 02:00-04:00",
    "announcement_link_url": null,
    "announcement_style": "MARQUEE",
    "homepage_banner_links": ["https://abc888.example.com/promotions", ""],
    "footer_text": "ABC888 คาสิโนออนไลน์อันดับ 1",
    "popup_enabled": true,
    "popup_image_url": "https://cdn.example.com/site/abc/popup.jpg",
    "popup_link_url": "https://abc888.example.com/promotions",
    "seo_title": "ABC888 — คาสิโนออนไลน์ ฝาก-ถอนออโต้",
    "seo_description": "สมัครสมาชิก ABC888 รับโบนัสต้อนรับ ฝาก-ถอนอัตโนมัติ 24 ชม.",
    "seo_og_image_url": "https://cdn.example.com/site/abc/og.jpg",
    "seo_keywords": ["คาสิโนออนไลน์", "สล็อต", "บาคาร่า"],
    "gtm_id": "GTM-N7X4K2P",
    "facebook_pixel_id": "1234567890123456",
    "contact_line_url": "https://line.me/R/ti/p/@abc888",
    "contact_telegram_url": "https://t.me/abc888",
    "livechat_embed_html": null,
    "otp_enabled": true,
    "wheel_enabled": true,
    "affiliate_enabled": true,
    "diamond_enabled": false,
    "daily_card_enabled": false,
    "jackpot_enabled": true,
    "jackpot": {
      "tiers": [
        {
          "tier": "MINI",
          "label": "มินิแจ็คพอต",
          "base_amount_thb": "10000.00",
          "growth_per_day_thb": "500.00",
          "seeded_at": "2026-07-01T00:00:00.000Z"
        },
        {
          "tier": "GRAND",
          "label": "แกรนด์แจ็คพอต",
          "base_amount_thb": "1000000.00",
          "growth_per_day_thb": "5000.00",
          "seeded_at": "2026-06-15T00:00:00.000Z"
        }
      ],
      "recent_winners": [
        {
          "tier": "MINI",
          "member_masked": "abc***",
          "amount_thb": "12500.00",
          "won_at": "2026-07-01T18:22:41.000Z"
        }
      ]
    }
  },
  "request_uuid": "c58f2a94-3d17-4b60-8e2c-9a4f7b1d0e35"
}

Error codes ที่พบได้

codeชื่อHTTPข้อความ
4002BAD_REQUEST400คำขอไม่ถูกต้องไม่รู้จักโดเมน agent หรือเว็บนี้ยังไม่ได้ตั้งค่า/ถูกปิดใช้งาน