Share this page
1.0.0OpenAPI 3.1.0

VPS Management API

Download OpenAPI Document

Manage your cloud VPS services programmatically: power control, console access, OS reinstall, firewall, backups, snapshots, scheduled tasks, and more.

Response format

Every response looks like this:

{
  "status": "success",
  "message": "Optional human-readable message",
  "data": {}
}

Failed requests return "status": "error" with a suitable HTTP status: 400 for invalid input or business rules, 403 when a feature is not available on your plan, 404 when a resource does not exist, and 401 when you are not authenticated.

Authentication

Send your access token on every request:

Authorization: Bearer <access_token>

API access is available only while your WHMCS customer account has an allowed status (currently Active). If the account becomes ineligible, requests return 403, the client-area API token is revoked, and a new token must be generated after the account becomes eligible again.

Rate limit: 60 requests per minute.

You can only access services that belong to your account. service_id is the numeric ID of your VPS service (the same ID shown in your client area).

Server

https://api.virtarix.com

API base URL

Authentication Required

Access token for your account

Client Libraries

cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
cURL

Account

Your account profile

Operations

GET/me
Show more

Get your account profile

Returns the profile for the account tied to your access token (name, email, company, contact details, and account status).

Responses

200

Client profile

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
idinteger
firstnamestring
lastnamestring
namestring
companynamestring
emailstring

format: "email"

phonenumberstring
statusstring
countrystring
citystring
statestring
postcodestring
datecreatedstring
lastloginstring

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/me
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/me \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Get your account profile
GEThttps://api.virtarix.com/me
Authentication · Required
Remembered for this browser session after Send.
Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "id": 1,
    "firstname": "string",
    "lastname": "string",
    "name": "string",
    "companyname": "string",
    "email": "hello@example.com",
    "phonenumber": "string",
    "status": "string",
    "country": "string",
    "city": "string",
    "state": "string",
    "postcode": "string",
    "datecreated": "string",
    "lastlogin": "string"
  }
}

Client profile

Catalogue

Browse products, pricing, and configurable options available for ordering

Show more

Browse the product catalogue

Returns products you can order through the API, with pricing and options.

List mode (default): omit product_id. Returns your currency and product groups (optionally filtered by group_id). Each product includes billing cycles, pricing, configurable options, plans, and extra details.

Single-product mode: pass product_id to get one product ({ currency, product }). Returns 404 if it is not available.

Query parameters

product_idinteger

When set, returns a single product payload instead of the grouped catalogue. Must be a positive integer.

Example
42
Show more
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "example": 42
  }
}
group_idinteger

Optional product group filter for list mode. Ignored when product_id is set. Must be a positive integer.

Show more
{
  "schema": {
    "type": "integer",
    "minimum": 1
  }
}

Responses

200

Catalogue payload (list or single product)

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
datavaluerequirednullable

Exactly one of these alternatives

Alternative 1
currencyobject
codestring

example: "USD"

prefixstring

example: "$"

suffixstring
groupsarray
Array items
idinteger
namestring
productsarray
Array items

Orderable product with pricing, plans, and config options

idinteger
namestring
hiddenboolean
typestring
requires_hostnameboolean
billing_cyclesarray
Array items

Type: string.

pricingobject

additionalProperties: true

use_plansboolean
plansarray
Array items

additionalProperties: true

Type: object.

config_optionsarray
Array items

additionalProperties: true

Type: object.

additional_informationarray
Array items

additionalProperties: true

Type: object.

Alternative 2
currencyobject
codestring

example: "USD"

prefixstring

example: "$"

suffixstring
productobject

Orderable product with pricing, plans, and config options

idinteger
namestring
hiddenboolean
typestring
requires_hostnameboolean
billing_cyclesarray
Array items

Type: string.

pricingobject

additionalProperties: true

use_plansboolean
plansarray
Array items

additionalProperties: true

Type: object.

config_optionsarray
Array items

additionalProperties: true

Type: object.

additional_informationarray
Array items

additionalProperties: true

Type: object.

nullable: true

400

Invalid product_id or group_id query value

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Product not found (single-product mode)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

500

Unexpected server error

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/api-orders/catalogue
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl 'https://api.virtarix.com/api-orders/catalogue?product_id=42' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Browse the product catalogue
GEThttps://api.virtarix.com/api-orders/catalogue?product_id=42
Authentication · Required
Remembered for this browser session after Send.
Query parameters
Details

When set, returns a single product payload instead of the grouped catalogue. Must be a positive integer.

Details

Optional product group filter for list mode. Ignored when product_id is set. Must be a positive integer.

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "currency": {
      "code": "USD",
      "prefix": "$",
      "suffix": "string"
    },
    "groups": [
      {
        "id": 1,
        "name": "string",
        "products": [
          {
            "id": 1,
            "name": "string",
            "hidden": true,
            "type": "string",
            "requires_hostname": true,
            "billing_cycles": [
              "string"
            ],
            "pricing": {
              "additionalProperty": "anything"
            },
            "use_plans": true,
            "plans": [
              {
                "additionalProperty": "anything"
              }
            ],
            "config_options": [
              {
                "additionalProperty": "anything"
              }
            ],
            "additional_information": [
              {
                "additionalProperty": "anything"
              }
            ]
          }
        ]
      }
    ]
  }
}

Catalogue payload (list or single product)

Orders

Place API orders using your saved tokenized payment method

Show more

Place an API order

Creates a silent WHMCS order for one or more catalogue products and queues payment capture against your default tokenized payment method (rave or payfast).

Requirements:

  • A saved tokenized payment method on file
  • That gateway set as your account default payment method
  • Valid product lines from GET /api-orders/catalogue
  • A unique caller-generated Idempotency-Key header

Reuse the same key only when retrying the same logical order. A completed retry returns the original response with Idempotency-Replayed: true and does not create another WHMCS order, invoice, service, or payment attempt. Reusing a key with changed order data returns 409. A request whose WHMCS outcome is still processing or indeterminate also returns 409 and is not automatically retried; contact support before submitting a new order.

To intentionally place a second identical order, send a new key.

Domain ordering is not supported on this endpoint. Emails are suppressed (noemail / noinvoiceemail).

On success, payment is usually processing until a background job captures the stored card. Poll order status separately when available.

Headers

Idempotency-Keystringrequired

A caller-generated retry identity containing 1–255 printable ASCII characters without spaces. Reuse it only for the same logical order. The raw value is not stored or written to request logs.

Example
"7e7b6f20-0b7c-4f9d-aec6-3a92c7ee4ab3"
Show more
{
  "schema": {
    "type": "string",
    "minLength": 1,
    "maxLength": 255,
    "pattern": "^[!-~]+$",
    "example": "7e7b6f20-0b7c-4f9d-aec6-3a92c7ee4ab3"
  }
}

Request body required

application/json

productsarrayrequired
Array items
pidintegerrequired

minimum: 1

billing_cyclestringrequired

enum: ["monthly","quarterly","semiannually","annually","biennially","triennially","onetime"]

plan_idintegernullable

Required when the product uses plans

minimum: 1

hostnamestringnullable

Required for server-type products

config_optionsobject

Map of config option ID → sub-option ID (or quantity for qty options). Plan-controlled options must not be sent.

additionalProperties: {"type":"integer"}

additional_dataobject

Map of allow-listed custom field ID → value (e.g. sshkeys)

additionalProperties: {"type":"string"}

custom_fieldsobject

Alias for additional_data

additionalProperties: {"type":"string"}

minItems: 1 · maxItems: 20

promostringnullable

Optional WHMCS promotion code

domainsarray

Not supported; sending any domain returns domains_not_supported

Array items

Type: object.

Show more · exact request schema
Request schema
{
  "$ref": "#/components/schemas/ApiOrderRequest"
}

Responses

201

Order created

Idempotency-Replayed

Present with value true when this is a stored replay response.

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
order_idinteger
invoice_idintegernullable
order_numberstringnullable
totalobject
amountnumber
currencystring
prefixstring
promo_appliedstringnullable
payment_statusstring

enum: ["processing","paid","failed","pending"]

payment_errorobjectnullable
codestring
messagestring

nullable: true

gateway_request_urlstringnullable
itemsobject
productsarray
Array items
line_idinteger
service_idinteger
pidinteger
namestring
billing_cyclestring
domainstringnullable
hostnamestringnullable
amountnumber
domainsarray
Array items

Type: object.

warningsarray
Array items
codestring
messagestring

nullable: true

400

WHMCS rejected the order

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

403

Authenticated, but the account is inactive or the feature is not available on the current plan

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

409

Idempotency conflict: the key was reused with changed order data, or the original order outcome is still processing or indeterminate. No additional AddOrder request is made.

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

422

Validation failed, the idempotency key is invalid, or the default tokenized payment method is missing

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsvalue

No value satisfies this conjunction of schema constraints. See the exact schema.

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

500

Unexpected server error

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/api-orders/order
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/api-orders/order \
  --request POST \
  --header 'Idempotency-Key: 7e7b6f20-0b7c-4f9d-aec6-3a92c7ee4ab3' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "products": [
    {
      "pid": 42,
      "billing_cycle": "monthly",
      "plan_id": 7,
      "hostname": "vps.example.com",
      "config_options": {
        "101": 5
      },
      "additional_data": {
        "55": "ssh-ed25519 AAAA..."
      }
    }
  ],
  "promo": "SAVE10"
}'
Place an API order
POSThttps://api.virtarix.com/api-orders/order
Authentication · Required
Remembered for this browser session after Send.
Headers

Accept: application/json

Details

A caller-generated retry identity containing 1–255 printable ASCII characters without spaces. Reuse it only for the same logical order. The raw value is not stored or written to request logs.

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "order_id": 1,
    "invoice_id": 1,
    "order_number": "string",
    "total": {
      "amount": 1,
      "currency": "string",
      "prefix": "string"
    },
    "promo_applied": "string",
    "payment_status": "processing",
    "payment_error": {
      "code": "string",
      "message": "string"
    },
    "gateway_request_url": "string",
    "items": {
      "products": [
        {
          "line_id": 1,
          "service_id": 1,
          "pid": 1,
          "name": "string",
          "billing_cycle": "string",
          "domain": "string",
          "hostname": "string",
          "amount": 1
        }
      ],
      "domains": [
        {}
      ]
    },
    "warnings": [
      {
        "code": "string",
        "message": "string"
      }
    ]
  }
}

Order created

Services

List your VPS services and view live status and resource usage

Show more

List your VPS services

Returns every VPS on your account. Each item includes the service ID, product name, hostname, status, IP addresses, and creation date — enough to build a service list or picker.

Responses

200

Service list

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataarrayrequirednullable
Array items
idinteger
productstringnullable
hostnamestringnullable
statusstringnullable
ipsarray
Array items

Type: string.

created_atstringnullable

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

500

Unexpected server error

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/list
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/list \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List your VPS services
GEThttps://api.virtarix.com/service/list
Authentication · Required
Remembered for this browser session after Send.
Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": [
    {
      "id": 1,
      "product": "string",
      "hostname": "string",
      "status": "string",
      "ips": [
        "string"
      ],
      "created_at": "string"
    }
  ]
}

Service list

Get VPS details

Live status and resource usage for one of your VPS services.

Includes CPU, memory, disk, and bandwidth usage, assigned IPs, login credentials, guest OS info (when the server is running), and SSH key status when that feature is enabled on your plan.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

VM details

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable

