Skip to content

Create a profile ​

Create a browser profile and return its new ID.

Definition: ApiFox POST · ApiFox checked on 2026-10-21; client source checked on 2026-11-04.

Request ​

http
POST /api/addBrowser

Use the base URL and api-key shown on the client API screen. All examples use 9000 only as a placeholder port; see Overview for authentication.

JSON body ​

The table lists fields accepted by the current client. Create generates id; update requires an existing numeric id (marked *). Other fields are optional; a supplied nested object replaces the entire object, so retain needed subfields.

Types below are recommended formats; the HTTP layer does not validate every nested field, and effective behavior depends on the client and core version.

FieldTypeRequiredDescription
idinteger*Generated by the client on create; required as an existing numeric ID on update
namestringNoProfile name; omitted or empty names are generated on create
groupstring / string[]NoGroup name(s); a string array is recommended
remarkstringNoProfile remark
osstringNoUI values: Win 7, Win 8, Win 10, Win 11, macOS, Linux; filtered by host platform
chrome_versioninteger / stringNoChromium major version; create uses the generated configuration when omitted
core_versionstring / integerNoauto, an installed full version or major; aliases coreVersion, kernel_version, kernelVersion; a major selects the highest installed match
proxyobjectNoProxy object; update replaces the whole object
proxy.modeintegerNo0: default, 1: no proxy, 2: custom
proxy.valuestringNoLegacy proxy string; UI attempts to parse it when mode=2 and host is empty; prefer protocol, host and port for new profiles
proxy.protocolstringNoUppercase protocol: HTTP, HTTPS, SOCKS5 or SSH
proxy.hoststringNoFor a custom proxy, use hostname or IP, e.g. proxy.example.com; omit scheme and port
proxy.portstring / numberNoStandard port range 1–65535; numeric strings such as "8080" recommended; not enforced by API
proxy.userstringNoProxy username; empty if unused; do not publish
proxy.passstringNoProxy password; empty if unused; do not publish
proxy.APIstringNoDynamic proxy extraction URL; it may contain secrets
proxy.urlstringNoUI generates this from protocol, host, port and authentication when saving a custom proxy; HTTP does not run UI preprocessing; retain existing value
proxy.countrystringNoCountry/region from proxy check, e.g. CA; API does not check automatically; omit or retain existing value
proxy.checkFailedbooleanNoProxy-check status; generally maintained by the client
cookieobjectNoCookie configuration; never publish sensitive data
cookie.modeintegerNoNew-profile default is 0; UI mode switch is commented out; import via jsonStr rather than changing this
cookie.valuestringNoDefaults to an empty string; UI currently imports via jsonStr; avoid manually setting this legacy field
cookie.jsonStrstringNoJSON string containing a Cookie array, e.g. "[]"; update may replace all cookies, so back up first
homepageobjectNoHomepage configuration object
homepage.modeintegerNo0 default, 1 custom homepage
homepage.valuestringNoFor mode=1 provide URLs separated by semicolons, e.g. https://example.com;https://example.org
uaobjectNoUser-Agent configuration object
ua.modeintegerNo0 default, 1 custom
ua.valuestringNoUser-Agent; keep consistent with the core and OS
ua-full-versionobjectNoFull UA version configuration
ua-full-version.modeintegerNoNew-profile default 1; mode 1 recalculates full version when major changes; no separate UI toggle
ua-full-version.valuestringNoFull version string, e.g. 156.0.8078.73; match the selected core
sec-ch-uaobjectNoUser-Agent Client Hints configuration
sec-ch-ua.modeintegerNo0 default, 1 custom; default mode updates brand version when the major changes
sec-ch-ua.valueobject[]NoArray, e.g. [{"brand":"Chromium","version":"156"}]; keep version consistent with core
sec-ch-ua.value[].brandstringNoBrand name
sec-ch-ua.value[].versionstring / numberNoVersion string or number, e.g. 156 or "156"; keep consistent with brand and core
ua-languageobjectNoBrowser language configuration
ua-language.modeintegerNo1 manual, 2 follow IP
ua-language.languagestringNoLanguage tag, e.g. en-US or fr-CA; BCP 47 format recommended
ua-language.valuestringNoLanguage tags separated by commas, e.g. en-US,en
time-zoneobjectNoTime-zone configuration
time-zone.modeintegerNo1 manual, 2 follow IP
time-zone.zonestringNoUTC offset text, e.g. UTC-5:00 or UTC+5:30; match value
time-zone.utcstringNoIANA time-zone identifier, e.g. America/Toronto; match selected zone
time-zone.localestringNoLocale language tag, e.g. en-CA; BCP 47 format recommended
time-zone.namestringNoTime-zone display name; use a name from the client’s built-in list
time-zone.valuenumberNoOffset in hours; built-in client list spans -12 to +13 and includes fractions such as 5.5; not an enforced API range
webrtcobjectNoWebRTC configuration
webrtc.modeintegerNo0 replace, 1 allow, 2 block
locationobjectNoLocation and permission configuration
location.modeintegerNo1 custom, 2 follow IP
location.enableintegerNo0 ask, 1 allow, 2 block
location.longitudestring / numberNoStandard valid range -180 to 180, including decimals; not enforced by the API
location.latitudestring / numberNoStandard valid range -90 to 90, including decimals; not enforced by the API
location.precisionnumber / stringNoMetres; non-negative values recommended; client randomly generates 10–5000, not an enforced API range
screenobjectNoScreen and resolution configuration
screen.modeintegerNo0 follow device, 1 custom
screen.widthnumberNoFor mode=1 set pixel width, e.g. 1920; keep height and _value consistent
screen.heightnumberNoFor mode=1 set pixel height, e.g. 1080; keep width and _value consistent
screen._valuestringNoUI choices: 800 x 600, 1024 x 768, 1280 x 720, 1280 x 800, 1280 x 960, 1280 x 1024, 1360 x 768, 1400 x 900, 1400 x 1050, 1600 x 900, 1600 x 1200, 1920 x 1080, 1920 x 1200, 2048 x 1152, 2304 x 1440, 2560 x 1440, 2560 x 1600, 2880 x 1800, 5120 x 2880; keep width and height consistent; not an API limit
fontsobjectNoFont configuration; value contains exclusions, not an allowlist
fonts.modeintegerNo0 system default, 1 randomized configuration
fonts.valuestring[]NoFor mode=1 pass font exclusion rules, e.g. ["Arial"]; not an allowlist; avoid broad matches
canvasobjectNoCanvas fingerprint; generated RGBA values use -10–10 as a reference, not an enforced API range
canvas.modeintegerNo0 default, 1 randomized configuration
canvas.rnumberNoGenerated integer reference: -10 to 10; not an enforced API range
canvas.gnumberNoGenerated integer reference: -10 to 10; not an enforced API range
canvas.bnumberNoGenerated integer reference: -10 to 10; not an enforced API range
canvas.anumberNoGenerated integer reference: -10 to 10; not an enforced API range
webgl-imgobjectNoWebGL image fingerprint; generated RGBA values use -10–10 as a reference, not an enforced API range
webgl-img.modeintegerNo0 default, 1 randomized configuration
webgl-img.rnumberNoGenerated integer reference: -10 to 10; not an enforced API range
webgl-img.gnumberNoGenerated integer reference: -10 to 10; not an enforced API range
webgl-img.bnumberNoGenerated integer reference: -10 to 10; not an enforced API range
webgl-img.anumberNoGenerated integer reference: -10 to 10; not an enforced API range
webglobjectNoWebGL metadata configuration
webgl.modeintegerNo0 default, 1 custom
webgl.vendorstringNoWebGL vendor
webgl.renderstringNoWebGL renderer; keep consistent with the vendor
webgpuobjectNoWebGPU adapter configuration
webgpu.modeintegerNo0 default, 1 based on WebGL
webgpu.vendorstringNoWebGPU vendor value
webgpu.architecturestringNoWebGPU architecture value
audio-contextobjectNoAudioContext fingerprint configuration
audio-context.modeintegerNo0 default, 1 randomized configuration
audio-context.channelnumberNoAudio-channel perturbation; generated reference 0–0.0000001
audio-context.analyernumberNoAudio analyzer perturbation; spelling is analyer; generated reference 0–0.1
mediaobjectNoMedia-device fingerprint configuration
media.modeintegerNoNew-profile default 1; commented-out UI lists 0 default and 1 random, but no active control; behavior depends on core
client-rectsobjectNoClientRects fingerprint configuration
client-rects.modeintegerNo0 default, 1 randomized configuration
client-rects.widthnumberNoWidth perturbation; generated reference -1–1
client-rects.heightnumberNoHeight perturbation; generated reference -1–1
speech_voicesobjectNoSpeech Voices configuration
speech_voices.modeintegerNo0 default, 1 use the configured voice list
speech_voices.valueobject[]NoVoice object array; actual speech depends on system support
speech_voices.value[].defaultbooleanNoBoolean true or false; marks the default voice
speech_voices.value[].langstringNoLanguage tag, e.g. en-US; match the selected voice
speech_voices.value[].localServicebooleanNoBoolean true or false; marks whether it is a local service
speech_voices.value[].namestringNoVoice name
speech_voices.value[].voiceURIstringNoVoice URI
sslobjectNoSSL feature configuration
ssl.modeintegerNo0 no custom settings, 1 enable feature settings
ssl.valuearrayNoFor mode=1 pass cipher code strings to disable; UI choices: 0xc00a, 0xc014, 0x0035, 0xc009, 0xc013, 0x002f, 0x000a, 0x009c, 0x009d, 0xc02f, 0xc030, 0xc02b, 0xc02c, 0xcca9, 0xcca8, 0x008c, 0x008d, 0xc035, 0xc036, 0xccac, 0x1301, 0x1302, 0x1303, e.g. ["0x1301"]
cpuobjectNoCPU fingerprint configuration
cpu.modeintegerNoNew-profile default 1; UI changes value only, not mode; other values are unconfirmed
cpu.valueintegerNoClient UI choices: 4, 6, 8, 12, 16, 20, 24, 32 logical cores; not an enforced API enum
memoryobjectNoMemory fingerprint configuration
memory.modeintegerNoNew-profile default 1; UI changes value only, not mode; other values are unconfirmed
memory.valuenumberNoClient UI choices: 8, 16, 32, 64, 128 GB; not an enforced API enum
device-nameobjectNoDevice-name fingerprint configuration
device-name.modeintegerNo0 default, 1 custom
device-name.valuestringNoDevice name; use fictional examples
macobjectNoMAC fingerprint configuration
mac.modeintegerNo0 default, 1 custom
mac.valuestringNoMAC address string, e.g. 02-00-00-00-00-01; use fictional values, not real device identifiers
dntobjectNoDo Not Track configuration
dnt.modeintegerNoNew-profile default 1; UI toggles value, not mode; other values are unconfirmed
dnt.valueintegerNoUI switch: 0 off, 1 on
port-scanobjectNoPort-scan protection configuration
port-scan.modeintegerNo0 off, 1 enabled
port-scan.valuestring[]NoArray of allowed numeric port strings, e.g. ["80","443"]; 1–65535 recommended
gpuobjectNoHardware acceleration configuration
gpu.modeintegerNoNew-profile default 1; UI toggles value, not mode; other values are unconfirmed
gpu.valueintegerNoHardware-acceleration switch: 0 off, 1 on; not a GPU model
launchArgsobjectNoPersistent launch arguments
launchArgs.modeintegerNo0 default, 1 custom
launchArgs.valuestringNoPersistent arguments, split on whitespace; distinct from tempLaunchArgs
accountListarray / valueNoProfile configuration field; does not replace saved-account APIs
enableCloudSyncbooleanNoCloud-sync flag; enabling on update requires sign-in and membership
cloudIdstringNoCloud binding identifier; never publish or invent real identifiers

