OMC Cloud REST API Documentation

Quick Start

The OMC Cloud API is RESTful and works with any HTTP client in any language. Authenticate with your client ID and secret, then call any endpoint.

Base URL
https://console.omc.cloud/service
Format
JSON
Auth
Client ID + Secret
HTTPS
Required

Authentication

Generate your API credentials in your OMC Cloud dashboard under Settings → API Keys. You’ll receive a clientId and secret.

You can authenticate requests in two ways:

Option 1 – Direct credentials in headers

curl https://console.omc.cloud/service/servers \
  -H "Content-Type: application/json" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"

Option 2 – Token-based (recommended for repeated calls)

First, exchange credentials for a 1-hour token:

curl -X POST https://console.omc.cloud/service/authenticate \
  -H "Content-Type: application/json" \
  -d '{"clientId":"YOUR_CLIENT_ID","secret":"YOUR_SECRET"}'

Response:

{
  "authentication": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "expires": 1745393200
}

Then use the token in subsequent requests:

curl https://console.omc.cloud/service/servers \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"

Server Management

GETList all servers+
/servers

Returns an array of all servers in your account with their ID, datacenter, name, and power state.

cURL
curl https://console.omc.cloud/service/servers \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"
Python
import requests

url = "https://console.omc.cloud/service/servers"
headers = {
    'Content-Type': 'application/json',
    'AuthClientId': 'YOUR_CLIENT_ID',
    'AuthSecret': 'YOUR_SECRET',
}
response = requests.get(url, headers=headers)
print(response.json())
GETGet available server creation options+
/server

Returns the full list of available datacenters, CPU types, RAM sizes, disk options, OS templates, traffic packages, networks, and billing types you can use when creating a new server.

cURL
curl https://console.omc.cloud/service/server \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"
POSTCreate a new server+
/server

Provisions a new virtual server with the specified configuration. Returns a task ID you can poll for completion.

Required fields

  • disk_src_0 – OS image ID
  • datacenter – Location code
  • name – Server name (4-40 chars, alphanumeric + ./-/_)
  • cpu – CPU type and count (e.g., 1B, 2D)
  • ram – Memory in MB
  • password – 9-32 chars, mixed case + numeric
  • billing – monthly or hourly
  • traffic – Traffic package ID (e.g., t5000)
  • disk_size_0 – Disk size in GB
  • network_name_0 – Network name (use wan for auto IP)

Optional fields

  • managed – Enable managed services
  • backup – Enable daily backups
  • power – Auto-boot on completion
  • selectedSSHKeyValue – Public SSH key
  • network_ip_0 – Specific IP (optional with WAN)
cURL
curl -X POST https://console.omc.cloud/service/server \
  -H "Content-Type: application/json" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET" \
  -d '{
    "disk_src_0": "IL:XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "datacenter": "IL-TLV",
    "name": "my-production-server",
    "cpu": "2B",
    "ram": "4096",
    "password": "YourSecurePass123",
    "network_name_0": "wan",
    "billing": "monthly",
    "traffic": "t5000",
    "disk_size_0": "40"
  }'
POSTClone an existing server+
/server/clone

Duplicates an existing server including its OS, software, configuration, and data. Returns a task ID.

Required: source (UUID), name, password, billing

cURL
curl -X POST https://console.omc.cloud/service/server/clone \
  -H "Content-Type: application/json" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET" \
  -d '{
    "source": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "name": "server-clone",
    "password": "YourSecurePass123",
    "billing": "monthly"
  }'
GETGet server details+
/server/{serverid}

Returns full information about a specific server: ID, datacenter, CPU, RAM, power state, disks, networks (with IPs), billing type, traffic package, managed status, backup status.

cURL
curl https://console.omc.cloud/service/server/SERVER_UUID \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"
DELETETerminate a server+
/server/{serverid}/terminate

Permanently removes a server. This action is irreversible. Required body: confirm=1. If the server is powered on, also pass force=1.

cURL
curl -X DELETE https://console.omc.cloud/service/server/SERVER_UUID/terminate \
  -H "Content-Type: application/json" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET" \
  -d '{"confirm": 1, "force": 1}'

Power Management

PUTControl server power state+
/server/{serverid}/power

Power a server on, off, or restart it. Send power=on, power=off, or power=restart as form data. Returns a task ID.

