1. Virtual Private Servers
my.host API
  • Getting started
    • Introduction
    • Base url
    • Authentication
    • Response codes
  • Domains
    • Domains
      • DNS
        • Zone
          • Get DNS zonefile
          • Import DNS zonefile
        • Get DNS records
        • Update DNS records
        • Update single DNS record
        • Delete single DNS record
      • List domains
      • Get domain
      • Update domain
      • Cancel domain
      • Cancel domain deletion
      • Get auth code
    • Contacts
      • List profiles
      • Get profile
      • Create profile
      • Update profile
      • Delete profile
      • Get profile
      • Update profile
    • Nameservers
      • List profiles
      • Get profile
      • Create profile
      • Update profile
      • Delete profile
    • DNS templates
      • List templates
      • Get template
      • Create template
      • Update template
      • Delete template
    • Availability
      • Check domain availability
    • Order
      • Order domain
    • Extensions
      • List domain extensions
      • Get domain extension
  • Virtual Private Servers
    • Backups
      • List backups
      • Create backup
      • Restore backup
    • SSH keys
      • List SSH keys
      • Add SSH key
      • Delete SSH key
    • List VPS products
      GET
    • Order VPS
      POST
    • List VPS instances
      GET
    • VPS details
      GET
    • Update VPS
      PUT
    • Restart VPS
      POST
    • Enable or disable rescue mode
      PUT
    • Cancel VPS
      DELETE
    • Cancel VPS deletion
      PUT
    • List available OS images
      GET
    • Reinstall VPS
      POST
    • Start VPS
      POST
    • Stop VPS
      POST
    • Power off VPS
      POST
    • Reset VPS root password
      POST
    • Change VPS hostname
      PUT
  • Certificates
    • List certificates
    • Get certificate
    • List certificate products
    • Order certificate
    • Generate CSR
    • Request certificate
  • Orders
    • List orders
    • Get order
    • Update order
  • Affiliate
    • Commissions
      • List affiliate commissions
      • Get affiliate commission
    • Payments
      • List affiliate payments
      • Get affiliate payment
  • Account
    • Profile
      • Get account profile
      • Update account profile
    • Payment methods
      • List payment methods
      • Update default payment method
    • Invoices
      • List invoices
      • Get invoice
      • Download invoice PDF
    • Users
      • List account users
      • Get account user
      • Create account user
      • Update account user
    • Tickets
      • List support tickets
      • Get support ticket
      • Create support ticket
      • Reply to support ticket
  • Tools
    • Get your IP and customer number
  1. Virtual Private Servers

Order VPS

POST
/vps/order
Order a new VPS. Be careful: the order is placed directly and the account is charged.
Creation is asynchronous: the response carries an order_id, not a VPS. Poll GET /orders/{order_id} until the order is processed, then the new instance shows up in GET /vps/.
Pick product_id from GET /vps/products and image_id from GET /vps/images. Unmanaged products need ssh_key_id or root_password. Managed products take neither.
customizations are desired totals, not extras above the package (a plan with 2 cores ordered as 3 is 3 cores). extra_software ids must match GET /vps/products availability for the chosen image and product. CloudLinux and Imunify360 must be ordered together. Extra software is billed here; installing it on the VPS is a later phase.

Request

Authorization
API Key
Add parameter in header
API-key
Example:
API-key: ********************
or
Header Params

Body Params application/jsonRequired

Example
{
    "product_id": 107,
    "image_id": 1,
    "hostname": "server.example.com",
    "ssh_key_id": 12,
    "customizations": {
        "disk": 60,
        "cores": 2,
        "ram": 4,
        "ipv4": 1,
        "snapshots": 1,
        "traffic": 3
    },
    "extra_software": [84, 134, 100],
    "jetbackup_storage": 5,
    "uplink_speed": 0,
    "ddos_protection": 0
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://mijn.host/api/v2/vps/order' \
--header 'Accept: application/json' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "product_id": 107,
    "image_id": 1,
    "hostname": "server.example.com",
    "ssh_key_id": 12,
    "customizations": {
        "disk": 60,
        "cores": 2,
        "ram": 4,
        "ipv4": 1,
        "snapshots": 1,
        "traffic": 3
    },
    "extra_software": [84, 134, 100],
    "jetbackup_storage": 5,
    "uplink_speed": 0,
    "ddos_protection": 0
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
    "status": 200,
    "status_description": "Request successful",
    "data": {
        "order_id": 10000
    }
}
🟠400Credit limit exceeded
🟠400Duplicate hostname
🟠400Wrong request method
🟠400SSL connection is required
🟠401No valid API key set
🟠401API key has expired
🟠401Remote IP address is not found in the API key whitelist
🔴500Error
Modified at 2026-09-01 15:50:57
Previous
List VPS products
Next
List VPS instances
Built with