# ブラウザープロファイルを高度な設定で作成

完全な指紋設定を持つブラウザープロファイルを 1 件作成します。
- **前提条件**
：クイック作成と同じプランおよび当日上限のチェックが行われます。プロファイル名はチーム内で一意であること、座標は中国本土の外であること、
`advancedSetting.ua`
 は
`uaVersion`
 と整合していることが必要です。
`proxyId`
 を指定する場合、それがチーム内に既に存在していなければなりません。
- **副作用**
：プロファイル、そのアカウント資格情報（保存時に暗号化）、起動後設定を挿入し、プランの容量と当日作成カウンターを消費します。カスタムプラットフォーム URL を指定するとサイトレコードも作成されます。
- **完了シグナル**
：同期的です。
`data`
 に新しいプロファイル ID が入ります。
- **リトライ**
：冪等ではありません。同じ
`envName`
 を明示した 2 回目の呼び出しは一意性チェックで失敗し、名前を指定しない場合は重複が作られます。冪等キーはありません。タイムアウト後に無条件でリトライせず、まず状態を照会してください。
- **Open API**
：クライアントの OS やバージョンは一切読み取らず、カーネルは公開済みの集合のみから選ばれます。
**同時呼び出しは直列化されません。**

文書化されたビジネスエラー: `19001`, `19002`, `19004`, `19005`, `19063`, `19064`, `19100`, `19101`, `19102`, `19103`, `19104`, `19105`, `19106`, `19107`, `19108`, `19109`, `19110`, `19111`, `19112`, `19141`, `19175`。 各コードの意味は [Error Codes](/ja/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)
    2 要素認証（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

