Domain Names & Email API
Register and manage your domain names, their DNS zones, contacts and the email addresses that go with them.
GET 15 POST 5 PUT 7 DEL 2 29 operations
https://api.lws.net/v1
LWS_AUTH_LOGIN='…'LWS_AUTH_PASS='…'curl -X GET \ "https://api.lws.net/v1/hosting/0/list" \ -H "X-Auth-Login: $LWS_AUTH_LOGIN" \ -H "X-Auth-Pass: $LWS_AUTH_PASS"
$lwsAuthLogin = '…';$lwsAuthPass = '…';$ch = curl_init("https://api.lws.net/v1/hosting/0/list");curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_HTTPHEADER, [ "X-Auth-Login: " . $lwsAuthLogin, "X-Auth-Pass: " . $lwsAuthPass,]);$res = json_decode(curl_exec($ch), true);
import requestsLWS_AUTH_LOGIN = "…"LWS_AUTH_PASS = "…"res = requests.get( "https://api.lws.net/v1/hosting/0/list", headers={ "X-Auth-Login": LWS_AUTH_LOGIN, "X-Auth-Pass": LWS_AUTH_PASS, },)print(res.json())
const LWS_AUTH_LOGIN = "…";const LWS_AUTH_PASS = "…";const res = await fetch("https://api.lws.net/v1/hosting/0/list", { method: "GET", headers: { "X-Auth-Login": LWS_AUTH_LOGIN, "X-Auth-Pass": LWS_AUTH_PASS, },});const data = await res.json();
lwsAuthLogin := "…"lwsAuthPass := "…"req, _ := http.NewRequest("GET", "https://api.lws.net/v1/hosting/0/list", nil)req.Header.Set("X-Auth-Login", lwsAuthLogin)req.Header.Set("X-Auth-Pass", lwsAuthPass)resp, err := http.DefaultClient.Do(req)
200
{ "code": 200, "info": "Retrieved all hostings", "data": [ … ] }
1 API · 29 operations
Register and manage your domain names, their DNS zones, contacts and the email addresses that go with them.
GET 15 POST 5 PUT 7 DEL 2 29 operations
https://api.lws.net/v1
Drive your KVM VPS programmatically: inventory, status, power, snapshots, backups, firewall, network.
GET 18 POST 11 PUT 6 DEL 6 41 operations · 1 guide