API Endpoints
Profiles
Import Cookies

Base URL

POST
https://v1.empr.cloud/api/v1/cookies/import/{folderId}/{profileId}

Request

Request Headers

Headers
Название
Тип / Значение
Описание
X-Token
String
Authorization token
Content-Type
application/json

URL Parameters

Query parameters
Название
Тип / Значение
Описание
folderId
UUID
Folder ID
profileId
UUID
Profile ID

Request body

Body
Название
Тип / Значение
Описание
cookies
Array<Cookie>
Cookies

Request Examples

1const url =
2  "https://v1.empr.cloud/api/v1/cookies/import/{folderId}/{profileId}"; 
3
4const body = {
5  "cookies": [
6    {
7      "name": "datr",
8      "value": "526hZQfcuVgUDX4sZdXGrES4",
9      "path": "/",
10      "domain": ".facebook.com",
11      "expires": 1739638509
12    },
13    {
14      "name": "OTZ",
15      "value": "7379577_48_48_123900_44_436380",
16      "path": "/",
17      "domain": "accounts.google.com",
18      "expires": 1707670639
19    }
20  ]
21}
22
23const options = {
24  method: "POST",
25  headers: {
26    "X-Token": "Your Token", 
27    "Content-Type": "application/json"
28  }, 
29  body: JSON.stringify(body)
30};
31
32fetch(url, options)
33  .then((response) => {
34    response.json().then((data) => {
35      console.log(data);
36    });
37  })
38  .catch((error) => {
39    console.error(error);
40  });

Response

Response Example

1{"data":null}

Types

Cookie
Название
Тип / Значение
Описание
name
String
Name
value
String
Value
path
String
Path
domain
String
Domain
expires
Number
Expiration date (UNIX timestamp)