Skip to content
-30% on your first invoiceNEW
VexCloud

Developers

VexCloud API: manage your VPS from your scripts

Order a VPS with the operating system of your choice, reboot or reinstall it, without going through the client area. A simple JSON REST API, with one key per application.

Base URLhttps://my.vexcloud.fr/modules/addons/vexapi/api.php/v1

Quick start

  1. 1

    Create a key

    Client area → Account → API keys. Enter your servers’ IPs.

  2. 2

    Wait for approval

    Our team activates the key quickly. Copy it: it is shown only once.

  3. 3

    Make your first call

    List your VPS with the command below.

bash
export VEX_KEY="vex_..."
curl -H "Authorization: Bearer $VEX_KEY" https://my.vexcloud.fr/modules/addons/vexapi/api.php/v1/services

Authentication

Send your key in the Authorization header of every request:

http
Authorization: Bearer vex_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  • A key only gives access to the services of the account that created it.
  • Each key only accepts the IP addresses or CIDR ranges (IPv4 and IPv6) chosen when creating it.
  • The X-API-Key: <key> header is also accepted.
  • Request bodies are JSON (Content-Type: application/json).
  • Lost or leaked key? Revoke it in the client area and create a new one.

Rate limits

Requests per key60 per minute
Reboots and reinstalls per VPS10 per hour
Orders per account5 per 24 hours

Every response includes the X-RateLimit-Limit and X-RateLimit-Remaining headers. Beyond the limit, the API returns 429 with a Retry-After header (in seconds). Need more? Contact us.

Responses and errors

Results are in “data”. On error, the API returns an “error” object:

json
{
  "error": { "code": 404, "type": "not_found", "message": "Service not found." }
}
HTTPtypeMeaning
400invalid_requestMalformed request (invalid JSON).
401unauthorizedMissing, invalid or revoked key.
403forbiddenKey pending approval, IP not allowed or account inactive.
404not_foundUnknown route, or resource not on your account.
409conflictThe VPS is not in a state that allows the action (suspended…).
422validation_errorInvalid parameter: the message says which one.
429rate_limitedLimit reached: retry after the Retry-After header delay.
501not_implementedAction not available for your account yet (see capabilities).
502provisioning_errorThe action failed on the platform: retry or contact support.

Endpoints

GET/me

Your account

Information about the account linked to the key, and the actions available to you in “capabilities”. Check it once before automating.

request
curl -H "Authorization: Bearer $VEX_KEY" \
  https://my.vexcloud.fr/modules/addons/vexapi/api.php/v1/me
response
{
  "data": {
    "client_id": 42,
    "key_name": "Deploy server",
    "currency": "EUR",
    "credit": "120.00",
    "capabilities": {
      "reboot": true,
      "reinstall": true,
      "reinstall_choose_os": true,
      "orders": true
    }
  }
}
GET/services

List your VPS

All your pending, active and suspended VPS. GET /services/{id} returns the same object for a single VPS.

request
curl -H "Authorization: Bearer $VEX_KEY" \
  https://my.vexcloud.fr/modules/addons/vexapi/api.php/v1/services
response
{
  "data": [
    {
      "id": 123,
      "product": "VPS M",
      "product_id": 7,
      "hostname": "web01.example.com",
      "status": "Active",
      "ip": "203.0.113.25",
      "additional_ips": [],
      "os": { "id": 58, "name": "Debian 12" },
      "billing_cycle": "Monthly",
      "amount": "9.99",
      "next_due_date": "2026-12-15",
      "created_at": "2026-03-15"
    }
  ]
}
POST/services/{id}/reboot

Reboot a VPS

Reboots the VPS. No request body. The VPS must be active.

request
curl -X POST -H "Authorization: Bearer $VEX_KEY" \
  https://my.vexcloud.fr/modules/addons/vexapi/api.php/v1/services/123/reboot
response
{ "data": { "service_id": 123, "action": "reboot", "status": "accepted" } }
GET/os/{service_id}

Operating systems for a VPS

The operating systems you can install on this VPS when reinstalling it.

request
curl -H "Authorization: Bearer $VEX_KEY" \
  https://my.vexcloud.fr/modules/addons/vexapi/api.php/v1/os/123
response
{
  "data": [
    { "id": 58, "name": "Debian 12" },
    { "id": 59, "name": "Ubuntu 24.04" }
  ]
}
POST/services/{id}/reinstall

