# 高级创建浏览器

创建一个浏览器，并指定完整的指纹配置。
- **前置条件**
：与快速创建相同的套餐额度与当日配额校验。浏览器名称在团队内必须唯一，坐标必须落在中国大陆以外，且
`advancedSetting.ua`
 必须与
`uaVersion`
 一致。传入的
`proxyId`
 必须已存在于团队中。
- **副作用**
：写入浏览器、其账号凭据（加密存储）和启动后配置；消耗套餐额度与当日创建计数。自定义平台 URL 还会新增一条站点记录。
- **完成信号**
：同步。
`data`
 是新建浏览器的 ID。
- **重试**
：不幂等。显式传了相同
`envName`
 的第二次调用会因唯一性校验失败；不传名称则会重复创建。没有幂等键。超时后不要盲目重试，先查询状态。
- **Open API**
：不读取任何客户端操作系统或版本；内核仅来自已发布集合。
**并发调用不会被串行化。**

已记录的业务错误码：`19001`, `19002`, `19004`, `19005`, `19063`, `19064`, `19100`, `19101`, `19102`, `19103`, `19104`, `19105`, `19106`, `19107`, `19108`, `19109`, `19110`, `19111`, `19112`, `19141`, `19175`。 各错误码的含义见 [Error Codes](/zh/api-reference/getting-started/error-codes)。任何接口还可能返回通用错误码。

Endpoint: POST /env/create/advanced
Version: 2026-09-05
Security: OpenApiBearer

## Security:

  - `OpenApiBearer` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `hostnameSource` (integer)
    设备名称来源：
- `0`
 — 自定义
- `1`
 — 真实
    Enum: "0", "1"

  - `hostname` (string)
    设备名称。当 `hostnameSource` 为 `0` 时使用。
    Example: test-123

  - `macAddressSource` (integer)
    MAC 地址来源：
- `0`
 — 自定义
- `1`
 — 真实
    Enum: "0", "1"

  - `macAddress` (string)
    MAC 地址。当 `macAddressSource` 为 `0` 时使用。
    Example: 07:DF:9E:B6:6B:88

  - `envName` (string)
    浏览器名称。
    Example: marketing-01

  - `browserTypeId` (integer, required)
    浏览器类型：
- `1`
 — Chrome
- `2`
 — Firefox
    Enum: "1", "2"

  - `operatorSystemId` (integer, required)
    操作系统：
- `1`
 — Windows
- `2`
 — macOS
- `3`
 — Android
- `4`
 — iOS
- `5`
 — Linux
    Enum: "1", "2", "3", "4", "5"

  - `groupId` (string)
    已有分组 ID。`0` 表示未分组。
    Example: 0

  - `groupName` (string)
    分组名称。传入后会自动查找或创建该分组。
    Example: Marketing

  - `tagIds` (array)
    标签 ID 列表。空数组表示不带标签。
    Example: ["1800000000000301"]

  - `proxyId` (string)
    已有代理 ID。`0` 表示不使用代理。
    Example: 0

  - `proxy` (object)
    代理连接信息。当 `proxyId` 指向已有代理时复用该代理；否则用这些字段新建代理。

  - `proxy.skipDuplicateProxy` (boolean)
    通过连接信息配置代理且未指定已有 `proxyId` 时生效。 设为 `true` 时复用匹配的代理，找不到匹配项时新建。设为 `false` 时即使已有匹配的代理也会新建。

  - `proxy.proxyId` (string)
    已有代理 ID。
    Example: 1800000000000101

  - `proxy.proxyIp` (string)
    代理主机或 IP 地址。
    Example: 127.0.0.1

  - `proxy.proxyPort` (integer)
    代理端口。
    Example: 1080

  - `proxy.proxyName` (string)
    代理名称。
    Example: proxy-a

  - `proxy.proxyType` (integer)
    代理协议：
- `0`
 — HTTP
- `1`
 — HTTPS
- `2`
 — SOCKS5
- `3`
 — SSH
    Enum: "0", "1", "2", "3"

  - `proxy.proxyProvider` (integer)
    代理类型。`0` 到 `3` 表示对应协议的普通代理；`4` 及以上标识商业代理类型：
- `0`
 — HTTP
- `1`
 — HTTPS
- `2`
 — SOCKS5
- `3`
 — SSH
- `4`
 — Oxylabs
- `5`
 — Proxys.io
- `6`
 — GeoSurf
- `7`
 — Luminati
- `8`
 — Lumauto
- `9`
 — Oxylabsauto
- `10`
 — Trojan
- `11`
 — Shadowsocks
- `12`
 — vmess
- `13`
 — ABCProxy
- `14`
 — LunaProxy
- `15`
 — IPHTML
