API Endpoints
Proxy
Delete proxy

Base URL

DELETE
https://v1.empr.cloud/api/v1/folders/{folderId}/proxies

Request

Request headers

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

URL Parameters

Query parameters
Название
Тип / Значение
Описание
folderId
UUID
The ID of the folder

Request body

Request body
Название
Тип / Значение
Описание
proxy_ids
Array<UUID>
Array of proxy IDs

Request example

1const url =
2  "https://v1.empr.cloud/api/v1/folders/{folderId}/proxies"; 
3
4const body = {
5  "proxy_ids": [
6    "e3b7b1e0-9b0a-4c9a-8b9a-9b0a4c9a8b9a"
7  ]
8}
9
10const options = {
11  method: "DELETE",
12  headers: {
13    "X-Token": "Your Token", 
14    "Content-Type": "application/json"
15  }, 
16  body: JSON.stringify(body)
17};
18
19fetch(url, options)
20  .then((response) => {
21    response.json().then((data) => {
22      console.log(data);
23    });
24  })
25  .catch((error) => {
26    console.error(error);
27  });

Response

Response data

Response
Название
Тип / Значение
Описание
data
Array<Proxy>
Array of deleted proxies

Response example

1{
2    "data": [
3        {
4            "user_id": "***privacy***",
5            "id": "***privacy***",
6            "folder_id": "***privacy***",
7            "proxy_name": "xoox",
8            "proxy_type": "SOCKS5",
9            "proxy_ip": "127.0.0.1",
10            "proxy_port": 1080,
11            "proxy_username": null,
12            "proxy_password": null,
13            "update_url": null,
14            "geo_info": null,
15            "last_check_at": null,
16            "created_at": "2024-01-05T15:30:42.998533Z",
17            "updated_at": "2024-01-05T15:30:42.998533Z",
18            "profiles": null
19        }
20    ]
21}

Types

Proxy
Название
Тип / Значение
Описание
proxy_name
String
Name
proxy_type
String
Type (HTTP, SOCKS4, SOCKS5, SSH)
proxy_ip
String
IP
proxy_port
Number
Port
proxy_username
String?
Username
proxy_password
String?
Password
proxy_geo
Geolocation?
Geolocation
update_url
String?
URL to renew proxy IP
*Types that end with a question mark (?) are optional.*

Geolocation
Название
Тип / Значение
Описание
ip
String
IP
country
String
Country
region
String
Region
city
String
City
zipcode
String
Zipcode
timezone
String
Timezone
latitude
Number
Latitude
longitude
Number
Longitude