Reinstall a VPS

Erases the whole VPS disk and reinstalls it with the chosen operating system. It runs in the background and takes a few minutes; new credentials are sent to you by email.

FieldTypeDescription
confirmrequiredbooleanMust be true: protects against accidental wipes.
osstring | intName or ID of a system from GET /os/{service_id}. Without it, the current system is reinstalled.
All data on the VPS is deleted. Take a backup or a snapshot first.
request
curl -X POST -H "Authorization: Bearer $VEX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"os": "Ubuntu 24.04", "confirm": true}' \
  https://my.vexcloud.fr/modules/addons/vexapi/api.php/v1/services/123/reinstall
response
{ "data": { "service_id": 123, "action": "reinstall", "os": "Ubuntu 24.04", "status": "accepted" } }
GET/products

Orderable plans

Every VPS plan you can order, with prices in your currency, the available operating systems (“os”) and other configurable options.

request
curl -H "Authorization: Bearer $VEX_KEY" \
  https://my.vexcloud.fr/modules/addons/vexapi/api.php/v1/products
response
{
  "data": [
    {
      "id": 7,
      "name": "VPS M",
      "group": "VPS",
      "description": "4 vCPU, 8 GB RAM, 80 GB NVMe",
      "currency": "EUR",
      "pricing": { "monthly": "9.99", "annually": "99.90" },
      "config_options": [ ... ],
      "os": {
        "option_id": 3,
        "choices": [
          { "id": 58, "name": "Debian 12" },
          { "id": 59, "name": "Ubuntu 24.04" }
        ]
      }
    }
  ]
}
POST/orders

Order a VPS

Creates an order, billed exactly as from the client area. If your account credit covers the invoice, it is paid automatically and the VPS is delivered right away. Otherwise the invoice stays unpaid (payment_url) and the VPS is delivered once it is paid.

FieldTypeDescription
product_idrequiredintPlan ID, from GET /products.
osstring | intName or ID of a system from the plan’s “os.choices”.
billing_cyclestringOne of the “pricing” keys (monthly by default).
hostnamestringHostname, e.g. web02.example.com.
config_optionsobjectOther options: { "option_id": choice_id }, from “config_options”.
Tip: add funds to your account so your orders are paid and delivered without any manual step.
request
curl -X POST -H "Authorization: Bearer $VEX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id": 7, "os": "Debian 12", "billing_cycle": "monthly", "hostname": "web02.example.com"}' \
  https://my.vexcloud.fr/modules/addons/vexapi/api.php/v1/orders
response
{
  "data": {
    "order_id": 981,
    "service_ids": [456],
    "invoice_id": 2210,
    "invoice_status": "Paid",
    "amount_due": 0,
    "payment_url": null,
    "message": "Order placed. The VPS will be provisioned automatically."
  }
}
GET/orders/{id}

Track an order

Poll this route until the service is “Active” and an IP is assigned.

request
curl -H "Authorization: Bearer $VEX_KEY" \
  https://my.vexcloud.fr/modules/addons/vexapi/api.php/v1/orders/981
response
{
  "data": {
    "order_id": 981,
    "status": "Active",
    "invoice_status": "Paid",
    "services": [
      { "id": 456, "hostname": "web02.example.com", "status": "Active", "ip": "203.0.113.40" }
    ]
  }
}

Full example: order and wait for the VPS

This script orders a Debian 12 VPS, then waits until it is delivered and prints its IP. It uses curl and jq.

bash
#!/usr/bin/env bash
# Order a Debian 12 VPS and wait for its IP
set -euo pipefail
API="https://my.vexcloud.fr/modules/addons/vexapi/api.php/v1"
AUTH="Authorization: Bearer $VEX_KEY"

ORDER=$(curl -sf -X POST -H "$AUTH" -H "Content-Type: application/json" \
  -d '{"product_id": 7, "os": "Debian 12", "hostname": "web02.example.com"}' \
  "$API/orders" | jq -r '.data.order_id')

until IP=$(curl -sf -H "$AUTH" "$API/orders/$ORDER" \
  | jq -er '.data.services[0] | select(.status == "Active") | .ip'); do
  sleep 20
done
echo "VPS ready : $IP"

A question about the API?

Open a ticket from the client area: our team will get back to you. Open a ticket