API Import Cookie to Browser Profile

Import cookie to browser profile using the API:

Request Url:

http://127.0.0.1:35000/api/v1/profile/cookies/import/webext

Request Type: POST

NameTypeDescriptionrequired
profileIdstringBrowser profile IDtrue
bodystringcookie json (need base64 encode )true

Body
x-www-form-urlencoded

{
    "profileId": "17D40B01-566A-4E3F-888A-C40A404668B8",
    "body": [
                {
                    "hostOnly": false,
                    "secure": false,
                    "httpOnly": false,
                    "domain": ".vmlogin.us",
                    "session": false,
                    "expirationDate": 1620743803,
                    "value": "Xrli9YsFVTw.0AAAEC",
                    "path": "\/",
                    "name": "CMID",
                    "storeId": null,
                    "sameSite": "unspecified"
                },
                {
                    "hostOnly": false,
                    "secure": false,
                    "httpOnly": false,
                    "domain": ".vmlogin.us",
                    "session": false,
                    "expirationDate": 1596983803,
                    "value": "9960",
                    "path": "\/",
                    "name": "CMPRO",
                    "storeId": null,
                    "sameSite": "unspecified"
                }
            ]
}


Note:

(1) When using the local interface, you need to Enable browser automation settings on the VMLogin client and save the settings. Please refer to the tutorial "Launch the browser automation port";

(2) For profiled, please refer to the tutorial "Where is the profile ID" or use the profile/list interface to get all profileId.