Method 1: API Key Authentication
Send your API key in the X-API-Key header, or as a Bearer token in the Authorization header, on every REST API request. Your key is ready in Dashboard → Settings, where you can copy or regenerate it. You can also create up to 10 additional named keys there - one per integration - and revoke each on its own; they work exactly like the primary key (details).
cURL
curl -X GET "https://api.zentislabs.com/api/v1/proxies/list" \ -H "X-API-Key: YOUR_API_KEY"Python (requests)
import requests
API_KEY = "YOUR_API_KEY"BASE_URL = "https://api.zentislabs.com/api"
headers = { "X-API-Key": API_KEY, "Content-Type": "application/json",}
# List your ISP proxies (static IPs)response = requests.get(f"{BASE_URL}/v1/proxies/list", headers=headers)
if response.status_code == 200: data = response.json()["proxies"] print(f"Active ISP proxies: {len(data)}")else: print(f"Error {response.status_code}: {response.text}")Node.js (axios)
import axios from "axios";
const API_KEY = process.env.ZENTISLABS_API_KEY!;const client = axios.create({ baseURL: "https://api.zentislabs.com/api", headers: { "X-API-Key": API_KEY, "Content-Type": "application/json", }, timeout: 10000,});
// List your ISP proxies (static IPs)const { data } = await client.get("/v1/proxies/list");console.log("Active ISP proxies:", data.proxies.length);
// Generate a proxyconst proxy = await client.post("/v1/proxies/generate", { provider: "basic", country: "DE", sessionType: "rotating", count: 1,});console.log("Proxies:", proxy.data.proxies); // ["host:port:username:password", ...]