# Get browser profile UA

Generate a user agent matching the requested operating system and browser type.
- **Preconditions**
: Firefox is only valid with Windows or macOS, and
`osVersion`
 must be one of the supported releases.
- **Effect**
: none, but
**the result is not deterministic**
 — the same request returns a different user agent each time. Do not use it as a cache key.
- **Completion**
: synchronous. Safe to retry.

Endpoint: POST /api/env/advanced/ua/get
Version: 2026-09-05

## Request fields (application/json):

  - `os` (integer, required)
    Operating system type.
1 = Windows, 2 = macOS, 3 = Android, 4 = iOS
    Enum: "1", "2", "3", "4"

  - `osVersion` (string)
    OS version (e.g., "Windows 11", "macOS 14").
    Example: Windows 11

  - `vendor` (integer)
    Browser type.
1 = Chrome, 2 = Firefox
    Enum: "1", "2"

## Response 200:

  - `200` (unknown)
    Success. `data` is always null for this operation; the outcome is carried by `code`.

## Response 200 fields (application/json):

  - `code` (integer)

  - `msg` (string | null)

  - `data` (null)

  - `resolution` (object, required)

  - `resolution.id` (string, required)

  - `resolution.value` (string, required)

  - `ua` (string, required)

  - `requestId` (string)

  - `error` (object)

