{
  "info": {
    "name": "TikTok & TikTok Shop VN OpenAPI v1 (TikToday Compatible)",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Trọn bộ 12 API v1 chuẩn developers.tiktoday.vn + Admin API quản trị hệ thống."
  },
  "variable": [
    { "key": "baseUrl", "value": "http://localhost:8088" },
    { "key": "apiKey", "value": "ttk_live_w72GgUQO8LMa4woIcNxVBma7SdD0MFvI" },
    { "key": "adminSecret", "value": "ttk_admin_dev_secret_2026" }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{apiKey}}", "type": "string" }]
  },
  "item": [
    {
      "name": "Health v1",
      "item": [
        {
          "name": "GET /health/v1/check",
          "request": { "method": "GET", "url": "{{baseUrl}}/health/v1/check" }
        }
      ]
    },
    {
      "name": "Creator v1",
      "item": [
        {
          "name": "GET Creator Profile",
          "request": { "method": "GET", "url": "{{baseUrl}}/creator/v1/creators/nghecontent9699/profile" }
        },
        {
          "name": "GET Creator Affiliate",
          "request": { "method": "GET", "url": "{{baseUrl}}/creator/v1/creators/linh.beauty.vn/affiliate" }
        },
        {
          "name": "POST Search Creators",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\"keyword\":\"beauty\",\"count\":20}" },
            "url": "{{baseUrl}}/creator/v1/creators/search"
          }
        },
        {
          "name": "GET Creator Videos",
          "request": { "method": "GET", "url": "{{baseUrl}}/creator/v1/creators/nghecontent9699/videos?limit=20" }
        }
      ]
    },
    {
      "name": "Product v1",
      "item": [
        {
          "name": "GET Product Details",
          "request": { "method": "GET", "url": "{{baseUrl}}/product/v1/products/1729385000000008888/details" }
        },
        {
          "name": "POST Search Products",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\"query\":\"son kem lì\",\"limit\":20}" },
            "url": "{{baseUrl}}/product/v1/products/search"
          }
        },
        {
          "name": "GET Product Affiliate",
          "request": { "method": "GET", "url": "{{baseUrl}}/product/v1/products/1729385000000008888/affiliate" }
        },
        {
          "name": "POST Search Product Affiliates",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\"query\":\"son kem lì\",\"min_commission_rate\":0.1,\"limit\":20}" },
            "url": "{{baseUrl}}/product/v1/products/affiliate/search"
          }
        }
      ]
    },
    {
      "name": "Video v1",
      "item": [
        {
          "name": "GET Video Details",
          "request": { "method": "GET", "url": "{{baseUrl}}/video/v1/videos/7706485198715768084" }
        },
        {
          "name": "POST Search Videos",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\"query\":\"AI\",\"limit\":20}" },
            "url": "{{baseUrl}}/video/v1/videos/search"
          }
        },
        {
          "name": "POST Video Play URL",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\"url\":\"https://www.tiktok.com/@nghecontent9699/video/7706485198715768084\"}" },
            "url": "{{baseUrl}}/video/v1/videos/play-url"
          }
        }
      ]
    },
    {
      "name": "Admin v1",
      "auth": { "type": "noauth" },
      "item": [
        {
          "name": "GET Admin Stats",
          "request": {
            "method": "GET",
            "header": [{ "key": "X-Admin-Secret", "value": "{{adminSecret}}" }],
            "url": "{{baseUrl}}/admin/v1/stats"
          }
        },
        {
          "name": "GET Browse Creators",
          "request": {
            "method": "GET",
            "header": [{ "key": "X-Admin-Secret", "value": "{{adminSecret}}" }],
            "url": "{{baseUrl}}/admin/v1/data/creators?limit=25"
          }
        }
      ]
    }
  ]
}