Live VPS status and resource usage

vm_infoobject
statusstring

example: "running"

uptimestring
uptime_secondsinteger
hostnamestring
boot_devicesarray
Array items

Type: string.

reinstallingboolean
cpuobject
usage_rationumber
percentnumber
coresnumber
memoryobject
usage_bytesnumber
total_bytesnumber
percentnumber
usage_humanstring
total_humanstring
diskobject
usage_bytesnumber
total_bytesnumber
percentnumber
usage_humanstring
total_humanstring
bandwidthobject
usage_mbnumber
limit_mbnumber
unlimitedboolean
percentnumber
network_rateobjectnullable
mb_per_secnumber
mbit_per_secnumber
humanstring

nullable: true

ip_addressesarray
Array items

Type: string.

credentialsobject
usernamestring
passwordstring

Login password for this VPS

os_infoobject

Guest agent OS info when VM is running; otherwise empty strings

namestring
pretty_namestring
versionstring
machinestring
kernel_releasestring
hostnamestring
ssh_key_infoobject

Present when SSH features are enabled for the product

typestring

enum: ["keypair","sshkeys"]

has_public_keyboolean
has_private_keyboolean
delete_private_keyboolean
sshkeysstring

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345 \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Get VPS details
GEThttps://api.virtarix.com/service/12345
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "vm_info": {
      "status": "running",
      "uptime": "string",
      "uptime_seconds": 1,
      "hostname": "string",
      "boot_devices": [
        "string"
      ],
      "reinstalling": true
    },
    "cpu": {
      "usage_ratio": 1,
      "percent": 1,
      "cores": 1
    },
    "memory": {
      "usage_bytes": 1,
      "total_bytes": 1,
      "percent": 1,
      "usage_human": "string",
      "total_human": "string"
    },
    "disk": {
      "usage_bytes": 1,
      "total_bytes": 1,
      "percent": 1,
      "usage_human": "string",
      "total_human": "string"
    },
    "bandwidth": {
      "usage_mb": 1,
      "limit_mb": 1,
      "unlimited": true,
      "percent": 1
    },
    "network_rate": {
      "mb_per_sec": 1,
      "mbit_per_sec": 1,
      "human": "string"
    },
    "ip_addresses": [
      "string"
    ],
    "credentials": {
      "username": "string",
      "password": "string"
    },
    "os_info": {
      "name": "string",
      "pretty_name": "string",
      "version": "string",
      "machine": "string",
      "kernel_release": "string",
      "hostname": "string"
    },
    "ssh_key_info": {
      "type": "keypair",
      "has_public_key": true,
      "has_private_key": true,
      "delete_private_key": true,
      "sshkeys": "string"
    }
  }
}

VM details

Show more

Start VPS

Powers on the VPS and enables automatic start after the host reboots.

Success message: "VM started successfully". data is null.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Successful action

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/start
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/start \
  --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Start VPS
POSThttps://api.virtarix.com/service/12345/start
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": null
}

Successful action

Stop VPS (hard power off)

Immediately powers off the VPS (like pulling the plug) and disables automatic start after host reboot.

Prefer /shutdown for a clean OS shutdown when the guest supports it. Success message: "VM stopped successfully".

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Successful action

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/stop
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/stop \
  --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Stop VPS (hard power off)
POSThttps://api.virtarix.com/service/12345/stop
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": null
}

Successful action

Reboot VPS

Restarts the VPS.

Success message: "VM reboot initiated". Check status afterwards with GET /service/{service_id}.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Successful action

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/reboot
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/reboot \
  --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Reboot VPS
POSThttps://api.virtarix.com/service/12345/reboot
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": null
}

Successful action

Shut down VPS (graceful)

Asks the operating system to shut down cleanly and disables automatic start after host reboot.

Success message: "VM shutdown initiated". If the OS does not respond, use /stop for a hard power-off.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Successful action

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/shutdown
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/shutdown \
  --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Shut down VPS (graceful)
POSThttps://api.virtarix.com/service/12345/shutdown
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": null
}

Successful action

Console

Open a browser-based console session to your VPS

Show more

Open a console session

Creates a browser console session and returns connection details, including a ready-to-open novnc_url.

Returns 403 if console access is not enabled on your plan ("noVNC console is not enabled for this service").

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Console session issued

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
consoleobject

Console connection details, including a ready-to-open `novnc_url`

novnc_urlstring

Ready-to-open browser URL for the noVNC console

format: "uri"

ticketstring
portstring
userstring

additionalProperties: true

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

403

Authenticated, but the account is inactive or the feature is not available on the current plan

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/console
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/console \
  --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Open a console session
POSThttps://api.virtarix.com/service/12345/console
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "console": {
      "novnc_url": "https://example.com",
      "ticket": "string",
      "port": "string",
      "user": "string",
      "additionalProperty": "anything"
    }
  }
}

Console session issued

Templates

List OS templates and reinstall your server

Show more

List available OS templates

Lists the operating system templates you can install on this VPS.

Pass one of the returned labels as template when calling reinstall.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Template labels

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
templatesarray
Array items

Type: string.

example: ["Debian 12","Ubuntu 22.04","AlmaLinux 9"]

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/templates
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/templates \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List available OS templates
GEThttps://api.virtarix.com/service/12345/templates
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "templates": [
      "Debian 12",
      "Ubuntu 22.04",
      "AlmaLinux 9"
    ]
  }
}

Template labels

Reinstall from an OS template

Destructive. Wipes the current OS and reinstalls from the chosen template.

What happens:

  • A new root/admin password is generated and saved to your service credentials
  • Existing firewall rules are preserved across the rebuild
  • The request is rejected if a reinstall is already running

Template matching is case-insensitive. Returns 202 Accepted while the reinstall runs in the background.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Request body required

application/json

templatestringrequired

Template label exactly as returned by `GET .../templates` (case-insensitive match)

example: "Debian 12"

Show more · exact request schema
Request schema
{
  "type": "object",
  "required": [
    "template"
  ],
  "properties": {
    "template": {
      "type": "string",
      "description": "Template label exactly as returned by `GET .../templates` (case-insensitive match)",
      "example": "Debian 12"
    }
  }
}

Responses

202

Reinstall queued

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "The virtual server is being reinstalled"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/templates/reinstall
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/templates/reinstall \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "template": "Debian 12"
}'
Reinstall from an OS template
POSThttps://api.virtarix.com/service/12345/templates/reinstall
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "The virtual server is being reinstalled",
  "data": null
}

Reinstall queued

ISOs

List ISO images and mount one to your VPS (virtual machines only)

Show more

List available ISO images

Lists ISO images you can mount on this VPS.

Only available for virtual machines (not containers). Otherwise returns an error such as "ISO images are not supported for LXC services".

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

ISO labels

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
isosarray
Array items

Type: string.

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/isos
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/isos \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List available ISO images
GEThttps://api.virtarix.com/service/12345/isos
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "isos": [
      "string"
    ]
  }
}

ISO labels

Mount an ISO image

Attaches the chosen ISO as CD/DVD media and boots from it. Virtual machines only.

What happens:

  • The VPS is stopped if it is running
  • The ISO is mounted and boot order prefers the CD/DVD drive
  • Optionally wipes the primary disk (format_master_disk)
  • The VPS is started again

Fails if snapshots exist ("Remove the snapshots before reinstallation."). Returns 202 on success.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Request body required

application/json

isostringrequired

ISO label from `GET .../isos`

format_master_diskboolean

When true, reformats the primary disk before mounting. Aliases accepted by the API: `formatMasterDisk`, `format_disk`.

default: false

Show more · exact request schema
Request schema
{
  "type": "object",
  "required": [
    "iso"
  ],
  "properties": {
    "iso": {
      "type": "string",
      "description": "ISO label from `GET .../isos`"
    },
    "format_master_disk": {
      "type": "boolean",
      "default": false,
      "description": "When true, reformats the primary disk before mounting.\nAliases accepted by the API: `formatMasterDisk`, `format_disk`.\n"
    }
  }
}

Responses

202

ISO mounted and VM started

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "ISO mount completed"

dataobjectrequirednullable
isostring

Mounted ISO identifier

format_master_diskboolean

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/isos/mount
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/isos/mount \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "iso": "",
  "format_master_disk": false
}'
Mount an ISO image
POSThttps://api.virtarix.com/service/12345/isos/mount
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "ISO mount completed",
  "data": {
    "iso": "string",
    "format_master_disk": true
  }
}

ISO mounted and VM started

Configuration

Change hostname, boot order, and SSH public keys

Show more

Get configuration options

Returns the current settings and the choices available to change them:

  • Hostname
  • Whether this is a virtual machine (is_kvm)
  • Whether SSH key management is enabled
  • Available boot devices and current boot order (bootOrder0–bootOrder2)
  • Current SSH public keys (when allowed)

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Config form payload

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
hostnamestring
is_kvmboolean
sshkeys_enabledboolean
available_boot_orderobject

Map of device ID → human label (e.g. disk → Disk, cdrom → CD-ROM)

additionalProperties: {"type":"string"}

bootOrder0string
bootOrder1string
bootOrder2string
sshkeysstring

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/config
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/config \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Get configuration options
GEThttps://api.virtarix.com/service/12345/config
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "hostname": "string",
    "is_kvm": true,
    "sshkeys_enabled": true,
    "available_boot_order": {
      "additionalProperty": "string"
    },
    "bootOrder0": "string",
    "bootOrder1": "string",
    "bootOrder2": "string",
    "sshkeys": "string"
  }
}

Config form payload

Update VPS configuration

Changes one or more settings. At least one valid field is required.

Supported fields:

  • hostname — server hostname
  • bootOrder0, bootOrder1, bootOrder2 — device IDs from available_boot_order (VMs only)
  • sshkeys — OpenSSH public key, or empty string to remove (when enabled on your plan)

Invalid values return 400 with a clear message.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Request body required

application/json

At least one field required

hostnamestring
bootOrder0string

Device ID from `available_boot_order` (virtual machines only)

bootOrder1string
bootOrder2string
sshkeysstring

OpenSSH public key, or empty string to remove

Show more · exact request schema
Request schema
{
  "$ref": "#/components/schemas/ConfigUpdateRequest"
}

Responses

200

Configuration updated

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Configuration updated successfully"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

429

Rate limit exceeded (60 requests per minute)

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
PUT/service/{service_id}/config
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/config \
  --request PUT \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "hostname": "",
  "bootOrder0": "",
  "bootOrder1": "",
  "bootOrder2": "",
  "sshkeys": ""
}'
Update VPS configuration
PUThttps://api.virtarix.com/service/12345/config
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Configuration updated successfully",
  "data": null
}

Configuration updated

Show more

List firewall interfaces

Returns the network interfaces you can attach firewall rules to. Each entry is { value, label } for use in forms or UI dropdowns.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Interface options

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
interfacesarray
Array items
valuestring
labelstring

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/firewall/interfaces
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/firewall/interfaces \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List firewall interfaces
GEThttps://api.virtarix.com/service/12345/firewall/interfaces
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "interfaces": [
      {
        "value": "string",
        "label": "string"
      }
    ]
  }
}

Interface options

List firewall macros

Returns predefined firewall macros (common service profiles) plus a { value: "0", label: "None" } option.