- `16`
 — PiaProxy
- `17`
 — 922S5
- `18`
 — 360Proxy

未知的新增取值请按通用商业代理类型处理。
    Example: 0

  - `proxy.ipMonitor` (boolean)
    是否监控出口 IP 变化。
    Example: true

  - `proxy.ipChangeAction` (integer)
    出口 IP 变化后采取的动作。
    Example: 0

  - `proxy.username` (string)
    代理用户名。
    Example: user

  - `proxy.password` (string)
    代理密码。
    Example: pass

  - `proxy.refreshUrl` (string)
    代理刷新 URL。
    Example: https://example.com/refresh

  - `proxy.encryptionType` (integer)
    代理加密方式。
    Example: 0

  - `proxy.country` (string)
    国家或地区。
    Example: US

  - `proxy.state` (string)
    州或省。
    Example: CA

  - `proxy.city` (string)
    城市。
    Example: Los Angeles

  - `isEncrypt` (integer)
    是否加密该浏览器。默认 `0`。
    Enum: "0", "1"

  - `envRemark` (string)
    浏览器备注。
    Example: Created through the Open API

  - `uaVersion` (integer)
    UA 主版本号。默认 `0`，表示不限。
    Example: 124

  - `browserCore` (integer)
    内核主版本号。默认 `0`，表示自动选择已发布内核。
    Example: 124

  - `systemBitType` (integer)
    系统位数。默认 `1`：
- `0`
 — 32 位
- `1`
 — 64 位
    Enum: "0", "1"

  - `architecture` (integer)
    CPU 架构，默认 `0`：
- `0`
 — x86
- `1`
 — ARM
    Enum: "0", "1"

  - `accountInfo` (object)
    绑定到该浏览器的平台账号。

  - `accountInfo.username` (string)
    平台账号用户名。
    Example: account@example.com

  - `accountInfo.password` (string)
    平台账号密码。
    Example: secret

  - `accountInfo.siteId` (string)
    站点 ID。
    Example: 1800000000000201

  - `accountInfo.platformId` (string, required)
    平台 ID。`9999` 表示自定义平台。
    Example: 9999

  - `accountInfo.customerUrl` (string)
    自定义平台 URL。当 `platformId` 为 `9999` 时必填，必须是合法 URL。
    Example: https://example.com

  - `accountInfo.otpSecret` (string)
    双因素认证（2FA）密钥。
    Example: BASE32SECRET

  - `isShowAccount` (integer)
    密码保护开关。
    Enum: "0", "1"

  - `afterStartupConfig` (object)
    浏览器启动后的行为。

  - `afterStartupConfig.afterStartup` (integer)
    启动行为。默认 `1`：
- `1`
 — 重新打开上次会话的页面
- `2`
 — 打开指定页面
- `3`
 — 打开指定页面和平台
- `4`
 — 重新打开上次会话的页面和平台
    Enum: "1", "2", "3", "4"

  - `afterStartupConfig.autoOpenUrls` (array)
    启动后自动打开的页面。每项必须是合法 URL。
    Example: ["https://example.com"]

  - `afterStartupConfig.stayOnCheckIPPage` (boolean)
    启动后是否停留在 IP 检测页面。
    Example: false

  - `startupParams` (array)
    浏览器启动参数。
    Example: ["--disable-notifications"]

  - `cookies` (string)
    以 JSON 文本形式提供的 Cookie。
    Example: [{"name":"sid","value":"abc"}]

  - `advancedSetting` (object)
    动态指纹配置。键来自浏览器高级设置协议；每个值可能是字符串、数字、布尔、数组或对象，取决于具体的键。
    Example: {"language":"en-US","timezone":"America/Los_Angeles"}

  - `disableAudio` (integer)
    是否禁止音频播放。
    Enum: "0", "1"

  - `disableVideo` (integer)
    是否禁止视频加载。
    Enum: "0", "1"

  - `disableImg` (integer)
    是否禁止图片加载。
    Enum: "0", "1"

  - `imgLimitSize` (integer)
    允许加载的图片最大尺寸，单位 KB。
    Example: 1000

## Response 200:

  - `200` (unknown)
    成功

## Response 200 fields (application/json):

  - `code` (integer, required)
    Return result code. `0` means success; other codes indicate exceptions.
    Example: 0

  - `msg` (string | null, required)
    Error message. Usually `null` on success.
    Example: null

  - `requestId` (string)
    Operation request ID. This field may be present when the request passes through the API gateway.
    Example: 1d4f3ea968664593860b94b35d4ebf5e

  - `data` (string, required)
    Browser profile (environment) ID. Serialized as a decimal string to avoid JavaScript
precision loss on 64-bit integers.
    Example: 1800000000000001