cURL
curl -X PUT https://console.omc.cloud/service/server/SERVER_UUID/power \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET" \
  -d 'power=on'

Resource Management (CPU, RAM, Disk)

GETList available CPU options+
/server/{serverid}/cpu

Returns CPU configurations the server can be resized to (A, B, T, D types with vCPU counts up to 104).

PUTChange CPU configuration+
/server/{serverid}/cpu

Resize the server’s CPU. Send cpu=2B as form data.

GETList available RAM sizes+
/server/{serverid}/ram

Returns RAM sizes in MB available for each CPU type.

PUTChange RAM allocation+
/server/{serverid}/ram

Resize the server’s RAM. Send ram=4096 as form data (size in MB).

GETList available disk sizes+
/server/{serverid}/disk

Returns the array of disk sizes in GB you can resize to.

PUTResize an existing disk+
/server/{serverid}/disk

Resize an existing hard disk. Send JSON: {"size":40,"index":0,"provision":0}

cURL
curl -X PUT https://console.omc.cloud/service/server/SERVER_UUID/disk \
  -H "Content-Type: application/json" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET" \
  -d '{"size":40,"index":0,"provision":0}'
POSTAdd a new disk+
/server/{serverid}/disk

Add an additional hard disk to the server. Send size=20&provision=1 as form data.

DELETEDelete a disk+
/server/{serverid}/disk/remove

Permanently delete a disk. Send index=1&confirm=1 as form data. Data loss is permanent.

Snapshots

GETList all snapshots+
/server/{serverid}/snapshots

Returns an array of all snapshots for the server with ID, name, date, active status, and depth.

POSTCreate a snapshot+
/server/{serverid}/snapshot

Create a point-in-time snapshot of the server. Send name=my-snapshot.

PUTRevert to a snapshot+
/server/{serverid}/snapshot

Restore the server to a previous snapshot. Send snapshotId=1745411375.

DELETEDelete a snapshot+
/server/{serverid}/snapshot

Remove a snapshot. Send snapshotId=1745411375.

Configuration & Billing

PUTRename a server+
/server/{serverid}/rename

Change the server’s name. Send name=new-server-name. Constraints: 4-40 characters, letters/numbers/dots/dashes/underscores.

PUTChange root password+
/server/{serverid}/password

Update the server’s root password. Send password=NewSecurePass123. Constraints: 9-32 chars, mixed case + numeric.

GETGet billing mode+
/server/{serverid}/billing

Returns the active and future billing mode for the server.

PUTChange billing mode+
/server/{serverid}/billing

Switch between monthly and hourly billing. Send type=monthly&traffic=t5000.

Hard Disk Library

GETList the hard disk library+
/server/{serverid}/hdlib

Returns an array of disk objects with UUID and size in GB, available for cloning.

POSTClone a disk from the library+
/server/{serverid}/hdlib

Create a new disk from a library source. Send disk_name_0=cloned-disk&disk_src_0=DISK_UUID.

Data Centers

GETList available data centers+
/server/options/datacenters

Returns an array of the data centers you can deploy to, each with its id (the code you pass in the datacenter field when creating a server) and region. For the full set of creation options per data center (CPU types, RAM, disk sizes, OS images, traffic packages, networks) use GET /server above.

cURL
curl https://console.omc.cloud/service/server/options/datacenters \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"
GETOptions for one image in one data center+
/server/options/image/{DC:imageId}

The fast way to fill in a create request. Returns the CPU types, RAM sizes per CPU type (ram.A, ram.B, …), disk sizes and networks valid for this image in this data center, plus imageRequirements.minRamMb. URL-encode the image id (EU-ML:6000C2... becomes EU-ML%3A6000C2...). Choosing RAM below the minimum makes the create fail with code 1000.

cURL
curl https://console.omc.cloud/service/server/options/image/EU-ML%3A6000C29549da189eaef6ea8a31001a34 \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"

Task Queue

GETCheck task status+
/queue/{taskid}

Every operation that changes a server (create, clone, power, CPU/RAM/disk changes, snapshots, terminate) returns a task ID immediately and runs in the background. Poll this endpoint until the task finishes. Returns an array with one object: id, status, server, description, added, executed, completed and log. status is complete when the task has finished and error when it failed (log explains why). Poll every few seconds; creating a server can take several minutes. If /queue/{taskid} answers code 10 "invalid cmdId" right after the task starts or later, that is not a failure: look the id up in GET /service/queue (the account’s recent tasks).