Choosing a real macro clears proto, dport, and sport because the macro already defines them.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Macro options

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
macrosarray
Array items
valuestring
labelstring

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/firewall/macros
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/firewall/macros \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List firewall macros
GEThttps://api.virtarix.com/service/12345/firewall/macros
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "macros": [
      {
        "value": "string",
        "label": "string"
      }
    ]
  }
}

Macro options

List supported protocols

Returns the IP protocols you can use in firewall rules (for example tcp, udp, icmp).

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Protocol options

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
protocolsarray
Array items
valuestring
labelstring

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/firewall/protocols
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/firewall/protocols \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List supported protocols
GEThttps://api.virtarix.com/service/12345/firewall/protocols
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "protocols": [
      {
        "value": "string",
        "label": "string"
      }
    ]
  }
}

Protocol options

List firewall rules

Returns the firewall rules for this VPS, ordered by position (pos). Use pos when updating, moving, or deleting a rule.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Firewall rules

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
rulesarray
Array items
posinteger
typestring

enum: ["in","out","group"]

actionstring

enum: ["ACCEPT","DROP","REJECT"]

enableinteger

enum: [0,1]

commentstring
sourcestring
deststring
protostring
dportstring
sportstring
macrostring
ifacestring
logstring

additionalProperties: true

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/firewall/rule
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/firewall/rule \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List firewall rules
GEThttps://api.virtarix.com/service/12345/firewall/rule
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "rules": [
      {
        "pos": 1,
        "type": "in",
        "action": "ACCEPT",
        "enable": 0,
        "comment": "string",
        "source": "string",
        "dest": "string",
        "proto": "string",
        "dport": "string",
        "sport": "string",
        "macro": "string",
        "iface": "string",
        "log": "string",
        "additionalProperty": "anything"
      }
    ]
  }
}

Firewall rules

Create firewall rule

Adds a firewall rule to this VPS.

Required: type (in | out | group) and rule_action (ACCEPT | DROP | REJECT). You may also send action_value instead of rule_action.

If iface is omitted, the first available interface is used. Sending proto: "0" means “no protocol” and is ignored. A real macro (not "0") clears proto / dport / sport.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Request body required

application/json

typestringrequired

enum: ["in","out","group"]

rule_actionstringrequired

Firewall action. Alias `action_value` is also accepted.

enum: ["ACCEPT","DROP","REJECT"]

action_valuestring

Alias for `rule_action`

enum: ["ACCEPT","DROP","REJECT"]

ifacestring

Defaults to the first available interface when omitted on create

protostring

Protocol; `"0"` means none and is stripped

dportstring
sportstring
sourcestring
deststring
commentstring
enableinteger

enum: [0,1]

macrostring

Non-empty macro (not `"0"`) clears proto/dport/sport

logstring
posinteger
Show more · exact request schema
Request schema
{
  "$ref": "#/components/schemas/FirewallRuleInput"
}

Responses

201

Rule created

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Firewall rule created"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/firewall/rule
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/firewall/rule \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "type": "in",
  "rule_action": "ACCEPT",
  "action_value": "ACCEPT",
  "iface": "",
  "proto": "",
  "dport": "",
  "sport": "",
  "source": "",
  "dest": "",
  "comment": "",
  "enable": 0,
  "macro": "",
  "log": "",
  "pos": 1
}'
Create firewall rule
POSThttps://api.virtarix.com/service/12345/firewall/rule
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Firewall rule created",
  "data": null
}

Rule created

Update firewall rule

Updates the firewall rule at the given position. Same fields as create; only the fields you send are changed.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
posintegerrequired

Firewall rule position (zero-based index)

Example
0
Show more
{
  "schema": {
    "type": "integer",
    "minimum": 0
  }
}

Request body required

application/json

typestringrequired

enum: ["in","out","group"]

rule_actionstringrequired

Firewall action. Alias `action_value` is also accepted.

enum: ["ACCEPT","DROP","REJECT"]

action_valuestring

Alias for `rule_action`

enum: ["ACCEPT","DROP","REJECT"]

ifacestring

Defaults to the first available interface when omitted on create

protostring

Protocol; `"0"` means none and is stripped

dportstring
sportstring
sourcestring
deststring
commentstring
enableinteger

enum: [0,1]

macrostring

Non-empty macro (not `"0"`) clears proto/dport/sport

logstring
posinteger
Show more · exact request schema
Request schema
{
  "$ref": "#/components/schemas/FirewallRuleInput"
}

Responses

200

Rule updated

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Firewall rule updated"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
PUT/service/{service_id}/firewall/rule/{pos}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/firewall/rule/0 \
  --request PUT \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "type": "in",
  "rule_action": "ACCEPT",
  "action_value": "ACCEPT",
  "iface": "",
  "proto": "",
  "dport": "",
  "sport": "",
  "source": "",
  "dest": "",
  "comment": "",
  "enable": 0,
  "macro": "",
  "log": "",
  "pos": 1
}'
Update firewall rule
PUThttps://api.virtarix.com/service/12345/firewall/rule/0
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Firewall rule position (zero-based index)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Firewall rule updated",
  "data": null
}

Rule updated

Delete firewall rule

Removes the firewall rule at the given position index.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
posintegerrequired

Firewall rule position (zero-based index)

Example
0
Show more
{
  "schema": {
    "type": "integer",
    "minimum": 0
  }
}

Responses

200

Rule deleted

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Firewall rule deleted"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
DELETE/service/{service_id}/firewall/rule/{pos}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/firewall/rule/0 \
  --request DELETE \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Delete firewall rule
DELETEhttps://api.virtarix.com/service/12345/firewall/rule/0
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Firewall rule position (zero-based index)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Firewall rule deleted",
  "data": null
}

Rule deleted

Move firewall rule

Changes the order of a firewall rule. Send either:

  • target_pos — absolute new position, or
  • direction — "up" or "down" relative to the current position

Moving up when already at the top succeeds with "Firewall rule already at top".

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
posintegerrequired

Firewall rule position (zero-based index)

Example
0
Show more
{
  "schema": {
    "type": "integer",
    "minimum": 0
  }
}

Request body

application/json

target_posinteger

Absolute new position index

minimum: 0

directionstring

Relative move; alternative to `target_pos`

enum: ["up","down"]

Show more · exact request schema
Request schema
{
  "type": "object",
  "properties": {
    "target_pos": {
      "type": "integer",
      "description": "Absolute new position index",
      "minimum": 0
    },
    "direction": {
      "type": "string",
      "enum": [
        "up",
        "down"
      ],
      "description": "Relative move; alternative to `target_pos`"
    }
  }
}

Responses

200

Rule moved

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Firewall rule moved"

dataobjectrequirednullable
from_posinteger
target_posinteger

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/firewall/rule/{pos}/move
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/firewall/rule/0/move \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "target_pos": 0,
  "direction": "up"
}'
Move firewall rule
POSThttps://api.virtarix.com/service/12345/firewall/rule/0/move
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Firewall rule position (zero-based index)

Headers

Accept: application/json

Request body

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Firewall rule moved",
  "data": {
    "from_pos": 1,
    "target_pos": 1
  }
}

Rule moved

Show more

List backups

Lists on-demand backups for this VPS, your backup quota usage, and the compression methods and modes allowed on your plan.

Also shows whether a backup is currently running (backup_is_creating and backup_creation).

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Backup inventory and quotas

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
backupsarray
Array items
idinteger
sizestring
create_datestring
formatstring
protectedboolean
quota_totalnumber
quota_usednumber
quota_unitstring

example: "GiB"

available_compress_methodsarray
Array items

Type: string.

available_modesarray
Array items

Type: string.

backup_is_creatingboolean
backup_creationobjectnullable
idvalue
statusstring
messagestring
created_atstring
updated_atstring

nullable: true

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/backup
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/backup \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List backups
GEThttps://api.virtarix.com/service/12345/backup
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "backups": [
      {
        "id": 1,
        "size": "string",
        "create_date": "string",
        "format": "string",
        "protected": true
      }
    ],
    "quota_total": 1,
    "quota_used": 1,
    "quota_unit": "GiB",
    "available_compress_methods": [
      "string"
    ],
    "available_modes": [
      "string"
    ],
    "backup_is_creating": true,
    "backup_creation": {
      "id": null,
      "status": "string",
      "message": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  }
}

Backup inventory and quotas

Create backup

Starts an on-demand backup in the background.

Both compress and mode are required and must be values allowed for your plan (see the list endpoint). The request fails if a backup is already running or if your quota would be exceeded.

Returns 202 with progress fields.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Request body required

application/json

modestringrequired

How the backup is taken

enum: ["snapshot","suspend","stop"]

compressstringrequired

Compression method (`0` = none). Must be allowed on your plan.

enum: ["0","lzo","gzip","zstd"]

Show more · exact request schema
Request schema
{
  "type": "object",
  "required": [
    "mode",
    "compress"
  ],
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "snapshot",
        "suspend",
        "stop"
      ],
      "description": "How the backup is taken"
    },
    "compress": {
      "type": "string",
      "enum": [
        "0",
        "lzo",
        "gzip",
        "zstd"
      ],
      "description": "Compression method (`0` = none). Must be allowed on your plan."
    }
  }
}

Responses

202

Backup creation started

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "The backup creation is in progress."

dataobjectrequirednullable
task_idvalue

Background task identifier

backup_is_creatingboolean

example: true

backup_creationobjectnullable
idvalue
statusstring
messagestring
created_atstring
updated_atstring

nullable: true

nullable: true

400

Validation / quota / already-in-progress failure. When a backup is already creating, data may include backup_is_creating and backup_creation.

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/backup
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/backup \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "mode": "snapshot",
  "compress": "0"
}'
Create backup
POSThttps://api.virtarix.com/service/12345/backup
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "The backup creation is in progress.",
  "data": {
    "task_id": null,
    "backup_is_creating": true,
    "backup_creation": {
      "id": null,
      "status": "string",
      "message": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  }
}

Backup creation started

Delete backup

Permanently deletes a backup. Protected backups and incomplete records cannot be deleted.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
backup_idintegerrequired

Backup ID

Example
1
Show more
{
  "schema": {
    "type": "integer"
  }
}

Responses

200

Backup removed

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Backup removed successfully"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
DELETE/service/{service_id}/backup/{backup_id}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/backup/1 \
  --request DELETE \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Delete backup
DELETEhttps://api.virtarix.com/service/12345/backup/1
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Backup ID

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Backup removed successfully",
  "data": null
}

Backup removed

Restore backup

Restores this VPS from the selected backup. Destructive — current disk contents are replaced. Returns 202 with a task_id while restore runs.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
backup_idintegerrequired

Backup ID

Example
1
Show more
{
  "schema": {
    "type": "integer"
  }
}

Responses

202

Restore initiated

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Restore process initiated"

dataobjectrequirednullable
task_idvalue

Background task identifier

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/backup/{backup_id}/restore
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/backup/1/restore \
  --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Restore backup
POSThttps://api.virtarix.com/service/12345/backup/1/restore
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Backup ID

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Restore process initiated",
  "data": {
    "task_id": null
  }
}

Restore initiated

Show more

List backup schedules

Lists recurring backup schedules for this VPS, plus limits and allowed compress/mode values for creating new ones.

Only available when scheduled backups are enabled on your plan.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Scheduled backup jobs

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
jobsarray
Array items

additionalProperties: true

Type: object.

can_add_moreboolean
max_jobsinteger
available_compress_methodsarray
Array items

Type: string.

available_modesarray
Array items

Type: string.

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

403

