# ブラウザプロファイルを開始する

プロファイルの起動に使用します。プロファイルIDを指定する必要があります。起動が成功すると、プロファイルのデバッグインターフェースを取得して、SeleniumおよびPuppeteerによる自動化を実行できます。Seleniumを使用する場合は、対応するカーネルバージョンに一致するWebDriverを使用してください。WebDriverのパスは、プロファイル起動後のレスポンスから取得できます。MoreLoginクライアントバージョン2.15.0以降が必要です。

Endpoint: POST /api/env/start
Version: 1.0.0

## Request fields (application/json):

  - `envId` (string)
    環境ID。`envId`または`uniqueId`のいずれか、少なくとも1つを指定する必要があります。
両方が指定されている場合は、`envId`が優先されます。
    Example: 1993244721490239488

  - `uniqueId` (integer)
    環境シリアル番号（小整数ID）。`envId`または`uniqueId`のいずれか一方を必ず指定してください。
両方が指定されている場合は、`envId`が優先されます。
    Example: 1

  - `encryptKey` (string)
    暗号化キー。環境においてエンドツーエンド暗号化が有効になっている場合にのみ必要です。
    Example: xxx

  - `isHeadless` (boolean)
    ヘッドレスモードで起動するかどうか。省略した場合、デフォルトは`false`になります。
注：クライアントバージョンv2.36.0以降が必要です。
    Example: false

  - `cdpEvasion` (boolean)
    CDPフィンガープリント回避機能を有効にして、検出リスクを低減します。
PC環境のみに適用されます。
デフォルト：false
注：クライアントバージョンv2.36.0以降が必要です。
    Example: false

  - `closeCheckIPPage` (boolean)
    Whether to skip opening the detection page.
true: Proxy detection before execution
false: Proxy detection after execution
Note: Requires client version v2.56.0 or higher.
    Example: false

  - `checkIPErrorHandle` (integer)
    Action to take if proxy detection fails
Numeric type: 1 or 2
1: Do not start the environment if proxy detection fails
2: Start the environment even if proxy detection fails
If closeCheckIPPage is passed a parameter, this parameter is omitted; default: 1
Note: Requires client version v2.56.0 or higher.
    Example: 1

## Response 200 fields (application/json):

  - `code` (integer)

  - `msg` (string)

  - `data` (object, required)

  - `data.envId` (string, required)
    プロファイル

  - `data.debugPort` (string, required)

  - `data.type` (string, required)

  - `data.version` (integer, required)

  - `data.webdriver` (string, required)