cURL
curl https://console.omc.cloud/service/queue/TASK_ID \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"
Python
import requests, time

url = "https://console.omc.cloud/service/queue/TASK_ID"
headers = {'AuthClientId': 'YOUR_CLIENT_ID', 'AuthSecret': 'YOUR_SECRET'}
while True:
    task = requests.get(url, headers=headers).json()[0]
    if task['status'] in ('complete', 'error'):
        break
    time.sleep(2)
print(task['status'], task['log'])

Reseller & Sub-accounts

For partner (reseller) accounts. These endpoints manage the customer accounts under your own account. They live under https://console.omc.cloud/svc (not /service) and use the same AuthClientId / AuthSecret headers, with the API key of the parent account.

POSTCreate a customer account+
/svc/users/createUser

Creates a new user under your reseller account and returns its client ID. Required: hostname (the console hostname), email, firstName, lastName (each up to 32 characters) and pricelistIndex (position of the price list to assign). Optional: parentEmail (the account to place the user under), cstId (your own customer reference), setPasswordByEmail (true to email a password instead of setting one), newPassword + verifyPassword when setting it yourself, and sendValidationEmail. Returns {"id": 1230768}. Error codes: 104 email already in use, 107 invalid email, 121 password too weak, 106 password confirmation mismatch, 100 / 101 invalid first / last name.

cURL
curl -X POST https://console.omc.cloud/svc/users/createUser \
  -H "Content-Type: application/json" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET" \
  -d '{
    "hostname": "console.omc.cloud",
    "email": "customer@example.com",
    "firstName": "Dana",
    "lastName": "Levi",
    "pricelistIndex": 0,
    "parentEmail": "partner@example.com",
    "setPasswordByEmail": true,
    "sendValidationEmail": true
}'
DELETEDelete a customer account+
/svc/users/user/{userid}

Permanently removes the user with the given client ID. This is irreversible. Returns HTTP 200 with an empty body.

cURL
curl -X DELETE https://console.omc.cloud/svc/users/user/USER_ID \
  -H "Content-Type: application/json" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"
PUTSuspend or reactivate a customer account+
/svc/userOperations/{userid}/suspend

Changes the account state of a user. Send a JSON body with staffId: -1, departmentId: -1, accountState as an integer (0 active, 2 suspended – policy, 4 suspended – billing), subject and content as empty strings and services as an empty array. Returns {"cmdId": 761164688}, a transaction ID that appears in the transactions list. A matching PUT /svc/userOperations/{userid}/resume accepts the same body.

cURL
curl -X PUT https://console.omc.cloud/svc/userOperations/USER_ID/suspend \
  -H "Content-Type: application/json" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET" \
  -d '{"staffId":-1,"departmentId":-1,"accountState":2,"subject":"","content":"","services":[]}'
POSTExport a monthly usage report+
/svc/usageReport/csvUpload/{MM}_{YYYY}/Users

Generates a CSV usage report for all accounts under yours for the given month (MM_YYYY in the path). Body: transaction (0 all, 1 hourly, 2 partial monthly, 3 full-month monthly, 4 annual) and zipFormat: true. Returns cmdId and link, a temporary download URL for a ZIP containing the CSV.

cURL
curl -X POST https://console.omc.cloud/svc/usageReport/csvUpload/09_2026/Users \
  -H "Content-Type: application/json" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET" \
  -d '{"transaction":0,"zipFormat":true}'
GETList account transactions+
/svc/queue

Returns the recent transactions of your account and its sub-accounts, newest first: id, serviceName (the user’s email), commandInfo (for example “Suspend User Account” or “Usage Report Upload”), dtCreate, dtExecute, dtComplete, exitCode (0 = success), progress (100 = finished) and warn.

cURL
curl https://console.omc.cloud/svc/queue \
  -H "Content-Type: application/json" \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"

Console API (/svc): servers, firewall, BIOS

A second API on the same host, https://console.omc.cloud/svc, with the same AuthClientId / AuthSecret headers. Use it to read rich server records and to manage the cloud firewall and firmware, which exist only here. Rule of thumb: read through /svc, make changes through /service.

GETList servers with full details+
/svc/servers

