Manage your servers programmatically: create, reinstall and reboot VPS, fetch plans, OS images and datacenters — all over a simple REST API.
Base URL and authentication. Send your key in the header of every request.
https://billing.netgrid.host/api/v1/ext
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://billing.netgrid.host/api/v1/ext/whoami/whoamiVerify your key and see which account it belongs to.
{
"account_id": 4406,
"key_id": 12,
"label": "production"
}/vpsList your servers. Filter by IP with ?ip=1.2.3.4
{
"vps": {
"items": [
{ "id": 24402, "name": "web-1",
"ip": "151.247.25.10",
"status": "active" }
],
"total": 1
}
}/vps/{id}Full details of one server, including root password.
{
"id": 24402, "name": "web-1",
"ip": "151.247.25.10",
"plan": "Business", "os": "AlmaLinux 9",
"root_password": "••••••••"
}/vpsOrder a new VPS. Debits account balance, provisions async, returns the root password right away.
{
"plan_id": 3,
"dc_id": 1,
"os_family_slug": "almalinux",
"os_item_id": "almalinux-9",
"hostname": "web-1",
"period": 1,
"autorenew": true
}{
"item_id": 24403,
"root_password": "Ng7xK2..."
}/vps/{id}/power/{action}Power control: start, stop or reboot.
{ "ok": true, "action": "reboot" }/vps/{id}/reinstallReinstall the OS. Optionally set a root password.
{
"os_id": "ubuntu-24.04",
"password": "optional"
}{ "ok": true }/vps/{id}/reset-passwordReset root password (auto-generated if omitted).
{ "ok": true, "password": "Ng9..." }/plansAvailable plans (id, cpu, ram, disk, price) for ordering.
{
"plans": [
{ "id": 3, "name": "Business",
"cpu": 2, "ram": 2048,
"disk": 50, "price": 7.0 }
]
}/osInstallable OS images (families + versions).
{
"families": [
{ "slug": "almalinux",
"items": [{ "id": "almalinux-9" }] }
]
}/datacentersDatacenters you can order in. Use id as dc_id.
{
"datacenters": [
{ "id": 1, "city": "Meppel",
"country_code": "nl" }
]
}Errors come back with the matching HTTP status and a detail field.
{
"detail": "insufficient_balance"
}Create an API key in your dashboard, add your allowed IPs, and drive your infrastructure from code.