Authenticated, but the account is inactive or the feature is not available on the current plan

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/backup-job
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/backup-job \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List backup schedules
GEThttps://api.virtarix.com/service/12345/backup-job
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "jobs": [
      {
        "additionalProperty": "anything"
      }
    ],
    "can_add_more": true,
    "max_jobs": 1,
    "available_compress_methods": [
      "string"
    ],
    "available_modes": [
      "string"
    ]
  }
}

Scheduled backup jobs

Create backup schedule

Creates a recurring backup schedule for this VPS.

Required: starttime (HH:MM), dow (days of week), mode, compress. Optional: mailto (empty/on uses your account email), mailnotification (defaults to failure when an email is set).

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Request body required

application/json

starttimestringrequired

Local start time (hours 00–23, minutes 00–59)

pattern: "^[0-9]{2}:[0-9]{2}$" · example: "03:00"

dowvaluerequired

Days of week — comma-separated string or array (`mon`…`sun`)

Exactly one of these alternatives

Alternative 1

example: "mon,wed,fri"

Type: string.

Alternative 2
Array items

enum: ["mon","tue","wed","thu","fri","sat","sun"]

Type: string.

modestringrequired

enum: ["snapshot","suspend","stop"]

compressstringrequired

enum: ["0","lzo","gzip","zstd"]

mailtostring

Email address, or empty/`on` to use the client email

mailnotificationstring

Defaults to `failure` when mailto is set

enum: ["always","failure","never"]

Show more · exact request schema
Request schema
{
  "$ref": "#/components/schemas/BackupJobInput"
}

Responses

201

Backup job created

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Backup job created successfully"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

403

Authenticated, but the account is inactive or the feature is not available on the current plan

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/backup-job
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/backup-job \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "starttime": "03:00",
  "dow": "mon,wed,fri",
  "mode": "snapshot",
  "compress": "0",
  "mailto": "",
  "mailnotification": "always"
}'
Create backup schedule
POSThttps://api.virtarix.com/service/12345/backup-job
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Backup job created successfully",
  "data": null
}

Backup job created

Update backup schedule

Updates an existing backup schedule. Same fields as create; all are re-validated. Returns 404 if the schedule does not belong to this VPS.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
job_idstringrequired

Backup schedule ID

Example
""
Show more
{
  "schema": {
    "type": "string"
  }
}

Request body required

application/json

starttimestringrequired

Local start time (hours 00–23, minutes 00–59)

pattern: "^[0-9]{2}:[0-9]{2}$" · example: "03:00"

dowvaluerequired

Days of week — comma-separated string or array (`mon`…`sun`)

Exactly one of these alternatives

Alternative 1

example: "mon,wed,fri"

Type: string.

Alternative 2
Array items

enum: ["mon","tue","wed","thu","fri","sat","sun"]

Type: string.

modestringrequired

enum: ["snapshot","suspend","stop"]

compressstringrequired

enum: ["0","lzo","gzip","zstd"]

mailtostring

Email address, or empty/`on` to use the client email

mailnotificationstring

Defaults to `failure` when mailto is set

enum: ["always","failure","never"]

Show more · exact request schema
Request schema
{
  "$ref": "#/components/schemas/BackupJobInput"
}

Responses

200

Backup job updated

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Backup job updated successfully"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
PUT/service/{service_id}/backup-job/{job_id}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl 'https://api.virtarix.com/service/12345/backup-job/{job_id}' \
  --request PUT \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "starttime": "03:00",
  "dow": "mon,wed,fri",
  "mode": "snapshot",
  "compress": "0",
  "mailto": "",
  "mailnotification": "always"
}'
Update backup schedule
PUThttps://api.virtarix.com/service/12345/backup-job/%7Bjob_id%7D
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Backup schedule ID

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Backup job updated successfully",
  "data": null
}

Backup job updated

Delete backup schedule

Removes the recurring backup schedule identified by job_id.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
job_idstringrequired

Backup schedule ID

Example
""
Show more
{
  "schema": {
    "type": "string"
  }
}

Responses

200

Backup job removed

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Backup job removed successfully"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
DELETE/service/{service_id}/backup-job/{job_id}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl 'https://api.virtarix.com/service/12345/backup-job/{job_id}' \
  --request DELETE \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Delete backup schedule
DELETEhttps://api.virtarix.com/service/12345/backup-job/%7Bjob_id%7D
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Backup schedule ID

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Backup job removed successfully",
  "data": null
}

Backup job removed

Show more

List snapshots

Lists disk snapshots for this VPS, including which one is currently active, plus how many you can still create (max_snapshots, snapshot_count, can_add_more).

Only available when snapshots are enabled on your plan.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Snapshot list

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
snapshotsarray
Array items
namestring
descriptionstring
statusstring

enum: ["active","disabled"]

additionalProperties: true

max_snapshotsinteger
snapshot_countinteger
can_add_moreboolean

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

403

Authenticated, but the account is inactive or the feature is not available on the current plan

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/snapshot
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/snapshot \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List snapshots
GEThttps://api.virtarix.com/service/12345/snapshot
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "snapshots": [
      {
        "name": "string",
        "description": "string",
        "status": "active",
        "additionalProperty": "anything"
      }
    ],
    "max_snapshots": 1,
    "snapshot_count": 1,
    "can_add_more": true
  }
}

Snapshot list

Create snapshot

Creates a snapshot in the background. Returns 201 with task_id and name.

Name rules: max 40 characters, pattern [A-Za-z0-9][A-Za-z0-9_-]{0,39}, must not be "current". Set include_ram (VMs only) to also capture memory state.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Request body required

application/json

namestringrequired

maxLength: 40 · pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,39}$" · example: "before-upgrade"

descriptionstring
include_ramboolean

Virtual machines only — also save RAM state

Show more · exact request schema
Request schema
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 40,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,39}$",
      "example": "before-upgrade"
    },
    "description": {
      "type": "string"
    },
    "include_ram": {
      "type": "boolean",
      "description": "Virtual machines only — also save RAM state"
    }
  }
}

Responses

201

Snapshot creation started

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Snapshot creation started"

dataobjectrequirednullable
task_idvalue
namestring

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

403

Authenticated, but the account is inactive or the feature is not available on the current plan

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/snapshot
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/snapshot \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "name": "before-upgrade",
  "description": "",
  "include_ram": true
}'
Create snapshot
POSThttps://api.virtarix.com/service/12345/snapshot
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Snapshot creation started",
  "data": {
    "task_id": null,
    "name": "string"
  }
}

Snapshot creation started

Update snapshot description

Changes the description of an existing snapshot. The reserved name current cannot be updated.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
snapshot_namestringrequired

Snapshot name. The reserved name current cannot be changed or deleted.

Example
""
Show more
{
  "schema": {
    "type": "string"
  }
}

Request body required

application/json

descriptionstringrequired
Show more · exact request schema
Request schema
{
  "type": "object",
  "required": [
    "description"
  ],
  "properties": {
    "description": {
      "type": "string"
    }
  }
}

Responses

200

Snapshot updated

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Snapshot updated successfully"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
PUT/service/{service_id}/snapshot/{snapshot_name}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl 'https://api.virtarix.com/service/12345/snapshot/{snapshot_name}' \
  --request PUT \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "description": ""
}'
Update snapshot description
PUThttps://api.virtarix.com/service/12345/snapshot/%7Bsnapshot_name%7D
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Snapshot name. The reserved name current cannot be changed or deleted.

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Snapshot updated successfully",
  "data": null
}

Snapshot updated

Delete snapshot

Deletes the named snapshot. The reserved name current cannot be deleted.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
snapshot_namestringrequired

Snapshot name. The reserved name current cannot be changed or deleted.

Example
""
Show more
{
  "schema": {
    "type": "string"
  }
}

Responses

200

Snapshot deleted

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Snapshot deleted successfully"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
DELETE/service/{service_id}/snapshot/{snapshot_name}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl 'https://api.virtarix.com/service/12345/snapshot/{snapshot_name}' \
  --request DELETE \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Delete snapshot
DELETEhttps://api.virtarix.com/service/12345/snapshot/%7Bsnapshot_name%7D
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Snapshot name. The reserved name current cannot be changed or deleted.

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Snapshot deleted successfully",
  "data": null
}

Snapshot deleted

Rollback to snapshot

Restores the VPS to the named snapshot. Destructive — changes made after that snapshot are lost. Returns a task_id while the rollback runs.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
snapshot_namestringrequired

Snapshot name. The reserved name current cannot be changed or deleted.

Example
""
Show more
{
  "schema": {
    "type": "string"
  }
}

Responses

200

Rollback started

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Snapshot rollback started"

dataobjectrequirednullable
task_idvalue

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/snapshot/{snapshot_name}/rollback
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl 'https://api.virtarix.com/service/12345/snapshot/{snapshot_name}/rollback' \
  --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Rollback to snapshot
POSThttps://api.virtarix.com/service/12345/snapshot/%7Bsnapshot_name%7D/rollback
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Snapshot name. The reserved name current cannot be changed or deleted.

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Snapshot rollback started",
  "data": {
    "task_id": null
  }
}

Rollback started

Show more

List power schedules

Lists scheduled power actions for this VPS (start, stop, restart), plus the form options used to create new ones (available_actions, available_job_types, creation_rules).

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Power tasks and form rules

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
tasksarray
Array items
idinteger
descriptionstring
actionstring

enum: ["start","stop","restart"]

startstring
endstringnullable
job_typestring

enum: ["oneTime","daily","weekly"]

job_timestring
daysarray
Array items

Type: string.

last_runstringnullable
available_actionsarray
Array items

Type: string.

example: ["start","stop","restart"]

available_job_typesarray
Array items

Type: string.

example: ["oneTime","daily","weekly"]

creation_rulesobject

additionalProperties: true

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/power-task
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/power-task \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List power schedules
GEThttps://api.virtarix.com/service/12345/power-task
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "tasks": [
      {
        "id": 1,
        "description": "string",
        "action": "start",
        "start": "string",
        "end": "string",
        "job_type": "oneTime",
        "job_time": "string",
        "days": [
          "string"
        ],
        "last_run": "string"
      }
    ],
    "available_actions": [
      "start",
      "stop",
      "restart"
    ],
    "available_job_types": [
      "oneTime",
      "daily",
      "weekly"
    ],
    "creation_rules": {
      "additionalProperty": "anything"
    }
  }
}

Power tasks and form rules

Create power schedule

Schedules an automatic power action for this VPS.

Required on create: power_task_action, start_date. Action aliases: shutdown → stop, reboot → restart. Job type aliases: one_time → oneTime. Weekly jobs require days. Job time uses 5-minute steps (job_time or job_hour + job_minutes).

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Request body required

application/json

descriptionstring

Alphanumeric characters and spaces

power_task_actionstring

One of `start`, `stop`, `restart`. Aliases: `shutdown`→`stop`, `reboot`→`restart`. Required on create.

enum: ["start","stop","restart","shutdown","reboot"]

job_typestring

Alias `one_time` → `oneTime`

enum: ["oneTime","daily","weekly","one_time"]

job_timestring

Time of day; minutes must be in 5-minute steps

job_hourinteger

minimum: 0 · maximum: 23

job_minutesinteger

Must be a multiple of 5

start_datestring

Required on create

format: "date"

end_datestring

format: "date"

start_timestring
end_timestring
daysarray

Required when job_type is weekly

Array items

Type: string.

