Skip to content

Advanced create browser profile

Request

Create one browser profile with a full fingerprint configuration.

  • Preconditions: same plan and daily quota checks as quick create. The profile name must be unique within the team, coordinates must fall outside mainland China, and advancedSetting.ua must agree with uaVersion. A supplied proxyId must already exist in the team.
  • Effect: inserts the profile, its account credentials (encrypted at rest) and post-start configuration; consumes plan capacity and the daily creation counter. A custom platform URL also creates a site record.
  • Completion: synchronous. data holds the new profile ID.
  • Retry: not idempotent. A second call with the same explicit envName fails on the uniqueness check; without a name it creates a duplicate. There is no idempotency key. Do not retry blindly after a timeout — query state first.
  • Open API: no client operating system or version is read; kernels come from the published set only. Concurrent calls are not serialized.

Documented business errors: 19001, 19002, 19004, 19005, 19063, 19064, 19100, 19101, 19102, 19103, 19104, 19105, 19106, 19107, 19108, 19109, 19110, 19111, 19112, 19141, 19175. See Error Codes for what each code means. Any operation can additionally return the common codes.

Security
OpenApiBearer
Bodyapplication/jsonrequired
hostnameSourceinteger

Device name source:

  • 0 — custom
  • 1 — real
Default:0
Enum:01
Example:0
hostnamestring

Device name. Used when hostnameSource is 0.

Example:"test-123"
macAddressSourceinteger

MAC address source:

  • 0 — custom
  • 1 — real
Default:0
Enum:01
Example:0
macAddressstring

MAC address. Used when macAddressSource is 0.

Example:"07:DF:9E:B6:6B:88"
envNamestring, <= 100 characters

Profile name.

Example:"marketing-01"
browserTypeIdinteger(BrowserType)required

Browser type:

  • 1 — Chrome
  • 2 — Firefox
Enum:12
Example:1
operatorSystemIdinteger(OperatingSystem)required

Operating system:

  • 1 — Windows
  • 2 — macOS
  • 3 — Android
  • 4 — iOS
  • 5 — Linux
Enum:12345
Example:1
groupIdstring^\d+$

Existing group ID. 0 means ungrouped.

Example:"0"
groupNamestring, <= 50 characters

Group name. The group is looked up or created automatically when supplied.

Example:"Marketing"
tagIdsArray of strings

Tag IDs. An empty array means no tags.

Example:
[ "1800000000000301" ]
proxyIdstring^\d+$

Existing proxy ID. 0 means no proxy.

Example:"0"
proxyobject(ProxyInput)

Proxy connection details. When proxyId refers to an existing proxy, that proxy is reused; otherwise a new proxy is created from these fields.

isEncryptinteger(ToggleFlag)

Whether to encrypt the profile. Defaults to 0.

Enum:01
Example:0
envRemarkstring, <= 1500 characters

Profile remark.

Example:"Created through the Open API"
uaVersioninteger, >= 0

UA major version. Defaults to 0, meaning any.

Example:124
browserCoreinteger, >= 0

Kernel major version. Defaults to 0, which selects a published kernel automatically.

Example:124
systemBitTypeinteger(SystemBitType)

System bitness. Defaults to 1:

  • 0 — 32-bit
  • 1 — 64-bit
Default:1
Enum:01
Example:1
architectureinteger(Architecture)

CPU architecture. Defaults to 0:

  • 0 — x86
  • 1 — ARM
Default:0
Enum:01
Example:0
accountInfoobject(AccountInfo)

Platform account bound to the profile.

isShowAccountinteger(ToggleFlag)

Password protection switch.

Enum:01
Example:0
afterStartupConfigobject(AfterStartupConfigInput)

Behavior applied after the browser starts.

startupParamsArray of strings

Browser startup parameters.

Example:
[ "--disable-notifications" ]
cookiesstring

Cookies as a JSON text payload.

Example:"[{\"name\":\"sid\",\"value\":\"abc\"}]"
advancedSettingobject(AdvancedSetting)

Dynamic fingerprint configuration. Keys come from the profile advanced-settings protocol; each value may be a string, number, boolean, array, or object depending on the key.

Example:
{ "language": "en-US", "timezone": "America/Los_Angeles" }
disableAudiointeger(ToggleFlag)

Whether to block audio playback.

Enum:01
Example:0
disableVideointeger(ToggleFlag)

Whether to block video loading.

Enum:01
Example:0
disableImginteger(ToggleFlag)

Whether to block image loading.

Enum:01
Example:0
imgLimitSizeinteger, [ 0 .. 100000 ]

Maximum image size to load, in KB.

Example:1000
curl -i -X POST \
  https://api.morelogin.com/env/create/advanced \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "envName": "marketing-01",
    "browserTypeId": 1,
    "operatorSystemId": 1,
    "groupName": "Marketing",
    "isEncrypt": 0,
    "envRemark": "Created through the Open API",
    "uaVersion": 124,
    "browserCore": 124,
    "systemBitType": 1,
    "architecture": 0,
    "afterStartupConfig": {
      "afterStartup": 2,
      "autoOpenUrls": [
        "https://example.com"
      ],
      "stayOnCheckIPPage": false
    },
    "startupParams": [
      "--disable-notifications"
    ],
    "disableAudio": 0,
    "disableVideo": 0,
    "disableImg": 0,
    "hostnameSource": 0,
    "hostname": "test-123",
    "macAddressSource": 0,
    "macAddress": "07:DF:9E:B6:6B:88"
  }'

Responses

Success

Bodyapplication/json
codeintegerrequired

Return result code. 0 means success; other codes indicate exceptions.

Example:0
msgstring or nullrequired

Error message. Usually null on success.

Example:null
requestIdstring

Operation request ID. This field may be present when the request passes through the API gateway.

Example:"1d4f3ea968664593860b94b35d4ebf5e"
datastring(EnvironmentId)^[1-9]\d*$required

Browser profile (environment) ID. Serialized as a decimal string to avoid JavaScript precision loss on 64-bit integers.

Example:"1800000000000001"
Response
{ "code": 0, "msg": null, "data": "1800000000000001", "requestId": "1d4f3ea968664593860b94b35d4ebf5e" }