{
 "info": {
  "name": "AUG WorkSpace 本机控制面",
  "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
  "description": "由 harness/gen_postman.py 从接口注册表生成（客户面裁剪）。先设 baseUrl（缺省 http://127.0.0.1:8311）与 apiKey（账号中心生成的 AUG_API_KEY）。机器权威清单是 GET /v1/tools。"
 },
 "variable": [
  {
   "key": "baseUrl",
   "value": "http://127.0.0.1:8311"
  },
  {
   "key": "apiKey",
   "value": "<你的 AUG_API_KEY>"
  }
 ],
 "item": [
  {
   "name": "cookies",
   "item": [
    {
     "name": "GET /v1/profiles/{id}/cookies（export_cookies_json）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/cookies",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "cookies"
       ],
       "query": []
      },
      "description": "导出 profile 浏览器全部 cookie 为 JSON（全字段：name,value,domain,path,secure,**httpOnly**,expires(Unix 秒),**sameSite**,partitionKey。字段边界（WebKit 结构性，非本实现取舍）：sameSite 只支持 lax|strict（none 会被内核忽略）；partitionKey **不支持**（Foundation 无此表示）；httpOnly 双向支持。被丢弃的字段会逐条出现在回执 dropped 里——它与「服务端本来就没设这个属性」在导出侧同形，只有这个回报能区分二者。导入即权威（同身份 name+domain+path）：既有 HttpOnly 而写入侧 httpOnly=false 时，**同值** ⇒ 先删后写纠方向（回执 repaired 点名）；**值不同** ⇒ 回执 blocked 点名、不删旧值；显式过期（expires 在过去）⇒ 删除该身份旧条目（回执 deleted 点名）——这是清理历史错误 HttpOnly 的标志/删除原语。）"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/cookies（import_cookies_json）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/cookies",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "cookies"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"cookies\": []\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "按 JSON 注入 cookie（全字段：name,value,domain,path,secure,**httpOnly**,expires(Unix 秒),**sameSite**,partitionKey。字段边界（WebKit 结构性，非本实现取舍）：sameSite 只支持 lax|strict（none 会被内核忽略）；partitionKey **不支持**（Foundation 无此表示）；httpOnly 双向支持。被丢弃的字段会逐条出现在回执 dropped 里——它与「服务端本来就没设这个属性」在导出侧同形，只有这个回报能区分二者。导入即权威（同身份 name+domain+path）：既有 HttpOnly 而写入侧 httpOnly=false 时，**同值** ⇒ 先删后写纠方向（回执 repaired 点名）；**值不同** ⇒ 回执 blocked 点名、不删旧值；显式过期（expires 在过去）⇒ 删除该身份旧条目（回执 deleted 点名）——这是清理历史错误 HttpOnly 的标志/删除原语。）"
     },
     "response": []
    },
    {
     "name": "PUT /v1/profiles/{id}/cookies（replace_cookies_json）",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/cookies",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "cookies"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"cookies\": []\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "全量替换 cookie（先清空再注入 JSON，全字段；删除/修改/新增实时生效）。用于登录态切换到另一账号而不重启引擎"
     },
     "response": []
    }
   ]
  },
  {
   "name": "data",
   "item": [
    {
     "name": "POST /v1/profiles/{id}/clear-cache（clear_cache）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/clear-cache",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "clear-cache"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"origin\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "清 profile 浏览器缓存（≈ CDP Network.clearBrowserCache）。origin 缺省 = 清全部 HTTP/内存/Fetch 缓存；给了 origin = 只清该源。**范围不含 cookie/localStorage/IndexedDB**——那是 clear_data_for_origin 的事"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/clear-data（clear_data_for_origin）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/clear-data",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "clear-data"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"origin\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "清 profile 浏览器站点数据（≈ CDP Storage.clearDataForOrigin）：cookie/localStorage/IndexedDB/ServiceWorker/缓存。origin 缺省 = 全量。全量清时回执 cleared 为 null（WebKit 该 API 不给条数）"
     },
     "response": []
    }
   ]
  },
  {
   "name": "page",
   "item": [
    {
     "name": "GET /v1/audit（audit_log）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/audit?limit=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "audit"
       ],
       "query": [
        {
         "key": "limit",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "查这台机器上的**本地调用审计**（最近 N 条，新的在前）：时间/请求 id/工具/成功与否/机读码/耗时/档位。**只落本机、绝不外发**；**不记参数体**（所以查不到「你当时传了什么」，那是刻意的 —— 参数里有代理密码、cookie、TOTP）。要定位某一次调用，用它响应头里的 `X-Request-Id` 在这个清单里搜 `rid`。"
     },
     "response": []
    },
    {
     "name": "GET /v1/usage（usage_report）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/usage?days=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "usage"
       ],
       "query": [
        {
         "key": "days",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "本机用量自查：按**本地日历日**汇总这台机器上的调用（总数 / 成功失败 / 按天 / 按工具 / 按机读码 / 按传输），并把**资源占用**（档案、回收站、工作区）一起给你 —— 后者拿去和 `account.status()` 的 cap 比，前者就是「这段时间我调了多少」。`days=1` 就是今天（缺省 7，上限 90）。⚠️ 三条如实：① 数字是**下界**（审计只留一代、且可被 `AUG_AUDIT=0` 关掉）—— 报告里的 `coverage.truncated` 为 true 时说明更早的记录已被丢弃；② 只统计**本机**，不含参数体；③ 它**不**读云端，所以能在断网/离线租约期用。"
     },
     "response": []
    },
    {
     "name": "GET /v1/webhooks（webhook_list）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/webhooks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "webhooks"
       ],
       "query": []
      },
      "description": "列出本机登记的事件回调（本地回调，P3-⑫）。**只收回环/私网地址** —— 控制面带着你的 key，允许任意 URL 就等于给了别人一个 SSRF 跳板。"
     },
     "response": []
    },
    {
     "name": "POST /v1/webhooks（webhook_register）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/webhooks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "webhooks"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"url\": \"\",\n  \"events\": []\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "登记一个本地回调：事件发生时 POST 到你给的地址。**只收 IP 字面量或 localhost**，且必须是回环/RFC1918/IPv6 ULA（不收域名 —— 收域名要先解析，而解析结果会变＝DNS rebinding）。"
     },
     "response": []
    },
    {
     "name": "DELETE /v1/webhooks/{id}（webhook_delete）",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/webhooks/{id}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "webhooks",
        "{id}"
       ],
       "query": []
      },
      "description": "删除一个本地回调（幂等：已经不在⇒回 ok 且 already:true）。"
     },
     "response": []
    },
    {
     "name": "GET /v1/jobs（job_list）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/jobs?state=&limit=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "jobs"
       ],
       "query": [
        {
         "key": "state",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "limit",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "列出本机 Orchestrator 作业：状态/进度/预算/待审批数。**只读本机数据、零外发**；作业执行在本机（Team+），执行器要么走 call_tool，要么 attach GUI 已运行引擎。"
     },
     "response": []
    },
    {
     "name": "POST /v1/jobs（job_create）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/jobs",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "jobs"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"title\": \"\",\n  \"targets\": [],\n  \"plan\": [],\n  \"skill_name\": \"\",\n  \"skill_version\": \"\",\n  \"inputs\": \"\",\n  \"budget_cap_usd\": 1,\n  \"idempotency_key\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "建一个本机 Orchestrator 作业（Team+）。plan = 步骤数组（与 agent_runtime 的 12 工具同名，如 {\"action\":\"navigate\",\"url\":…}）或给 skill_name（+inputs）从技能注册表取步骤；声明了 agent 身份时，每个目标档案都须已 binding。"
     },
     "response": []
    },
    {
     "name": "GET /v1/jobs/{id}（job_show）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/jobs/{id}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "jobs",
        "{id}"
       ],
       "query": []
      },
      "description": "看单个 Orchestrator 作业的完整状态（含步骤计划/预算/待审批数）。"
     },
     "response": []
    },
    {
     "name": "POST /v1/jobs/{id}/cancel（job_cancel）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/jobs/{id}/cancel",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "jobs",
        "{id}",
        "cancel"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"code\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "请求取消一个 Orchestrator 作业。运行中先返回 stopping；worker 确认当前动作与资源收口后才进入 cancelled。"
     },
     "response": []
    },
    {
     "name": "GET /v1/operations（operation_list）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/operations?profile_id=&parent_job_id=&state=&after_revision=&limit=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "operations"
       ],
       "query": [
        {
         "key": "profile_id",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "parent_job_id",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "state",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "after_revision",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "limit",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "列出统一 OperationReceipt（生命周期、任务步骤、效果与资源状态）。GUI/REST/MCP 共用同一行状态，零云调用。"
     },
     "response": []
    },
    {
     "name": "GET /v1/operations/{id}（operation_show）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/operations/{id}?events=&after_seq=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "operations",
        "{id}"
       ],
       "query": [
        {
         "key": "events",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "after_seq",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "查看单个 OperationReceipt；events=true 时连同追加式阶段事件返回。"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/navigate（navigate）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/navigate",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "navigate"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"url\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "导航 profile 浏览器到 URL"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/evaluate（evaluate）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/evaluate",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "evaluate"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"js\": \"\",\n  \"await\": true,\n  \"frame\": 0\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "在 profile 浏览器执行 JS：缺省返回同步求值结果；await=true 时等 Promise 结算（等价 Selenium executeAsyncScript）"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles/{id}/current-url（current_url）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/current-url",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "current-url"
       ],
       "query": []
      },
      "description": "读 profile 当前页 URL（主框架 location.href；等价 Selenium driver.current_url）"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles/{id}/page-source（page_source）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/page-source?max_bytes=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "page-source"
       ],
       "query": [
        {
         "key": "max_bytes",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "取整页 HTML 源码（document.documentElement.outerHTML，等价 Selenium driver.page_source）。返回 {html, bytes, truncated}：**源码可能很大**，给 max_bytes 才截断，且截断必在 truncated 里报出"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles/{id}/screenshot（screenshot）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/screenshot?format=&max_width=&quality=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "screenshot"
       ],
       "query": [
        {
         "key": "format",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "max_width",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "quality",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "截取 profile 页面当前可视画面（native WKWebView takeSnapshot：所见即真实渲染，不受页面 canvas 加噪影响）。返回 image 内容块（AI 直接看图，配合 page_map 的 rect 同系坐标推理）。format 缺省 png；jpeg 可选 quality 0.1-1.0；max_width 限制输出宽度点数（Retina 下 1pt≈2px）"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/click（click）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/click",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "click"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"selector\": \"\",\n  \"element_id\": 0,\n  \"index\": 0,\n  \"human\": true,\n  \"pace\": 1,\n  \"input\": \"\",\n  \"frame\": 0\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "点击 profile 页面元素。selector=CSS 选择器；或 element_id=page_map 返回的稳定元素 id（填了则现场重解析为 sel 并覆盖 selector）。human:true → 真实 HID 拟人点击：CGEvent Bezier 轨迹+ 档案 persona 鼠标指纹，isTrusted=true 防 BOT，仅单前台 profile；缺省 JS 快速但 isTrusted=false"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/type（type）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/type",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "type"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"selector\": \"\",\n  \"element_id\": 0,\n  \"text\": \"\",\n  \"human\": true,\n  \"speed\": 0,\n  \"input\": \"\",\n  \"frame\": 0\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "在 profile 页面元素输入文本。selector=CSS 选择器；或 element_id=page_map 返回的元素 id（填了则现场重解析为 sel）。human:true → 真实 HID 拟人键入：CGEvent 逐字 + 档案 persona 指纹，防 BOT，仅单前台 profile；缺省 JS 注入快速但 isTrusted=false"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/key（key）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/key",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "key"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"key\": \"\",\n  \"selector\": \"\",\n  \"human\": true\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "对 profile 页面焦点元素（或 selector 指定元素）派发按键 keydown/keyup（JS，isTrusted=false → 浏览器原生提交/原生行为不触发）。human:true + key=Enter → 可信原生 Return（真实 HID CGEvent，isTrusted=true 触发原生提交/确认，仅单前台 profile；其余键走 JS dispatch）"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/hover（hover）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/hover",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "hover"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"selector\": \"\",\n  \"element_id\": 0,\n  \"index\": 0,\n  \"pace\": 1,\n  \"frame\": 0\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "拟人悬停 profile 页面首个匹配 selector 元素（真实 HID：CGEvent 移到元素中心 + 停留，isTrusted=true 触发 hover 态/CSS :hover，防 BOT）。HID 路径=单前台 profile 依赖，非并发安全；并发自动化勿用（改 JS focus/样式绕过）。selector 或 element_id 二选一"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/fill_credential（fill_credential）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/fill_credential",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "fill_credential"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "把本档案在**当前页 host** 下保存的登录凭据填进页面登录表单。凭据**不过桥**：原生从本机钥匙串取出直接填 DOM，响应里只有 filled/username/reason，**永不回密码**。reason ∈ no-active-page / no-saved-credential / no-password-field。与浏览器菜单「填充密码」同一条路径；多账号本期取第一条。"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/save_credential（save_credential）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/save_credential",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "save_credential"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"username\": \"\",\n  \"password\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "把调用方给的登录凭据写进本档案的钥匙串（与浏览器内保存同一条路径、同 host 同用户名合并）。**host 由引擎取当前页**——不接受调用方指定，避免把凭据写进与当前页无关的站点条目。密码不回显、不进日志；下次 `fill_credential` 即可使用。"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/wait（wait_for）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/wait",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "wait"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"selector\": \"\",\n  \"timeout\": 1,\n  \"interval\": 1\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "轮询等待 profile 页面首个匹配 selector 出现；超时返回结构化 timeout 错误"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles/{id}/read（read）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/read?selector=&frame=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "read"
       ],
       "query": [
        {
         "key": "selector",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "frame",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "读取 profile 页面首个匹配 selector 的文本"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles/{id}/page-map（page_map）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/page-map?max_elements=&text_limit=&byte_budget=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "page-map"
       ],
       "query": [
        {
         "key": "max_elements",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "text_limit",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "byte_budget",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "导出现页 DOM 结构地图（页面骨架 + ≤200 个可见交互元素的 id/tag/role/text/sel/rect），供 AI 看清页面并寻址。返回 dict：{url, title, viewport, skeleton, elements[], truncated}。元素 rect 为视口 CSS px（与 screenshot 同坐标系）。取动作时用 elements[i].id 作为 element_id，或直接用 elements[i].sel 作 selector——两者等效（element_id 每次现场重解析防 stale）。只读布局枚举：不写任何 DOM 属性、不读 canvas、无 marker 符号 → 指纹零暴露"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles/{id}/history（history）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/history?query=&limit=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "history"
       ],
       "query": [
        {
         "key": "query",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "limit",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "查询档案浏览历史（最近访问的网页，url/title/时间戳，最新在前；预热导航不记录）"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles/{id}/detect-block（detect_block）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/detect-block",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "detect-block"
       ],
       "query": []
      },
      "description": "探测 profile 当前页风控/验证码信号（recaptcha/hcaptcha/Cloudflare/频率限制等）"
     },
     "response": []
    }
   ]
  },
  {
   "name": "profiles",
   "item": [
    {
     "name": "POST /v1/profiles（create_profile）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles"
       ],
       "query": []
      },
      "description": "API 建档：不经 GUI 新建 profile（企业接入 A2）。支持传入代理(socks5/http+账号密码)/时区/语言/UA/WebRTC策略/音频与画布保护/更严格的画布防关联/标签页画布防关联/预置 cookie/Passkey。与 GUI 建档同一生成路径，落同一 ProfileStore。返回新建的 id 列表。"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles（list_profiles）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles?workspace_id=&limit=&cursor=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles"
       ],
       "query": [
        {
         "key": "workspace_id",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "limit",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "cursor",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "列出 profile 摘要（代理密码脱敏；含工作区分组）。**分页**：给了 limit 或 cursor 时返回 `{items,total,limit,offset,has_more,next_cursor}`；**两个都不给时返回裸数组=全量**（与从前逐字相同；分页是显式选择，绝不静默截断）。企业档最多 1000 个档，一次全拉响应很大 ⇒ 建议 limit<=200 翻页。"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles/{id}（get_profile）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}?include_secret=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}"
       ],
       "query": [
        {
         "key": "include_secret",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "读取单个 profile 完整数据（代理凭据与身份根密钥脱敏）"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles/{id}/status（profile_status）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/status?timeout=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "status"
       ],
       "query": [
        {
         "key": "timeout",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "查档案**运行态**：该档的浏览器现在在不在跑、bridge 端口、当前标签页/URL（对应兼容产品的 `browser-profile/active`）。批量给 `ids` 时并发探测（短超时）。⚠️ 判据是**真连一次 bridge**（连不上=没在跑），不是读某个状态文件 —— 状态文件会撒谎：引擎崩了、被 kill -9、GUI 强退都会留下\"看起来在跑\"的残迹。"
     },
     "response": []
    },
    {
     "name": "PUT /v1/profiles/{id}（update_profile）",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"notes\": \"\",\n  \"page_script_policy\": \"\",\n  \"totp_secret\": \"\",\n  \"passkey\": true,\n  \"passkey_uv\": \"\",\n  \"save_password\": \"\",\n  \"proxy_settings\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "回写档案的可变元数据（企业接入清单 §三-7）。**每个键都是可选的，但至少要给一个**（`notes`、`passkey`、`page_script_policy`、`proxy_settings` 写档案 JSON；`totp_secret` 写独立 secret 落库，见参数说明）。改的是 ProfileStore 里的档案 JSON，**下次启动生效**——正在运行的档案不会热改内存态。"
     },
     "response": []
    },
    {
     "name": "DELETE /v1/profiles/{id}（delete_profile）",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}"
       ],
       "query": []
      },
      "description": "删除档案（**软删**：移入回收站，可 restore_profile 恢复）。与 GUI 回收站**同一目录、同一动作**：只把 `Profiles/<id>.json` 搬成 `Trash/<id>.json`，**不删**浏览数据（cookies/历史/密码原样保留，恢复后即可用）——彻底擦除用 purge_profile。本进程（MCP/API）启动的浏览器会先被优雅停止（SIGTERM，引擎自存 cookie jar 后退出）；**非本进程启动的**（GUI 起的档）则**拒绝删除**并报出 pid —— 把在跑的档搬走会让 GUI失去对它的引用，请先在 GUI 停止。顺带把云端**登记**注销（让出 `profiles_cap` 名额，best-effort，结果在嵌套的 `cloud` 键里；注销**可逆**且不碰密文与恢复材料）。"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/restore（restore_profile）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/restore",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "restore"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "从回收站恢复档案（`Trash/<id>.json` → `Profiles/<id>.json`，与 GUI 回收站的「恢复」同一动作）。浏览数据本来就没被删，恢复后直接 launch_profile 即可。库中已存在同 id 档案时**拒绝**（覆盖会静默吃掉库里那一份）。顺带把云端**登记**复登（重新占用 `profiles_cap` 名额，与 delete_profile 的注销**对称、可逆**；best-effort，结果在嵌套的 `cloud` 键里）。"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/launch（launch_profile）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/launch",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "launch"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"url\": \"\",\n  \"runtimeProxy\": \"\",\n  \"idempotencyKey\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "启动 profile 浏览器。transport=native 的静态代理由 WebKit 直连上游；legacy/SSH/chainProxy 使用兼容 socks_fwd。无需 GUI。可传 runtimeProxy 做**本次会话的出口覆盖**（档案 JSON 一个字节不动）。API/MCP 启动按**无人值守会话**对待：passkey 的 create/sign 自动应答（不弹系统验身、UV 置位）。成功回执只在进程、Bridge 与首个 tab 都就绪后返回；首导航另以 completed|unconfirmed|not_required 显式报告。"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/stop（stop_profile）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/stop",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "stop"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"idempotencyKey\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "优雅关闭本 MCP 进程启动的 profile 浏览器：SIGTERM → 等引擎自存 cookie jar 并确认进程退出后，才注销会话并释放资源租约；5 秒内未退出返回 process_stop_timeout，不伪装成功。仅作用于 api_sessions 记录（launch_profile 启动）的进程——GUI 启动的档案不在记录，返回 stopped:false，请用 GUI 停止（绝不误伤 GUI 档）。代理档的 socks5 转发器一并停。"
     },
     "response": []
    }
   ]
  },
  {
   "name": "tabs",
   "item": [
    {
     "name": "GET /v1/profiles/{id}/tabs（tabs）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/tabs",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "tabs"
       ],
       "query": []
      },
      "description": "列出 profile 浏览器当前标签页"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/tabs（new_tab）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/tabs",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "tabs"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"url\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "profile 浏览器新建标签页并导航到 URL（缺省 example.com）"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/tabs/{index}/activate（switch_tab）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/tabs/{index}/activate",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "tabs",
        "{index}",
        "activate"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "profile 浏览器切换到第 index 个标签页"
     },
     "response": []
    },
    {
     "name": "DELETE /v1/profiles/{id}/tabs/{index}（close_tab）",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/tabs/{index}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "tabs",
        "{index}"
       ],
       "query": []
      },
      "description": "profile 浏览器关闭第 index 个标签页"
     },
     "response": []
    }
   ]
  },
  {
   "name": "trash",
   "item": [
    {
     "name": "GET /v1/trash（list_trash）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/trash?limit=&cursor=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "trash"
       ],
       "query": [
        {
         "key": "limit",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "cursor",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "列出回收站里的档案（软删的档）。与 GUI 回收站是**同一份内容**。分页语义与 `list_profiles` **逐字相同**（给 limit/cursor 才返回分页信封）。"
     },
     "response": []
    },
    {
     "name": "DELETE /v1/trash/{id}（purge_profile）",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/trash/{id}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "trash",
        "{id}"
       ],
       "query": []
      },
      "description": "从回收站**彻底删除**档案：引擎 `--dispose` 擦除该档的 WebKit datastore ＋ sidecar（History/Downloads/Sessions/Bookmarks/CookieJars/Secrets/Passkeys）＋ Keychain 密码，然后删掉回收站里的 JSON 与（仅当为空时）该档的数据目录。**不可恢复。**⚠️ 只接受**已在回收站**的档案（先 delete_profile）——刻意不留「一次调用直接抹掉在库档案」的路径，回收站那一步就是撤销窗口。⚠️ 引擎擦除失败/超时时**不删** JSON 并报错：宁可让你重试，也不回一个「已销毁」而实际没擦干净。"
     },
     "response": []
    }
   ]
  },
  {
   "name": "workspaces",
   "item": [
    {
     "name": "GET /v1/workspaces（workspace_list）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/workspaces?include_default=&with_members=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "workspaces"
       ],
       "query": [
        {
         "key": "include_default",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        },
        {
         "key": "with_members",
         "value": "",
         "disabled": true,
         "description": "可选（见 openapi.json 的 schema）"
        }
       ]
      },
      "description": "列出工作区（档案分组＝企业接入清单 §二-12 `group_id`）。与 GUI 的工作区页同一份数据。"
     },
     "response": []
    },
    {
     "name": "POST /v1/workspaces（workspace_create）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/workspaces",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "workspaces"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"name\": \"\",\n  \"names\": []\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "新建工作区（＝建一个分组；`group_id` 的目标）。**批量**：`names` 传数组（一次加锁一次写盘），重名/空名/保留名逐条如实报告（`skipped`）；单值 `name` 形态与旧版逐字兼容。"
     },
     "response": []
    },
    {
     "name": "PUT /v1/workspaces/{workspace_id}（workspace_rename）",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/workspaces/{workspace_id}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "workspaces",
        "{workspace_id}"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"name\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "重命名工作区（`default` 桶不可改名）。"
     },
     "response": []
    },
    {
     "name": "DELETE /v1/workspaces/{workspace_id}（workspace_delete）",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/workspaces/{workspace_id}",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "workspaces",
        "{workspace_id}"
       ],
       "query": []
      },
      "description": "删除工作区（**只删分组本身与归属，不动任何档案本体** —— 与 GUI 一致）。回执里 `untagged_profiles` 列出因此少了一个分组标记的档案 id。**批量**：`workspace_ids` 传数组（一次加锁一次写盘）；`default`/不存在的 id 进 `refused` 并说明。"
     },
     "response": []
    },
    {
     "name": "POST /v1/workspaces/batch_delete（workspace_delete）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/workspaces/batch_delete",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "workspaces",
        "batch_delete"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"workspace_id\": \"\",\n  \"workspace_ids\": []\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "删除工作区（**只删分组本身与归属，不动任何档案本体** —— 与 GUI 一致）。回执里 `untagged_profiles` 列出因此少了一个分组标记的档案 id。**批量**：`workspace_ids` 传数组（一次加锁一次写盘）；`default`/不存在的 id 进 `refused` 并说明。"
     },
     "response": []
    },
    {
     "name": "POST /v1/profiles/{id}/workspaces（profile_workspaces）",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/workspaces",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "workspaces"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"add\": [],\n  \"remove\": []\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "查 / 改某个档案的工作区归属（`group_id` 的读写口）。**多标签**：一个档案可同时属多个工作区。只给 id = 只读当前归属；给 add/remove = 改。工作区名或 id 都可以。"
     },
     "response": []
    },
    {
     "name": "GET /v1/profiles/{id}/workspaces（profile_workspaces）",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Authorization",
        "value": "Bearer {{apiKey}}"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/v1/profiles/{id}/workspaces",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "v1",
        "profiles",
        "{id}",
        "workspaces"
       ],
       "query": []
      },
      "description": "查 / 改某个档案的工作区归属（`group_id` 的读写口）。**多标签**：一个档案可同时属多个工作区。只给 id = 只读当前归属；给 add/remove = 改。工作区名或 id 都可以。"
     },
     "response": []
    }
   ]
  }
 ]
}