Show more · exact request schema
Request schema
{
  "$ref": "#/components/schemas/PowerTaskInput"
}

Responses

201

Power task created

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Power task created"

dataobjectrequirednullable
taskobject
idinteger
descriptionstring
actionstring

enum: ["start","stop","restart"]

startstring
endstringnullable
job_typestring

enum: ["oneTime","daily","weekly"]

job_timestring
daysarray
Array items

Type: string.

last_runstringnullable

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/power-task
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/power-task \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "description": "",
  "power_task_action": "start",
  "job_type": "oneTime",
  "job_time": "",
  "job_hour": 0,
  "job_minutes": 1,
  "start_date": "2026-11-22",
  "end_date": "2026-11-22",
  "start_time": "",
  "end_time": "",
  "days": [
    ""
  ]
}'
Create power schedule
POSThttps://api.virtarix.com/service/12345/power-task
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Power task created",
  "data": {
    "task": {
      "id": 1,
      "description": "string",
      "action": "start",
      "start": "string",
      "end": "string",
      "job_type": "oneTime",
      "job_time": "string",
      "days": [
        "string"
      ],
      "last_run": "string"
    }
  }
}

Power task created

Update power schedule

Updates any subset of fields on a power schedule. At least one valid field is required. Returns 404 if the schedule does not belong to this VPS.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
task_idintegerrequired

Power schedule ID

Example
1
Show more
{
  "schema": {
    "type": "integer"
  }
}

Request body required

application/json

descriptionstring

Alphanumeric characters and spaces

power_task_actionstring

One of `start`, `stop`, `restart`. Aliases: `shutdown`→`stop`, `reboot`→`restart`. Required on create.

enum: ["start","stop","restart","shutdown","reboot"]

job_typestring

Alias `one_time` → `oneTime`

enum: ["oneTime","daily","weekly","one_time"]

job_timestring

Time of day; minutes must be in 5-minute steps

job_hourinteger

minimum: 0 · maximum: 23

job_minutesinteger

Must be a multiple of 5

start_datestring

Required on create

format: "date"

end_datestring

format: "date"

start_timestring
end_timestring
daysarray

Required when job_type is weekly

Array items

Type: string.

Show more · exact request schema
Request schema
{
  "$ref": "#/components/schemas/PowerTaskInput"
}

Responses

200

Successful action

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
PUT/service/{service_id}/power-task/{task_id}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/power-task/1 \
  --request PUT \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "description": "",
  "power_task_action": "start",
  "job_type": "oneTime",
  "job_time": "",
  "job_hour": 0,
  "job_minutes": 1,
  "start_date": "2026-11-22",
  "end_date": "2026-11-22",
  "start_time": "",
  "end_time": "",
  "days": [
    ""
  ]
}'
Update power schedule
PUThttps://api.virtarix.com/service/12345/power-task/1
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Power schedule ID

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": null
}

Successful action

Delete power schedule

Deletes the scheduled power action for this VPS.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
task_idintegerrequired

Power schedule ID

Example
1
Show more
{
  "schema": {
    "type": "integer"
  }
}

Responses

200

Power task deleted

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Power task deleted"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
DELETE/service/{service_id}/power-task/{task_id}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/power-task/1 \
  --request DELETE \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Delete power schedule
DELETEhttps://api.virtarix.com/service/12345/power-task/1
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Power schedule ID

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Power task deleted",
  "data": null
}

Power task deleted

Show more

List usage alerts

Lists resource-usage alert rules for this VPS, plus creation_rules describing required fields, condition keys, and the threshold range (0–100).

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Notification rules

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
notificationsarray
Array items
idinteger
namestring
statusvalue

Enabled/disabled flag

periodinteger

Notification interval

timeframeinteger

Data timeframe window

requires_allboolean
emailarray
Array items

Type: string.

conditionsobject
cpuUsagenumber
memoryUsagenumber
networkTrafficnumber
diskReadnumber
diskWritenumber
last_notifystringnullable
creation_rulesobject
required_on_createarray
Array items

Type: string.

example: ["name"]

condition_keysarray
Array items

Type: string.

threshold_rangearray
Array items

Type: integer.

example: [0,100]

additionalProperties: true

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/notifications
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/notifications \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
List usage alerts
GEThttps://api.virtarix.com/service/12345/notifications
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "notifications": [
      {
        "id": 1,
        "name": "string",
        "status": null,
        "period": 1,
        "timeframe": 1,
        "requires_all": true,
        "email": [
          "string"
        ],
        "conditions": {
          "cpuUsage": 1,
          "memoryUsage": 1,
          "networkTraffic": 1,
          "diskRead": 1,
          "diskWrite": 1
        },
        "last_notify": "string"
      }
    ],
    "creation_rules": {
      "required_on_create": [
        "name"
      ],
      "condition_keys": [
        "string"
      ],
      "threshold_range": [
        0,
        100
      ],
      "additionalProperty": "anything"
    }
  }
}

Notification rules

Create usage alert

Creates an alert rule. Required: name.

Optional thresholds (0–100): cpu_usage, memory_usage, network_traffic, disk_read, disk_write. Other fields control email recipients, how often to notify, the measurement window, and whether all thresholds must be exceeded (exceed_all).

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Request body required

application/json

namestring

Required on create

statusvalue

Enable/disable the rule (boolean or on/off style value)

email_addressvalue

Single email, comma-separated string, or array of addresses

Exactly one of these alternatives

Alternative 1

Type: string.

Alternative 2
Array items

Type: string.

notification_intervalinteger

Maps to stored `period`

minimum: 1

data_timeframeinteger

Maps to stored `timeframe`

minimum: 1

exceed_allboolean

When true, all thresholds must be exceeded (`requires_all`)

cpu_usagenumber

minimum: 0 · maximum: 100

memory_usagenumber

minimum: 0 · maximum: 100

network_trafficnumber

minimum: 0 · maximum: 100

disk_readnumber

minimum: 0 · maximum: 100

disk_writenumber

minimum: 0 · maximum: 100

Show more · exact request schema
Request schema
{
  "$ref": "#/components/schemas/NotificationInput"
}

Responses

201

Notification created

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
notificationobject
idinteger
namestring
statusvalue

Enabled/disabled flag

periodinteger

Notification interval

timeframeinteger

Data timeframe window

requires_allboolean
emailarray
Array items

Type: string.

conditionsobject
cpuUsagenumber
memoryUsagenumber
networkTrafficnumber
diskReadnumber
diskWritenumber
last_notifystringnullable

nullable: true

400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
POST/service/{service_id}/notifications
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/notifications \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "name": "",
  "status": null,
  "email_address": "",
  "notification_interval": 1,
  "data_timeframe": 1,
  "exceed_all": true,
  "cpu_usage": 0,
  "memory_usage": 0,
  "network_traffic": 0,
  "disk_read": 0,
  "disk_write": 0
}'
Create usage alert
POSThttps://api.virtarix.com/service/12345/notifications
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "notification": {
      "id": 1,
      "name": "string",
      "status": null,
      "period": 1,
      "timeframe": 1,
      "requires_all": true,
      "email": [
        "string"
      ],
      "conditions": {
        "cpuUsage": 1,
        "memoryUsage": 1,
        "networkTraffic": 1,
        "diskRead": 1,
        "diskWrite": 1
      },
      "last_notify": "string"
    }
  }
}

Notification created

Update usage alert

Updates any subset of fields on an alert rule. Thresholds are merged with the existing values for that rule.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
notification_idintegerrequired

Usage alert ID

Example
1
Show more
{
  "schema": {
    "type": "integer"
  }
}

Request body required

application/json

namestring

Required on create

statusvalue

Enable/disable the rule (boolean or on/off style value)

email_addressvalue

Single email, comma-separated string, or array of addresses

Exactly one of these alternatives

Alternative 1

Type: string.

Alternative 2
Array items

Type: string.

notification_intervalinteger

Maps to stored `period`

minimum: 1

data_timeframeinteger

Maps to stored `timeframe`

minimum: 1

exceed_allboolean

When true, all thresholds must be exceeded (`requires_all`)

cpu_usagenumber

minimum: 0 · maximum: 100

memory_usagenumber

minimum: 0 · maximum: 100

network_trafficnumber

minimum: 0 · maximum: 100

disk_readnumber

minimum: 0 · maximum: 100

disk_writenumber

minimum: 0 · maximum: 100

Show more · exact request schema
Request schema
{
  "$ref": "#/components/schemas/NotificationInput"
}

Responses

200

Successful action

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
PUT/service/{service_id}/notifications/{notification_id}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/notifications/1 \
  --request PUT \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "name": "",
  "status": null,
  "email_address": "",
  "notification_interval": 1,
  "data_timeframe": 1,
  "exceed_all": true,
  "cpu_usage": 0,
  "memory_usage": 0,
  "network_traffic": 0,
  "disk_read": 0,
  "disk_write": 0
}'
Update usage alert
PUThttps://api.virtarix.com/service/12345/notifications/1
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Usage alert ID

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": null
}

Successful action

Delete usage alert

Deletes the usage alert rule for this VPS.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}
notification_idintegerrequired

Usage alert ID

Example
1
Show more
{
  "schema": {
    "type": "integer"
  }
}

Responses

200

Notification deleted

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "Resource notification deleted"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
DELETE/service/{service_id}/notifications/{notification_id}
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/notifications/1 \
  --request DELETE \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Delete usage alert
DELETEhttps://api.virtarix.com/service/12345/notifications/1
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Details

Usage alert ID

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "Resource notification deleted",
  "data": null
}

Notification deleted

Show more

Get public SSH key

Returns the public SSH key for this VPS.

  • keypair mode: the public half of the generated key pair
  • sshkeys mode: the public key you (or your app) uploaded

Returns 403 if SSH keys are not enabled on your plan, or 404 if none exist.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Public key

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
public_keystring
typestring

enum: ["keypair","sshkeys"]

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

403

Authenticated, but the account is inactive or the feature is not available on the current plan

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/ssh-keys/public
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/ssh-keys/public \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Get public SSH key
GEThttps://api.virtarix.com/service/12345/ssh-keys/public
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "public_key": "string",
    "type": "keypair"
  }
}

Public key

Get private SSH key

Returns the private key when your plan uses generated key pairs.

Important: on some plans the private key is permanently deleted after you retrieve it (deleted_after: true). Download and store it securely on first access.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Responses

200

Private key (may be deleted after read)

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable
dataobjectrequirednullable
private_keystring
deleted_afterboolean

True when the key was wiped from storage after this response

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

403

Authenticated, but the account is inactive or the feature is not available on the current plan

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

404

Resource not found

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
GET/service/{service_id}/ssh-keys/private
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/ssh-keys/private \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Get private SSH key
GEThttps://api.virtarix.com/service/12345/ssh-keys/private
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "string",
  "data": {
    "private_key": "string",
    "deleted_after": true
  }
}

Private key (may be deleted after read)

Update SSH public keys

Sets or clears the public SSH key used for this VPS (when your plan allows uploading your own keys).

Send an OpenSSH public key in sshkeys, or an empty string to remove it. Nested payload.sshkeys is also accepted. Invalid keys return 400.

Path parameters

service_idintegerrequired

Numeric ID of your VPS service (same ID as in the client area)

Example
12345
Show more
{
  "schema": {
    "type": "integer",
    "example": 12345
  }
}

Request body required

application/json

sshkeysstring

OpenSSH public key, or empty string to remove

payloadobject

