[API] VPN

Здесь указаны все возможные на данный момент запросы для обращения с VPN.

Вывод всех VPN на аккаунте

GET https://api.lethost.co/vpn

Headers

{
    "data": [
    {
        "id": vpn_id,
        "server": server_name,
        "vpn-status": vpn_status
    }],
    "status": "success"
}

Вывод данных указанного VPN

GET https://api.lethost.co/vpn/get/{id}

Path Parameters

Headers

{
    "id": vpn_id,
    "vpn-status": vpn_status,
    "server": server_name,
    "price": price,
    "key": vpn_key,
    "client": [{"windows": "https://raw.githubusercontent.com/..."}],
    "date-end": "2000-12-31 23:59:59",
    "status": "success"
}

Вывод всех доступных серверов для заказа

GET https://api.lethost.co/vpn/products

{
    "data": [
    {
        "id": tarif_id,
        "server": server_name,
        "price": price
    }],
    "status": "success"
}

Заказ VPN

POST https://api.lethost.co/vpn/order

Query Parameters

Headers

{
    "id": vpn_id,
    "vpn-status": vpn_status,
    "server": server_name,
    "price": price,
    "date-end": "2000-12-31 23:59:59",
    "status": "success"
}

Продление VPN

POST https://api.lethost.co/vpn/extend/{id}

Path Parameters

Query Parameters

Headers

{
    "id": vpn_id,
    "vpn-status": vpn_status,
    "price": price,
    "extended-at": "2000-11-31 23:59:59",
    "extended-until": "2000-12-31 23:59:59",
    "status": "success"
}

Last updated