AntaCloud API

The whole panel, in a REST API.

Create, start, resize and delete your servers from your code. Everything you do in the panel can also be done through the API.

Quick start

A server in three requests.

Create an API key in your project, choose a system, send the configuration. The server starts on its own.

  1. Create an API keyIn your project, open "API keys". The key is shown only once.
  2. Choose an imageGET /images returns the available systems and their ID.
  3. Create the serverPOST /servers with the image, the resources and your SSH key, plus an install script if needed.
  4. Wait until it is readyPoll GET /servers/{id} until the status is running.
terminal
# 1. Available systems
curl -s https://cloud.antaxium.com/api/v1/images \
  -H "Authorization: Bearer $TOKEN"

# 2. Create a server
curl -s -X POST https://cloud.antaxium.com/api/v1/servers \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "imageId": "cmw9a2x0k0001",
    "ramGb": 2, "cores": 1, "diskGb": 20,
    "auth": { "type": "ssh", "sshKeyIds": ["cmwb1k2l30004"] }
  }'

# 3. Track its status
curl -s https://cloud.antaxium.com/api/v1/servers/488626887 \
  -H "Authorization: Bearer $TOKEN"
Coverage

131 routes, your whole infrastructure.

The API covers all of AntaCloud, from Ryzen servers to DNS zones.

11 routes

Servers

Create, list, start, stop, resize, reinstall.

47 routes

Game servers

Catalog, power, console, ports, files, backups.

6 routes

Backups

Create, restore, delete, manage slots.

12 routes

IPv4 addresses

Buy IPs, attach them and move them between servers.

11 routes

Transit and gateways

WireGuard or VXLAN gateways, bandwidth of your choice.

5 routes

Tunnels

Publish a machine's service with a fixed public address.

7 routes

Domains

Availability, purchase, attachment, cancellation.

11 routes

DNS zones

Zones, records, verification and statistics.

4 routes

SSH keys

Add and remove the keys of your servers.

9 routes

Team

Project members, invitations and permissions.

2 routes

Monitoring

Metrics and events reported by the hypervisor.

6 routes

Project and catalog

Balance, limits, quotes, log, images and scripts.

Conventions

Simple and predictable.

One key per project

Each key is tied to a single project and only sees its resources. You can restrict it to certain IP addresses.

JSON everywhere

Requests and responses in JSON, dates in ISO 8601 (UTC), amounts in euros.

Asynchronous actions

Creation, power and reinstall answer 202 right away; the status shows the progress.

Stable errors

A clear HTTP code and a fixed error code, with the offending field when a parameter is invalid.

OAuth sign-in

Your applications can request access to a customer account via OAuth, with limited permissions.

Costs under control

Ask for the price of a configuration before creating it. If the credit is not enough, the API answers 402.

Responses

Responses that are easy to read.

A successful response always contains a data object. On failure, the error object gives a stable code and a readable message.

creatingstartingrunningstoppingstoppedrescalingreinstallingdeletingerror

During a transitional status, other actions on the server answer 409 busy. Wait for running or stopped before moving on.

401Missing or invalid key
402Insufficient credit
404Resource not found in this project
409Server busy
422Invalid parameter or limit reached
200 · success
{
  "data": {
    "id": "488626887",
    "status": "running"
  }
}
422 · error
{
  "error": {
    "code": "invalidInput",
    "message": "Invalid value (ramGb).",
    "details": { "field": "ramGb" }
  }
}
Questions

Frequently asked questions.

Is the API paid?

No. The API comes with your account. Only the resources you create are billed, by the hour, just like in the panel.

Where is the documentation?

The full documentation, with examples in curl, JavaScript, Python, PHP and Go, is available from the "Read the documentation" button on this page.

Can I restrict a key?

Yes. A key only gives access to its project, and you can limit the IP addresses allowed to use it. Delete a compromised key from "API keys".

Can game servers be controlled?

Yes: creation, power, sending commands, ports, live resources and backups are all available in the API.

Create your first API key.

Create your account in seconds, with no commitment.