Alternate nested envelope

sshkeysstring
Show more · exact request schema
Request schema
{
  "type": "object",
  "properties": {
    "sshkeys": {
      "type": "string",
      "description": "OpenSSH public key, or empty string to remove"
    },
    "payload": {
      "type": "object",
      "description": "Alternate nested envelope",
      "properties": {
        "sshkeys": {
          "type": "string"
        }
      }
    }
  }
}

Responses

200

SSH key updated or removed

application/json

statusstringrequired

enum: ["success"]

messagestringrequirednullable

example: "SSH public key updated successfully"

datavaluerequirednullable
400

Invalid request — bad input, the action is not allowed for this service, or a business rule failed (for example snapshots still exist, quota exceeded).

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

401

Missing or invalid credentials

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

403

Authenticated, but the account is inactive or the feature is not available on the current plan

application/json

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Authentication details

Security alternatives from OpenAPI. Each object is an alternative; schemes within it are combined.

[
  {
    "bearerAuth": []
  }
]
Auth Required

Security requirements from OpenAPI

[
  {
    "bearerAuth": []
  }
]
PUT/service/{service_id}/ssh-keys
cURL
C
C#
Clojure
Dart
F#
Go
HTTP
Java
JavaScript
Julia
Kotlin
Node.js
Objective-C
OCaml
PHP
PowerShell
Python
R
Ruby
Rust
Shell
Swift
curl https://api.virtarix.com/service/12345/ssh-keys \
  --request PUT \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "sshkeys": "",
  "payload": {
    "sshkeys": ""
  }
}'
Update SSH public keys
PUThttps://api.virtarix.com/service/12345/ssh-keys
Authentication · Required
Remembered for this browser session after Send.
Path variables
Details

Numeric ID of your VPS service (same ID as in the client area)

Headers

Accept: application/json

Request body · Required

Code Snippet

Response

Send a request to see the response.

{
  "status": "success",
  "message": "SSH public key updated successfully",
  "data": null
}

SSH key updated or removed

Schemas

ApiSuccessResponse

statusstringrequired

enum: ["success"]

messagestringrequirednullable
datavaluerequirednullable
Exact JSON schema
ApiSuccessResponse JSON schema
{
  "type": "object",
  "required": [
    "status",
    "message",
    "data"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "success"
      ]
    },
    "message": {
      "type": "string",
      "nullable": true
    },
    "data": {
      "nullable": true
    }
  }
}

ApiErrorResponse

statusstringrequired

enum: ["error"]

messagestringrequired
dataobjectrequirednullable
errorsobject

additionalProperties: {"type":"array","items":{"type":"string"}}

nullable: true

Exact JSON schema
ApiErrorResponse JSON schema
{
  "type": "object",
  "required": [
    "status",
    "message",
    "data"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "error"
      ]
    },
    "message": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "nullable": true,
      "properties": {
        "errors": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}

ClientProfile

idinteger
firstnamestring
lastnamestring
namestring
companynamestring
emailstring

format: "email"

phonenumberstring
statusstring
countrystring
citystring
statestring
postcodestring
datecreatedstring
lastloginstring
Exact JSON schema
ClientProfile JSON schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "firstname": {
      "type": "string"
    },
    "lastname": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "companyname": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "phonenumber": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "postcode": {
      "type": "string"
    },
    "datecreated": {
      "type": "string"
    },
    "lastlogin": {
      "type": "string"
    }
  }
}

CatalogueCurrency

codestring

example: "USD"

prefixstring

example: "$"

suffixstring
Exact JSON schema
CatalogueCurrency JSON schema
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "example": "USD"
    },
    "prefix": {
      "type": "string",
      "example": "$"
    },
    "suffix": {
      "type": "string"
    }
  }
}

CatalogueProduct

Orderable product with pricing, plans, and config options

idinteger
namestring
hiddenboolean
typestring
requires_hostnameboolean
billing_cyclesarray
Array items

Type: string.

pricingobject

additionalProperties: true

use_plansboolean
plansarray
Array items

additionalProperties: true

Type: object.

config_optionsarray
Array items

additionalProperties: true

Type: object.

additional_informationarray
Array items

additionalProperties: true

Type: object.

Exact JSON schema
CatalogueProduct JSON schema
{
  "type": "object",
  "description": "Orderable product with pricing, plans, and config options",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "hidden": {
      "type": "boolean"
    },
    "type": {
      "type": "string"
    },
    "requires_hostname": {
      "type": "boolean"
    },
    "billing_cycles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "pricing": {
      "type": "object",
      "additionalProperties": true
    },
    "use_plans": {
      "type": "boolean"
    },
    "plans": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "config_options": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "additional_information": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  }
}

CatalogueGroup

idinteger
namestring
productsarray
Array items

Orderable product with pricing, plans, and config options

idinteger
namestring
hiddenboolean
typestring
requires_hostnameboolean
billing_cyclesarray
Array items

Type: string.

pricingobject

additionalProperties: true

use_plansboolean
plansarray
Array items

additionalProperties: true

Type: object.

config_optionsarray
Array items

additionalProperties: true

Type: object.

additional_informationarray
Array items

additionalProperties: true

Type: object.

Exact JSON schema
CatalogueGroup JSON schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "products": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CatalogueProduct"
      }
    }
  }
}

CatalogueListResponse

currencyobject
codestring

example: "USD"

prefixstring

example: "$"

suffixstring
groupsarray
Array items
idinteger
namestring
productsarray
Array items

Orderable product with pricing, plans, and config options

idinteger
namestring
hiddenboolean
typestring
requires_hostnameboolean
billing_cyclesarray
Array items

Type: string.

pricingobject

additionalProperties: true

use_plansboolean
plansarray
Array items

additionalProperties: true

Type: object.

config_optionsarray
Array items

additionalProperties: true

Type: object.

additional_informationarray
Array items

additionalProperties: true

Type: object.

Exact JSON schema
CatalogueListResponse JSON schema
{
  "type": "object",
  "properties": {
    "currency": {
      "$ref": "#/components/schemas/CatalogueCurrency"
    },
    "groups": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CatalogueGroup"
      }
    }
  }
}

CatalogueProductResponse

currencyobject
codestring

example: "USD"

prefixstring

example: "$"

suffixstring
productobject

Orderable product with pricing, plans, and config options

idinteger
namestring
hiddenboolean
typestring
requires_hostnameboolean
billing_cyclesarray
Array items

Type: string.

pricingobject

additionalProperties: true

use_plansboolean
plansarray
Array items

additionalProperties: true

Type: object.

config_optionsarray
Array items

additionalProperties: true

Type: object.

additional_informationarray
Array items

additionalProperties: true

Type: object.

Exact JSON schema
CatalogueProductResponse JSON schema
{
  "type": "object",
  "properties": {
    "currency": {
      "$ref": "#/components/schemas/CatalogueCurrency"
    },
    "product": {
      "$ref": "#/components/schemas/CatalogueProduct"
    }
  }
}

ApiOrderValidationError

fieldstringrequired

example: "products.0.billing_cycle"

codestringrequired

example: "cycle_not_available"

messagestringrequired
Exact JSON schema
ApiOrderValidationError JSON schema
{
  "type": "object",
  "required": [
    "field",
    "code",
    "message"
  ],
  "properties": {
    "field": {
      "type": "string",
      "example": "products.0.billing_cycle"
    },
    "code": {
      "type": "string",
      "example": "cycle_not_available"
    },
    "message": {
      "type": "string"
    }
  }
}

ApiOrderProductLine

pidintegerrequired

minimum: 1

billing_cyclestringrequired

enum: ["monthly","quarterly","semiannually","annually","biennially","triennially","onetime"]

plan_idintegernullable

Required when the product uses plans

minimum: 1

hostnamestringnullable

Required for server-type products

config_optionsobject

Map of config option ID → sub-option ID (or quantity for qty options). Plan-controlled options must not be sent.

additionalProperties: {"type":"integer"}

additional_dataobject

Map of allow-listed custom field ID → value (e.g. sshkeys)

additionalProperties: {"type":"string"}

custom_fieldsobject

Alias for additional_data

additionalProperties: {"type":"string"}

Exact JSON schema
ApiOrderProductLine JSON schema
{
  "type": "object",
  "required": [
    "pid",
    "billing_cycle"
  ],
  "properties": {
    "pid": {
      "type": "integer",
      "minimum": 1
    },
    "billing_cycle": {
      "type": "string",
      "enum": [
        "monthly",
        "quarterly",
        "semiannually",
        "annually",
        "biennially",
        "triennially",
        "onetime"
      ]
    },
    "plan_id": {
      "type": "integer",
      "minimum": 1,
      "nullable": true,
      "description": "Required when the product uses plans"
    },
    "hostname": {
      "type": "string",
      "nullable": true,
      "description": "Required for server-type products"
    },
    "config_options": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      },
      "description": "Map of config option ID → sub-option ID (or quantity for qty options).\nPlan-controlled options must not be sent.\n"
    },
    "additional_data": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Map of allow-listed custom field ID → value (e.g. sshkeys)"
    },
    "custom_fields": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Alias for additional_data"
    }
  }
}

ApiOrderRequest

productsarrayrequired
Array items
pidintegerrequired

minimum: 1

billing_cyclestringrequired

enum: ["monthly","quarterly","semiannually","annually","biennially","triennially","onetime"]

plan_idintegernullable

Required when the product uses plans

minimum: 1

hostnamestringnullable

Required for server-type products

config_optionsobject

Map of config option ID → sub-option ID (or quantity for qty options). Plan-controlled options must not be sent.

additionalProperties: {"type":"integer"}

additional_dataobject

Map of allow-listed custom field ID → value (e.g. sshkeys)

additionalProperties: {"type":"string"}

custom_fieldsobject

Alias for additional_data

additionalProperties: {"type":"string"}

minItems: 1 · maxItems: 20

promostringnullable

Optional WHMCS promotion code

domainsarray

Not supported; sending any domain returns domains_not_supported

Array items

Type: object.

Exact JSON schema
ApiOrderRequest JSON schema
{
  "type": "object",
  "required": [
    "products"
  ],
  "properties": {
    "products": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "$ref": "#/components/schemas/ApiOrderProductLine"
      }
    },
    "promo": {
      "type": "string",
      "nullable": true,
      "description": "Optional WHMCS promotion code"
    },
    "domains": {
      "type": "array",
      "description": "Not supported; sending any domain returns domains_not_supported",
      "items": {
        "type": "object"
      }
    }
  }
}

ApiOrderResponse

order_idinteger
invoice_idintegernullable
order_numberstringnullable
totalobject
amountnumber
currencystring
prefixstring
promo_appliedstringnullable
payment_statusstring

enum: ["processing","paid","failed","pending"]

payment_errorobjectnullable
codestring
messagestring

nullable: true

gateway_request_urlstringnullable
itemsobject
productsarray
Array items
line_idinteger
service_idinteger
pidinteger
namestring
billing_cyclestring
domainstringnullable
hostnamestringnullable
amountnumber
domainsarray
Array items

Type: object.

