VPS Rocket API

Programmatically manage your infrastructure. Our API allows you to automate everything from server deployment to DNS management.

Base URLhttps://api.vpsrocket.net/v1
Header

Authentication

Authorization: Bearer <TOKEN>

Authenticate your requests by including your secret API token in the header.

REQUEST
curl https://api.vpsrocket.net/v1/account \
  -H "Authorization: Bearer rocket_live_..."
RESPONSE (200 OK)
{
  "id": "usr_8823",
  "email": "[email protected]",
  "balance": 150.00,
  "status": "active"
}
GET

List Instances

/v1/instances

Returns a list of all compute instances (Containers, KVM, and Metal) on your account.

REQUEST
curl https://api.vpsrocket.net/v1/instances \
  -H "Authorization: Bearer $TOKEN"
RESPONSE (200 OK)
{
  "data": [
    {
      "id": "vps_9921",
      "name": "web-prod-01",
      "ip": "104.21.55.2",
      "region": "nyc1",
      "status": "running"
    }
  ],
  "meta": { "total": 1 }
}
POST

Create Instance

/v1/instances

Deploy a new server. You must specify the product type (lxc, kvm, metal).

ParamTypeDescription
regionstringe.g. "nyc1", "fra1"
typestring"lxc", "kvm", "metal"
imagestringOS slug (e.g. "ubuntu-22")
REQUEST
curl -X POST https://api.vpsrocket.net/v1/instances \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "db-cluster-01",
    "region": "fra1",
    "type": "kvm",
    "plan": "kvm-4gb",
    "image": "ubuntu-22.04"
  }'
RESPONSE (200 OK)
{
  "id": "vps_9925",
  "status": "provisioning",
  "action": "create",
  "estimated_time": "15s"
}
POST

Instance Actions

/v1/instances/:id/actions

Perform power actions (boot, reboot, shutdown, terminate) on a specific instance.

REQUEST
curl -X POST https://api.vpsrocket.net/v1/instances/vps_9925/actions \
  -H "Authorization: Bearer $TOKEN" \
  -d '{ "type": "reboot" }'
RESPONSE (200 OK)
{
  "action_id": "act_5521",
  "status": "in-progress",
  "type": "reboot"
}