cURL example ​

bash
curl --request POST 'http://127.0.0.1:9000/api/addBrowser' \
  --header 'api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": " 环境1",
  "group": [
    "EXAMPLE_GROUP"
  ],
  "chrome_version": 132,
  "proxy": {
    "mode": 2,
    "value": "",
    "protocol": "SOCKS5",
    "host": "127.0.0.1",
    "port": "6001",
    "user": "",
    "pass": "",
    "API": ""
  },
  "homepage": {
    "mode": 1,
    "value": "https://baidu.com"
  }
}'

Response example ​

json
{
  "success": true,
  "data": {
    "id": 85
  }
}

Current client response fields ​

FieldTypeUsage
successbooleanRequest processing succeeded; not a guarantee that every item was written
data.idintegerNew profile ID generated by the client

Usage notes ​

  • The current client generates defaults for omitted fields; see the current-client notes below for recommended group and proxy formats.
  • Nested fields belong inside their parent objects, not at the JSON root. Replace the example group, proxy endpoint, and core version with values available on your machine.
  • See Profile parameters for fingerprint output. Use the public request fields on this page instead of sending back the entire profile response.

For failed requests, check both HTTP status and the error body. See Errors & troubleshooting.

Fields supported by the current client ​

These fields apply to create and update; updates require the existing numeric id. Names are case-sensitive and unknown top-level keys are ignored. Except for update id, the fields are optional. A supplied nested object replaces the whole object, not a deep merge: read the existing configuration and retain all required subfields.