Returns a page of servers with state, CPU, RAM, OS and network cards: {"nItems", "items": [...], "next", "previous", ...}. Add ?server_uuid=SERVER_UUID to get one server. A server’s state is on or off.

cURL
curl https://console.omc.cloud/svc/servers?server_uuid=SERVER_UUID \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"
GETGet a server’s cloud firewall+
/svc/server/{id}/firewall

Returns fwac, rules, ipSets, aliases and nics (one entry per network card, each with a default block holding enable, inPolicy and outPolicy). fwac: 0 means the firewall is ENABLED, fwac: 1 means disabled. A new server starts with the firewall disabled.

cURL
curl https://console.omc.cloud/svc/server/SERVER_UUID/firewall \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET"
PUTSet a server’s cloud firewall+
/svc/server/{id}/firewall

Replaces the whole configuration: always send fwac, the nics array from the GET (with default.enable as a boolean and inPolicy: DROP to block inbound by default), every rule you want to keep, ipSets and aliases. Rules are matched in pos order; each needs proto (tcp, udp, icmp) or macro. A 200 does not prove the firewall is on: read it back with the GET and retry until fwac is 0 and every NIC defaults to DROP. Do this before you power on a new server.

cURL
curl -X PUT https://console.omc.cloud/svc/server/SERVER_UUID/firewall \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"fwac": 0, "nics": [...from GET, each with "default": {"enable": true, "inPolicy": "DROP", "outPolicy": "ACCEPT"}], "rules": [{"pos": 0, "enable": true, "action": "ACCEPT", "type": "in", "proto": "tcp", "source": "203.0.113.10/32", "dport": "22", "sport": "", "dest": "", "comment": "SSH from my IP", "log": "nolog", "iface": "", "macro": "", "icmpType": ""}], "ipSets": [], "aliases": []}'
PUTSet the firmware type+
/svc/server/{id}/bios

Send {"bios": "seabios"} (legacy BIOS) or {"bios": "ovmf"} (UEFI). The server must be powered off. Answers 200 with an empty body.

cURL
curl -X PUT https://console.omc.cloud/svc/server/SERVER_UUID/bios \
  -H "AuthClientId: YOUR_CLIENT_ID" \
  -H "AuthSecret: YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"bios": "seabios"}'

Safety rules for scripts and AI agents

These rules come from running the API in production. Build them into any script or AI agent that changes servers.

  • Never retry a create, clone or disk add after a timeout or a bare 5xx. It may already have been accepted, and a retry can create a second billed server. List the servers by name to find out.
  • Create servers powered off (do not send power), set the cloud firewall, read it back, and only then power on.
  • Prove a delete by absence from GET /service/servers. An error on a by-id call does not prove the server is gone.
  • Check the body, not only the status: an error envelope {"errors": [...]} can arrive with HTTP 200, and some calls answer 200 with an empty body.
  • Do not follow redirects (your key headers would be re-sent) and never turn off TLS verification.
  • Retry only calls that are safe to repeat, and only on code 5 (“Existing operation is currently running”) or HTTP 429, with backoff.
  • Open SSH, RDP and database ports to your own IP (a /32), never to the whole internet.

Use with AI agents and tools

The OMC Cloud API is REST-based and works with any HTTP client. To let an AI agent such as Claude Code manage your servers, install the OMC Cloud skill: it teaches the agent this API and the safety rules above.

OMC Cloud skill
SKILL.md for Claude Code and other AI agents
Python client
omc_cloud.py, standard library only, safety rules built in
cloudcli
Command line tool: download it in the console under API > CLI
cURL, Python, Node.js, PHP
Any HTTP client: requests, fetch, Guzzle

Error Handling

The API uses standard HTTP status codes:

  • 200 OK – Successful request
  • 400 Bad Request – Invalid parameters or malformed request
  • 401 Unauthorized – Missing or invalid credentials
  • 403 Forbidden – Authentication succeeded but permission denied
  • 404 Not Found – Resource doesn’t exist
  • 500 Internal Server Error – Server-side issue (please contact support)

Most successful operations return a task ID you can use to track async progress with GET /queue/{taskid} (see Task Queue above). All requests must be sent over HTTPS.

Ready to start building?

Generate your API credentials in the OMC Cloud dashboard and start automating in minutes.

Get API Credentials →