warningsarray
Array items
codestring
messagestring
Exact JSON schema
ApiOrderResponse JSON schema
{
  "type": "object",
  "properties": {
    "order_id": {
      "type": "integer"
    },
    "invoice_id": {
      "type": "integer",
      "nullable": true
    },
    "order_number": {
      "type": "string",
      "nullable": true
    },
    "total": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        },
        "prefix": {
          "type": "string"
        }
      }
    },
    "promo_applied": {
      "type": "string",
      "nullable": true
    },
    "payment_status": {
      "type": "string",
      "enum": [
        "processing",
        "paid",
        "failed",
        "pending"
      ]
    },
    "payment_error": {
      "type": "object",
      "nullable": true,
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "gateway_request_url": {
      "type": "string",
      "nullable": true
    },
    "items": {
      "type": "object",
      "properties": {
        "products": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "line_id": {
                "type": "integer"
              },
              "service_id": {
                "type": "integer"
              },
              "pid": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "billing_cycle": {
                "type": "string"
              },
              "domain": {
                "type": "string",
                "nullable": true
              },
              "hostname": {
                "type": "string",
                "nullable": true
              },
              "amount": {
                "type": "number"
              }
            }
          }
        },
        "domains": {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}

VpsListItem

idinteger
productstringnullable
hostnamestringnullable
statusstringnullable
ipsarray
Array items

Type: string.

created_atstringnullable
Exact JSON schema
VpsListItem JSON schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "product": {
      "type": "string",
      "nullable": true
    },
    "hostname": {
      "type": "string",
      "nullable": true
    },
    "status": {
      "type": "string",
      "nullable": true
    },
    "ips": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "created_at": {
      "type": "string",
      "nullable": true
    }
  }
}

ResourceUsage

usage_bytesnumber
total_bytesnumber
percentnumber
usage_humanstring
total_humanstring
Exact JSON schema
ResourceUsage JSON schema
{
  "type": "object",
  "properties": {
    "usage_bytes": {
      "type": "number"
    },
    "total_bytes": {
      "type": "number"
    },
    "percent": {
      "type": "number"
    },
    "usage_human": {
      "type": "string"
    },
    "total_human": {
      "type": "string"
    }
  }
}

VpsDetails

Live VPS status and resource usage

vm_infoobject
statusstring

example: "running"

uptimestring
uptime_secondsinteger
hostnamestring
boot_devicesarray
Array items

Type: string.

reinstallingboolean
cpuobject
usage_rationumber
percentnumber
coresnumber
memoryobject
usage_bytesnumber
total_bytesnumber
percentnumber
usage_humanstring
total_humanstring
diskobject
usage_bytesnumber
total_bytesnumber
percentnumber
usage_humanstring
total_humanstring
bandwidthobject
usage_mbnumber
limit_mbnumber
unlimitedboolean
percentnumber
network_rateobjectnullable
mb_per_secnumber
mbit_per_secnumber
humanstring

nullable: true

ip_addressesarray
Array items

Type: string.

credentialsobject
usernamestring
passwordstring

Login password for this VPS

os_infoobject

Guest agent OS info when VM is running; otherwise empty strings

namestring
pretty_namestring
versionstring
machinestring
kernel_releasestring
hostnamestring
ssh_key_infoobject

Present when SSH features are enabled for the product

typestring

enum: ["keypair","sshkeys"]

has_public_keyboolean
has_private_keyboolean
delete_private_keyboolean
sshkeysstring
Exact JSON schema
VpsDetails JSON schema
{
  "type": "object",
  "description": "Live VPS status and resource usage",
  "properties": {
    "vm_info": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "example": "running"
        },
        "uptime": {
          "type": "string"
        },
        "uptime_seconds": {
          "type": "integer"
        },
        "hostname": {
          "type": "string"
        },
        "boot_devices": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "reinstalling": {
          "type": "boolean"
        }
      }
    },
    "cpu": {
      "type": "object",
      "properties": {
        "usage_ratio": {
          "type": "number"
        },
        "percent": {
          "type": "number"
        },
        "cores": {
          "type": "number"
        }
      }
    },
    "memory": {
      "$ref": "#/components/schemas/ResourceUsage"
    },
    "disk": {
      "$ref": "#/components/schemas/ResourceUsage"
    },
    "bandwidth": {
      "type": "object",
      "properties": {
        "usage_mb": {
          "type": "number"
        },
        "limit_mb": {
          "type": "number"
        },
        "unlimited": {
          "type": "boolean"
        },
        "percent": {
          "type": "number"
        }
      }
    },
    "network_rate": {
      "type": "object",
      "nullable": true,
      "properties": {
        "mb_per_sec": {
          "type": "number"
        },
        "mbit_per_sec": {
          "type": "number"
        },
        "human": {
          "type": "string"
        }
      }
    },
    "ip_addresses": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "credentials": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string"
        },
        "password": {
          "type": "string",
          "description": "Login password for this VPS"
        }
      }
    },
    "os_info": {
      "type": "object",
      "description": "Guest agent OS info when VM is running; otherwise empty strings",
      "properties": {
        "name": {
          "type": "string"
        },
        "pretty_name": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "machine": {
          "type": "string"
        },
        "kernel_release": {
          "type": "string"
        },
        "hostname": {
          "type": "string"
        }
      }
    },
    "ssh_key_info": {
      "type": "object",
      "description": "Present when SSH features are enabled for the product",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "keypair",
            "sshkeys"
          ]
        },
        "has_public_key": {
          "type": "boolean"
        },
        "has_private_key": {
          "type": "boolean"
        },
        "delete_private_key": {
          "type": "boolean"
        },
        "sshkeys": {
          "type": "string"
        }
      }
    }
  }
}

ConsoleSessionResponse

consoleobject

Console connection details, including a ready-to-open `novnc_url`

novnc_urlstring

Ready-to-open browser URL for the noVNC console

format: "uri"

ticketstring
portstring
userstring

additionalProperties: true

Exact JSON schema
ConsoleSessionResponse JSON schema
{
  "type": "object",
  "properties": {
    "console": {
      "type": "object",
      "description": "Console connection details, including a ready-to-open `novnc_url`",
      "properties": {
        "novnc_url": {
          "type": "string",
          "format": "uri",
          "description": "Ready-to-open browser URL for the noVNC console"
        },
        "ticket": {
          "type": "string"
        },
        "port": {
          "type": "string"
        },
        "user": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}

ConfigFormResponse

hostnamestring
is_kvmboolean
sshkeys_enabledboolean
available_boot_orderobject

Map of device ID → human label (e.g. disk → Disk, cdrom → CD-ROM)

additionalProperties: {"type":"string"}

bootOrder0string
bootOrder1string
bootOrder2string
sshkeysstring
Exact JSON schema
ConfigFormResponse JSON schema
{
  "type": "object",
  "properties": {
    "hostname": {
      "type": "string"
    },
    "is_kvm": {
      "type": "boolean"
    },
    "sshkeys_enabled": {
      "type": "boolean"
    },
    "available_boot_order": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Map of device ID → human label (e.g. disk → Disk, cdrom → CD-ROM)"
    },
    "bootOrder0": {
      "type": "string"
    },
    "bootOrder1": {
      "type": "string"
    },
    "bootOrder2": {
      "type": "string"
    },
    "sshkeys": {
      "type": "string"
    }
  }
}

ConfigUpdateRequest

At least one field required

hostnamestring
bootOrder0string

Device ID from `available_boot_order` (virtual machines only)

bootOrder1string
bootOrder2string
sshkeysstring

OpenSSH public key, or empty string to remove

Exact JSON schema
ConfigUpdateRequest JSON schema
{
  "type": "object",
  "description": "At least one field required",
  "properties": {
    "hostname": {
      "type": "string"
    },
    "bootOrder0": {
      "type": "string",
      "description": "Device ID from `available_boot_order` (virtual machines only)"
    },
    "bootOrder1": {
      "type": "string"
    },
    "bootOrder2": {
      "type": "string"
    },
    "sshkeys": {
      "type": "string",
      "description": "OpenSSH public key, or empty string to remove"
    }
  }
}

LabelValue

valuestring
labelstring
Exact JSON schema
LabelValue JSON schema
{
  "type": "object",
  "properties": {
    "value": {
      "type": "string"
    },
    "label": {
      "type": "string"
    }
  }
}

FirewallRule

posinteger
typestring

enum: ["in","out","group"]

actionstring

enum: ["ACCEPT","DROP","REJECT"]

enableinteger

enum: [0,1]

commentstring
sourcestring
deststring
protostring
dportstring
sportstring
macrostring
ifacestring
logstring

additionalProperties: true

Exact JSON schema
FirewallRule JSON schema
{
  "type": "object",
  "properties": {
    "pos": {
      "type": "integer"
    },
    "type": {
      "type": "string",
      "enum": [
        "in",
        "out",
        "group"
      ]
    },
    "action": {
      "type": "string",
      "enum": [
        "ACCEPT",
        "DROP",
        "REJECT"
      ]
    },
    "enable": {
      "type": "integer",
      "enum": [
        0,
        1
      ]
    },
    "comment": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "dest": {
      "type": "string"
    },
    "proto": {
      "type": "string"
    },
    "dport": {
      "type": "string"
    },
    "sport": {
      "type": "string"
    },
    "macro": {
      "type": "string"
    },
    "iface": {
      "type": "string"
    },
    "log": {
      "type": "string"
    }
  },
  "additionalProperties": true
}

FirewallRuleInput

typestringrequired

enum: ["in","out","group"]

rule_actionstringrequired

Firewall action. Alias `action_value` is also accepted.

enum: ["ACCEPT","DROP","REJECT"]

action_valuestring

Alias for `rule_action`

enum: ["ACCEPT","DROP","REJECT"]

ifacestring

Defaults to the first available interface when omitted on create

protostring

Protocol; `"0"` means none and is stripped

dportstring
sportstring
sourcestring
deststring
commentstring
enableinteger

enum: [0,1]

macrostring

Non-empty macro (not `"0"`) clears proto/dport/sport

logstring
posinteger
Exact JSON schema
FirewallRuleInput JSON schema
{
  "type": "object",
  "required": [
    "type",
    "rule_action"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "in",
        "out",
        "group"
      ]
    },
    "rule_action": {
      "type": "string",
      "enum": [
        "ACCEPT",
        "DROP",
        "REJECT"
      ],
      "description": "Firewall action. Alias `action_value` is also accepted."
    },
    "action_value": {
      "type": "string",
      "enum": [
        "ACCEPT",
        "DROP",
        "REJECT"
      ],
      "description": "Alias for `rule_action`"
    },
    "iface": {
      "type": "string",
      "description": "Defaults to the first available interface when omitted on create"
    },
    "proto": {
      "type": "string",
      "description": "Protocol; `\"0\"` means none and is stripped"
    },
    "dport": {
      "type": "string"
    },
    "sport": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "dest": {
      "type": "string"
    },
    "comment": {
      "type": "string"
    },
    "enable": {
      "type": "integer",
      "enum": [
        0,
        1
      ]
    },
    "macro": {
      "type": "string",
      "description": "Non-empty macro (not `\"0\"`) clears proto/dport/sport"
    },
    "log": {
      "type": "string"
    },
    "pos": {
      "type": "integer"
    }
  }
}

BackupCreationStatus

idvalue
statusstring
messagestring
created_atstring
updated_atstring

nullable: true

Exact JSON schema
BackupCreationStatus JSON schema
{
  "type": "object",
  "nullable": true,
  "properties": {
    "id": {},
    "status": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  }
}

BackupListItem

idinteger
sizestring
create_datestring
formatstring
protectedboolean
Exact JSON schema
BackupListItem JSON schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "size": {
      "type": "string"
    },
    "create_date": {
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "protected": {
      "type": "boolean"
    }
  }
}