FieldTypeDescription
idnumberRequired for updates; generated by the client on create.
name, group, remark, osstring / string[]Name, groups, remark and OS identifier; a string array is recommended for group. A missing create name is generated.
chrome_versionnumber / stringChromium major version; when omitted, creation uses the generated configuration.
core_versionstring / numberauto, an installed full version or a major version. Aliases: coreVersion, kernel_version, kernelVersion. A major resolves to the highest installed matching version; an unavailable version returns 400.
proxyobjectMode and connection settings; protocol must be uppercase HTTP, HTTPS, SOCKS5 or SSH. Dynamic API URLs and credentials are sensitive.
cookie, homepageobjectCookie and homepage configuration. Use a JSON-array string for cookie.jsonStr; update parses it. Stop the profile and back up cookies first.
ua, ua-full-version, sec-ch-ua, ua-languageobjectUA, full version, client hints and language.
time-zone, webrtc, location, screenobjectTime zone, WebRTC, location and screen.
fonts, speech_voicesobjectFont exclusion rules and voice configuration; fonts.value is not an allowlist. See profile parameters.
canvas, webgl-img, webgl, webgpu, audio-contextobjectGraphics and audio fingerprints. Common webgpu fields are mode, vendor, and architecture.
media, client-rects, ssl, cpu, memoryobjectMedia devices, rectangles, SSL, CPU and memory.
device-name, mac, dnt, port-scan, gpu, launchArgsobjectDevice identifier, MAC, DNT, port-scan, GPU and persistent launch arguments.
accountListarray / configuration valueStored as profile configuration; use the dedicated account APIs for browser-saved accounts.
enableCloudSync, cloudIdboolean / stringCloud-sync flag and binding identifier. Enabling sync on an existing profile requires sign-in and the appropriate membership; never publish real identifiers.

chrome_version describes the Chromium major; core_version selects an installed core. Prefer a version from the core list, and keep them consistent. On create, a concrete core_version can supply the major when omitted.

The REST API does not automatically run the UI's proxy-IP font/voice recommendation; provide explicit configuration when needed.

Minimal request (fictional placeholders) ​

This body uses generated defaults. auto selects a core automatically and no real accounts or proxies are included:

json
{ "name": "EXAMPLE_PROFILE", "core_version": "auto" }

Default settings do not imply a proxy connection; configure the proxy explicitly when needed.

An invalid proxy.protocol currently reaches the generic exception handler and returns HTTP 500; do not assume a 400 response for this validation.