HelipodDocs

VPS API

Create, run and manage virtual servers over HTTP with a Helipod API key.

The VPS API lets you do from code what you do on the VPS pages of the dashboard: pick a plan, create a server, power it on and off, reinstall it, manage its firewall, ports and SSH keys, read its metrics, take snapshots, set up backups and renew it.

Base URL

https://api.helipod.io/api

VPS routes live under /vps, for example https://api.helipod.io/api/vps/plans. The backup plan catalogue is the one exception and lives at /backup/plans.

Authentication

Every request needs a Helipod API key in the Authorization header:

Authorization: Bearer hel_your_key

Create keys in the dashboard under Project → Settings → API keys. The full key is shown once, when you create it. An account can hold up to 10 active keys.

Response envelope

Every response is JSON in the same envelope.

{
  "success": true,
  "data": { "id": "1f757fd5-98d1-490a-81a0-58b5798a5815", "status": "running" }
}

Branch on code, show error to people. Every code is listed on Errors. Lists are returned whole, without pagination.

Rate limit

Each key may make 60 requests per second, with a burst of up to 60. The allowance refills continuously, so after one idle second a key has its full allowance back. The limit is per key and shared by every API the key calls on api.helipod.io (VPS, Container, Database, Domain, Account and AI API).

Every response carries the current state:

HeaderMeaning
X-RateLimit-LimitRequests allowed per second (60)
X-RateLimit-RemainingRequests left right now
Retry-AfterOnly on a refused request: seconds to wait

A request over the limit is refused with code RATE_LIMITED (status 429). Wait for Retry-After seconds and retry.

Money

Paid actions are charged to the wallet of the key owner (the deposit balance, in Rupiah) at the moment you call them. If the balance is too low the call fails with HTTP 402 and code INSUFFICIENT_BALANCE, on every kind of server, and nothing is created or changed:

{
  "success": false,
  "error": "Insufficient deposit balance. Required: Rp 64,900, Available: Rp 12,000",
  "code": "INSUFFICIENT_BALANCE"
}

Branch on the status or code, not on the text of error. These endpoints charge the wallet:

EndpointCharge
POST /vpsThe full price of the chosen period
POST /vps/:id/renewThe price of the renewal period
POST /vps/:id/upgradeThe prorated difference for the days left
POST /vps/:id/backupThe backup plan price for the first period
PATCH /vps/:id/backup with a larger planCodeThe prorated difference for the time left

With auto-renew on (the default), a VPS and its backup plan also renew themselves from the wallet before they expire. If a create, renewal or upgrade fails after the charge, the amount is refunded to the wallet automatically, once.

Check the price first: ?dryRun=true

POST /vps, POST /vps/:id/renew and POST /vps/:id/upgrade accept ?dryRun=true. The call makes the same checks as the real one (plan, operating system, period, server state) and answers with the price instead of buying anything. Nothing is charged, created or changed, so a dry run is safe to call from a test or before showing a price to your customer.

curl -X POST "https://api.helipod.io/api/vps/1f757fd5-98d1-490a-81a0-58b5798a5815/renew?dryRun=true" \
  -H "Authorization: Bearer hel_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "billingPeriod": "monthly" }'
{
  "success": true,
  "data": {
    "dryRun": true,
    "price": 64900,
    "currency": "IDR",
    "billingPeriod": "monthly",
    "months": 1,
    "currentExpiresAt": "2026-11-15T08:22:12.000Z",
    "walletBalance": 482500,
    "walletBalanceAfter": 417600,
    "enoughBalance": true
  }
}
FieldDescription
dryRunAlways true.
priceWhat the real call charges now, in Rupiah.
currencyAlways IDR.
walletBalanceThe key owner's wallet balance now.
walletBalanceAfterwalletBalance - price. Negative when the wallet is too low.
enoughBalancetrue when the wallet covers price.
other fieldsPer call. Create: planId, billingPeriod, months, monthlyPrice, autoRenew. Renew: billingPeriod, months, currentExpiresAt. Upgrade: planId, priceMonthly.

price is exactly what the real call charges (for a reseller account, the reseller price). A wallet that is too low is not an error in a dry run: the answer is still 200 with enoughBalance: false and a negative walletBalanceAfter. Every other check still applies, so a dry run with an invalid request fails with the same error code as the real call (for example PROJECT_REQUIRED, PLAN_NOT_AVAILABLE or INVALID_BILLING_PERIOD). dryRun=1 works too; any other value is a real call.

Retry safely: Idempotency-Key

The same three calls accept an Idempotency-Key header (8 to 128 characters: letters, digits, _ . : -). Send a unique value per order, and the same value when you retry it:

curl -X POST https://api.helipod.io/api/vps \
  -H "Authorization: Bearer hel_your_key" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-2026-10-26-000123" \
  -d '{ ... }'
  • A retry with the same key within 24 hours returns the first response (the same server, the same status code) and charges nothing again.
  • While the first request is still running, a retry gets 409 REQUEST_IN_PROGRESS. Wait a moment and retry.
  • If the first request failed, the key is released and the retry runs normally.
  • A key is per API key and per call: the same value on a renew of another server is a different request.
  • A value that is not 8 to 128 characters of letters, digits and _ . : - answers 400 INVALID_IDEMPOTENCY_KEY and nothing runs.
  • It has no effect together with ?dryRun=true, which never charges anything.

The header is optional. Without it a retried POST /vps creates and charges a second server, so check GET /vps before retrying a create that timed out.

Asynchronous by design

Calls that change a server queue the work and return straight away. The response shows the server in a transitional status such as provisioning, stopping or restarting. Poll GET /vps/:id until the status settles on running, stopped or error. While a server is busy, other changes to it answer 409 VPS_BUSY. See Instance statuses.

Quick start

Create a key

In the dashboard open Project → Settings → API keys, create a key with VPS API enabled and copy it.

Find your project id

Every server must belong to one of your projects, so POST /vps needs a projectId. List your projects with the Container API (the key also needs the Container API product for this call):

curl https://api.helipod.io/api/containers/projects \
  -H "Authorization: Bearer hel_your_key"

Take the id of the project. A key limited to one project only lists, and can only create servers in, that project.

Pick a plan and an operating system

curl https://api.helipod.io/api/vps/plans \
  -H "Authorization: Bearer hel_your_key"

Take a plan id and one entry of its osTemplates, for example ubuntu-24.04.

Create the server

curl -X POST https://api.helipod.io/api/vps \
  -H "Authorization: Bearer hel_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "planId": "4db565ff-782f-46c8-9324-e4670517233f",
    "projectId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "web-1",
    "osType": "ubuntu",
    "osVersion": "24.04",
    "rootPassword": "Str0ng!Passw0rd",
    "billingPeriod": "monthly"
  }'

The wallet is charged and the server comes back with status: "provisioning".

Wait until it runs

curl https://api.helipod.io/api/vps/1f757fd5-98d1-490a-81a0-58b5798a5815 \
  -H "Authorization: Bearer hel_your_key"

Repeat every few seconds until status is running. publicIp then holds the server's address.

Log in

GET /vps/:id/credentials returns the address, user and password at any time.

What you can do

On this page