BackupListResponse

backupsarray
Array items
idinteger
sizestring
create_datestring
formatstring
protectedboolean
quota_totalnumber
quota_usednumber
quota_unitstring

example: "GiB"

available_compress_methodsarray
Array items

Type: string.

available_modesarray
Array items

Type: string.

backup_is_creatingboolean
backup_creationobjectnullable
idvalue
statusstring
messagestring
created_atstring
updated_atstring

nullable: true

Exact JSON schema
BackupListResponse JSON schema
{
  "type": "object",
  "properties": {
    "backups": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/BackupListItem"
      }
    },
    "quota_total": {
      "type": "number"
    },
    "quota_used": {
      "type": "number"
    },
    "quota_unit": {
      "type": "string",
      "example": "GiB"
    },
    "available_compress_methods": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "available_modes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "backup_is_creating": {
      "type": "boolean"
    },
    "backup_creation": {
      "$ref": "#/components/schemas/BackupCreationStatus"
    }
  }
}

BackupJobInput

starttimestringrequired

Local start time (hours 00–23, minutes 00–59)

pattern: "^[0-9]{2}:[0-9]{2}$" · example: "03:00"

dowvaluerequired

Days of week — comma-separated string or array (`mon`…`sun`)

Exactly one of these alternatives

Alternative 1

example: "mon,wed,fri"

Type: string.

Alternative 2
Array items

enum: ["mon","tue","wed","thu","fri","sat","sun"]

Type: string.

modestringrequired

enum: ["snapshot","suspend","stop"]

compressstringrequired

enum: ["0","lzo","gzip","zstd"]

mailtostring

Email address, or empty/`on` to use the client email

mailnotificationstring

Defaults to `failure` when mailto is set

enum: ["always","failure","never"]

Exact JSON schema
BackupJobInput JSON schema
{
  "type": "object",
  "required": [
    "starttime",
    "dow",
    "mode",
    "compress"
  ],
  "properties": {
    "starttime": {
      "type": "string",
      "pattern": "^[0-9]{2}:[0-9]{2}$",
      "description": "Local start time (hours 00–23, minutes 00–59)",
      "example": "03:00"
    },
    "dow": {
      "description": "Days of week — comma-separated string or array (`mon`…`sun`)",
      "oneOf": [
        {
          "type": "string",
          "example": "mon,wed,fri"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "mon",
              "tue",
              "wed",
              "thu",
              "fri",
              "sat",
              "sun"
            ]
          }
        }
      ]
    },
    "mode": {
      "type": "string",
      "enum": [
        "snapshot",
        "suspend",
        "stop"
      ]
    },
    "compress": {
      "type": "string",
      "enum": [
        "0",
        "lzo",
        "gzip",
        "zstd"
      ]
    },
    "mailto": {
      "type": "string",
      "description": "Email address, or empty/`on` to use the client email"
    },
    "mailnotification": {
      "type": "string",
      "enum": [
        "always",
        "failure",
        "never"
      ],
      "description": "Defaults to `failure` when mailto is set"
    }
  }
}

BackupJobListResponse

jobsarray
Array items

additionalProperties: true

Type: object.

can_add_moreboolean
max_jobsinteger
available_compress_methodsarray
Array items

Type: string.

available_modesarray
Array items

Type: string.

Exact JSON schema
BackupJobListResponse JSON schema
{
  "type": "object",
  "properties": {
    "jobs": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "can_add_more": {
      "type": "boolean"
    },
    "max_jobs": {
      "type": "integer"
    },
    "available_compress_methods": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "available_modes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}

SnapshotListResponse

snapshotsarray
Array items
namestring
descriptionstring
statusstring

enum: ["active","disabled"]

additionalProperties: true

max_snapshotsinteger
snapshot_countinteger
can_add_moreboolean
Exact JSON schema
SnapshotListResponse JSON schema
{
  "type": "object",
  "properties": {
    "snapshots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          }
        },
        "additionalProperties": true
      }
    },
    "max_snapshots": {
      "type": "integer"
    },
    "snapshot_count": {
      "type": "integer"
    },
    "can_add_more": {
      "type": "boolean"
    }
  }
}

PowerTask

idinteger
descriptionstring
actionstring

enum: ["start","stop","restart"]

startstring
endstringnullable
job_typestring

enum: ["oneTime","daily","weekly"]

job_timestring
daysarray
Array items

Type: string.

last_runstringnullable
Exact JSON schema
PowerTask JSON schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "description": {
      "type": "string"
    },
    "action": {
      "type": "string",
      "enum": [
        "start",
        "stop",
        "restart"
      ]
    },
    "start": {
      "type": "string"
    },
    "end": {
      "type": "string",
      "nullable": true
    },
    "job_type": {
      "type": "string",
      "enum": [
        "oneTime",
        "daily",
        "weekly"
      ]
    },
    "job_time": {
      "type": "string"
    },
    "days": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "last_run": {
      "type": "string",
      "nullable": true
    }
  }
}

PowerTaskListResponse

tasksarray
Array items
idinteger
descriptionstring
actionstring

enum: ["start","stop","restart"]

startstring
endstringnullable
job_typestring

enum: ["oneTime","daily","weekly"]

job_timestring
daysarray
Array items

Type: string.

last_runstringnullable
available_actionsarray
Array items

Type: string.

example: ["start","stop","restart"]

available_job_typesarray
Array items

Type: string.

example: ["oneTime","daily","weekly"]

creation_rulesobject

additionalProperties: true

Exact JSON schema
PowerTaskListResponse JSON schema
{
  "type": "object",
  "properties": {
    "tasks": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PowerTask"
      }
    },
    "available_actions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "start",
        "stop",
        "restart"
      ]
    },
    "available_job_types": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "oneTime",
        "daily",
        "weekly"
      ]
    },
    "creation_rules": {
      "type": "object",
      "additionalProperties": true
    }
  }
}

PowerTaskInput

descriptionstring

Alphanumeric characters and spaces

power_task_actionstring

One of `start`, `stop`, `restart`. Aliases: `shutdown`→`stop`, `reboot`→`restart`. Required on create.

enum: ["start","stop","restart","shutdown","reboot"]

job_typestring

Alias `one_time` → `oneTime`

enum: ["oneTime","daily","weekly","one_time"]

job_timestring

Time of day; minutes must be in 5-minute steps

job_hourinteger

minimum: 0 · maximum: 23

job_minutesinteger

Must be a multiple of 5

start_datestring

Required on create

format: "date"

end_datestring

format: "date"

start_timestring
end_timestring
daysarray

Required when job_type is weekly

Array items

Type: string.

Exact JSON schema
PowerTaskInput JSON schema
{
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "description": "Alphanumeric characters and spaces"
    },
    "power_task_action": {
      "type": "string",
      "description": "One of `start`, `stop`, `restart`. Aliases: `shutdown`→`stop`, `reboot`→`restart`.\nRequired on create.\n",
      "enum": [
        "start",
        "stop",
        "restart",
        "shutdown",
        "reboot"
      ]
    },
    "job_type": {
      "type": "string",
      "description": "Alias `one_time` → `oneTime`",
      "enum": [
        "oneTime",
        "daily",
        "weekly",
        "one_time"
      ]
    },
    "job_time": {
      "type": "string",
      "description": "Time of day; minutes must be in 5-minute steps"
    },
    "job_hour": {
      "type": "integer",
      "minimum": 0,
      "maximum": 23
    },
    "job_minutes": {
      "type": "integer",
      "description": "Must be a multiple of 5"
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "description": "Required on create"
    },
    "end_date": {
      "type": "string",
      "format": "date"
    },
    "start_time": {
      "type": "string"
    },
    "end_time": {
      "type": "string"
    },
    "days": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Required when job_type is weekly"
    }
  }
}

Notification

idinteger
namestring
statusvalue

Enabled/disabled flag

periodinteger

Notification interval

timeframeinteger

Data timeframe window

requires_allboolean
emailarray
Array items

Type: string.

conditionsobject
cpuUsagenumber
memoryUsagenumber
networkTrafficnumber
diskReadnumber
diskWritenumber
last_notifystringnullable
Exact JSON schema
Notification JSON schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "description": "Enabled/disabled flag"
    },
    "period": {
      "type": "integer",
      "description": "Notification interval"
    },
    "timeframe": {
      "type": "integer",
      "description": "Data timeframe window"
    },
    "requires_all": {
      "type": "boolean"
    },
    "email": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "conditions": {
      "type": "object",
      "properties": {
        "cpuUsage": {
          "type": "number"
        },
        "memoryUsage": {
          "type": "number"
        },
        "networkTraffic": {
          "type": "number"
        },
        "diskRead": {
          "type": "number"
        },
        "diskWrite": {
          "type": "number"
        }
      }
    },
    "last_notify": {
      "type": "string",
      "nullable": true
    }
  }
}

NotificationListResponse

notificationsarray
Array items
idinteger
namestring
statusvalue

Enabled/disabled flag

periodinteger

Notification interval

timeframeinteger

Data timeframe window

requires_allboolean
emailarray
Array items

Type: string.

conditionsobject
cpuUsagenumber
memoryUsagenumber
networkTrafficnumber
diskReadnumber
diskWritenumber
last_notifystringnullable
creation_rulesobject
required_on_createarray
Array items

Type: string.

example: ["name"]

condition_keysarray
Array items

Type: string.

threshold_rangearray
Array items

Type: integer.

example: [0,100]

additionalProperties: true

Exact JSON schema
NotificationListResponse JSON schema
{
  "type": "object",
  "properties": {
    "notifications": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Notification"
      }
    },
    "creation_rules": {
      "type": "object",
      "properties": {
        "required_on_create": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "example": [
            "name"
          ]
        },
        "condition_keys": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "threshold_range": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "example": [
            0,
            100
          ]
        }
      },
      "additionalProperties": true
    }
  }
}

NotificationInput

namestring

Required on create

statusvalue

Enable/disable the rule (boolean or on/off style value)

email_addressvalue

Single email, comma-separated string, or array of addresses

Exactly one of these alternatives

Alternative 1

Type: string.

Alternative 2
Array items

Type: string.

notification_intervalinteger

Maps to stored `period`

minimum: 1

data_timeframeinteger

Maps to stored `timeframe`

minimum: 1

exceed_allboolean

When true, all thresholds must be exceeded (`requires_all`)

cpu_usagenumber

minimum: 0 · maximum: 100

memory_usagenumber

minimum: 0 · maximum: 100

network_trafficnumber

minimum: 0 · maximum: 100

disk_readnumber

minimum: 0 · maximum: 100

disk_writenumber

minimum: 0 · maximum: 100

Exact JSON schema
NotificationInput JSON schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Required on create"
    },
    "status": {
      "description": "Enable/disable the rule (boolean or on/off style value)"
    },
    "email_address": {
      "description": "Single email, comma-separated string, or array of addresses",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    },
    "notification_interval": {
      "type": "integer",
      "minimum": 1,
      "description": "Maps to stored `period`"
    },
    "data_timeframe": {
      "type": "integer",
      "minimum": 1,
      "description": "Maps to stored `timeframe`"
    },
    "exceed_all": {
      "type": "boolean",
      "description": "When true, all thresholds must be exceeded (`requires_all`)"
    },
    "cpu_usage": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "memory_usage": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "network_traffic": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "disk_read": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "disk_write": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  }
}