Your servers, from code.
The same API the panel at panel.getore.io runs on, opened to scripts. Deploy and reinstall servers, drive power, take snapshots and backups, read metrics, pay and talk to support — all over JSON and one bearer key.
https://panel.getore.ioQuick start
- Open Account → API keys in the panel and create a key. Give it only the scopes the script needs.
- Copy the secret. It is shown once and cannot be read back later.
- Send it in the
Authorizationheader of every request.
export ORE_KEY="flx_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" curl -s https://panel.getore.io/api/servers \ -H "Authorization: Bearer $ORE_KEY"
import os
import requests
API = "https://panel.getore.io"
s = requests.Session()
s.headers["Authorization"] = f"Bearer {os.environ['ORE_KEY']}"
r = s.get(f"{API}/api/servers")
r.raise_for_status()
for srv in r.json()["servers"]:
print(srv["id"], srv["hostname"], srv["primary_ipv4"], srv["power_state"])
const API = "https://panel.getore.io";
const headers = { Authorization: `Bearer ${process.env.ORE_KEY}` };
const res = await fetch(`${API}/api/servers`, { headers });
if (!res.ok) throw new Error((await res.json()).error.message);
const { servers } = await res.json();
for (const s of servers) console.log(s.id, s.hostname, s.primary_ipv4, s.power_state);
The answer lists the account's servers and a few counters:
{
"servers": [
{
"id": 3241,
"hostname": "web-1",
"kind": "vps",
"os_name": "Debian",
"os_version": "13",
"primary_ipv4": "203.0.113.24",
"status": "active",
"power_state": "running",
"hypervisor_backed": true,
"bandwidth_action": "throttle",
"monthly_cents": 400,
"renews_on": "2027-01-04",
"created_at": "2026-12-04T18:20:11Z"
}
],
"counters": { "total": 1, "active": 1, "vps": 1, "dedicated": 0 }
}
To check a key, call GET /api/me: it answers with the user, the account, the role and the key's scopes.
API keys
A key looks like flx_<12 hex>_<64 hex> and goes in the header Authorization: Bearer ….
- Lifetime. 1 to 365 days, 90 by default. There is no "never expires": plan to rotate.
- Identity. A key acts as the user who created it. That user's role is checked on every request, so a key of a
readonlymember cannot write whatever its scopes say. - Membership. A key dies together with its creator's membership in the account.
- Secret. Shown once at creation. Keep it in a secret store, not in code or in a repository.
A key with the spend scope can take money from the balance. Do not ship such keys to browsers, CI logs or shared machines.
Scopes
Every operation needs one scope; the reference names it on each endpoint. A key without it gets 403 insufficient_scope. spend and destroy include write.
| Scope | Allows | Examples |
|---|---|---|
| read | Reading anything. Every key has it. | servers, metrics, tasks, invoices, catalog |
| write | Changes that cost nothing. | power, rescue, rename, SSH keys, tickets, a top-up link |
| spend | Takes money from the balance at once or opens a recurring charge. | deploy, clone, move, extra IPv4, snapshots, backups, backup policy |
| destroy | Loses data or a paid resource. | terminate, reinstall, restore, deleting a snapshot or backup, giving an address back |
Requests and answers
- Bodies and answers are JSON. Send
Content-Type: application/jsonwith a body. - Times are RFC 3339 in UTC, e.g.
2026-12-04T18:20:11Z. - Money is an integer in cents of the account's currency (
currency, USD today):400is $4.00. - Ids of servers and tickets are integers; ids of tasks, snapshots, backups, SSH keys, plans and locations are UUIDs.
- Fields marked "text for a person" (a task's
stepanderror, an address request'snote) are for showing, not for parsing.
Errors
Every error has the same shape. message is written for a person; branch on code and the HTTP status.
{ "error": { "code": "insufficient_scope", "message": "This key cannot spend money." } }
| Status | code | What to do |
|---|---|---|
| 400 | bad_request | The body or a parameter is wrong. Fix the request. |
| 401 | unauthorized | No key, a wrong key or an expired one. |
| 402 | insufficient_credit | The balance does not cover it. Top up and try again with the same Idempotency-Key. |
| 403 | forbidden | The user's role does not allow it (for example a readonly member). |
| 403 | insufficient_scope | The key lacks the scope the operation needs. Make a key with it. |
| 404 | not_found | No such object in this account. |
| 409 | conflict | The object is busy or in the wrong state, for example another task is running on the server. |
| 413 | payload_too_large | The body is too big. |
| 422 | idempotency_key_reused | The same Idempotency-Key came with another body or server. |
| 429 | rate_limited | Too many requests. Wait Retry-After seconds. |
| 500 | internal_error | Our fault. Retry later; for purchases reuse the same Idempotency-Key. |
| 503 | unavailable | A dependency is down for a moment. Retry with backoff. |
Lists and paging
Lists that take limit and offset send the full number of rows in the X-Total-Count header. The server journal, GET /api/servers/{id}/log, pages the same way (100 rows by default, 500 at most) but sends no count: stop when a page comes back shorter than limit.
curl -s -D - "https://panel.getore.io/api/account/activity?limit=50&offset=0" \ -H "Authorization: Bearer $ORE_KEY" | grep -i x-total-count
Tasks
Anything that happens on a server — power, install, snapshot, backup, restore, clone, move — runs as a task. The call answers 202 with the task (TaskView) or with a task / task_id field. Poll GET /api/tasks/{id} every few seconds until finished_at is set; status is then done, failed or aborted.
{
"id": "6f1c2a0e-9a52-4f7b-9a43-3c2d0f1b7e11",
"server_id": 3241,
"kind": "reboot",
"status": "running",
"progress": 40,
"step": "Waiting for the guest to come back",
"error": null,
"result": null,
"created_at": "2026-12-04T18:30:02Z",
"started_at": "2026-12-04T18:30:03Z",
"finished_at": null
}
GET /api/servers/{id}/tasks/activereturns the server's unfinished task, ornull.POST /api/tasks/{id}/abortaborts a queued or running task.- A clone or move that failed is removed together with the server it was making, so polling it can end in
404. The outcome is then in the journal of the source server.
Money and retries
Purchases take the money at once and are not refunded. So a network error after a purchase must never turn into a second purchase.
A deploy, a clone and an extra IPv4 bought with a key must carry an Idempotency-Key header: 1 to 255 visible ASCII characters, unique per purchase (a UUID is fine).
- A retry with the same key and the same body within 24 hours gets the first answer again, marked
Idempotent-Replayed: true, and charges nothing. - The same key with a different body or on another server gets
422 idempotency_key_reused. - A request that failed is not kept: after a top-up, the same key can be tried again.
Make the key once per purchase, store it next to your own record of the order, and reuse it on every retry of that order.
Rate limits
| What | Rate | Burst |
|---|---|---|
| All requests, per credential | 10 per second | 50 |
| POSTs that spend money | 6 per minute | 10 |
Over the limit you get 429 rate_limited with a Retry-After header. Wait that many seconds; when polling tasks, every 3–5 seconds is plenty.
Recipe: deploy a server
spend Takes the term's price from the balance at once (402 insufficient_credit when it does not cover it) and needs a verified e-mail. An account holds at most 10 servers.
GET /api/catalog— pick a plan, a location and an image. A plan can be ordered only in a location listed inofferswithin_stock.- Optionally
GET /api/account/ssh-keysfor the keys to put on the server. POST /api/deploywith anIdempotency-Key. The answer hasserver_id,task_idandorder_id.- Poll the install task until it finishes, then read the server for its address.
curl -s https://panel.getore.io/api/catalog -H "Authorization: Bearer $ORE_KEY" \
| jq '{plans: [.plans[] | {id, name}], locations: [.locations[] | {id, city}], images: [.images[] | .id]}'
curl -s https://panel.getore.io/api/deploy \
-H "Authorization: Bearer $ORE_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"plan_id": "PLAN-UUID",
"location_id": "LOCATION-UUID",
"image_id": "debian-13",
"hostname": "web-1",
"ssh_key_ids": ["SSH-KEY-UUID"],
"term": "monthly"
}'
import os, time, uuid
import requests
API = "https://panel.getore.io"
s = requests.Session()
s.headers["Authorization"] = f"Bearer {os.environ['ORE_KEY']}"
def wait(task_id):
while True:
t = s.get(f"{API}/api/tasks/{task_id}").json()
if t["finished_at"]:
return t
time.sleep(4)
order_key = str(uuid.uuid4()) # keep it with your order; reuse on retries
r = s.post(f"{API}/api/deploy", headers={"Idempotency-Key": order_key}, json={
"plan_id": "PLAN-UUID",
"location_id": "LOCATION-UUID",
"image_id": "debian-13",
"hostname": "web-1",
"ssh_key_ids": ["SSH-KEY-UUID"],
})
r.raise_for_status()
order = r.json()
task = wait(order["task_id"])
if task["status"] != "done":
raise SystemExit(f"install {task['status']}: {task['error']}")
server = s.get(f"{API}/api/servers/{order['server_id']}").json()
print(server["hostname"], server["primary_ipv4"])
import { randomUUID } from "node:crypto";
const API = "https://panel.getore.io";
const headers = { Authorization: `Bearer ${process.env.ORE_KEY}`, "Content-Type": "application/json" };
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
async function wait(taskId) {
while (true) {
const t = await (await fetch(`${API}/api/tasks/${taskId}`, { headers })).json();
if (t.finished_at) return t;
await sleep(4000);
}
}
const orderKey = randomUUID(); // keep it with your order; reuse on retries
const res = await fetch(`${API}/api/deploy`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": orderKey },
body: JSON.stringify({
plan_id: "PLAN-UUID",
location_id: "LOCATION-UUID",
image_id: "debian-13",
hostname: "web-1",
ssh_key_ids: ["SSH-KEY-UUID"],
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const order = await res.json();
const task = await wait(order.task_id);
if (task.status !== "done") throw new Error(`install ${task.status}: ${task.error}`);
const server = await (await fetch(`${API}/api/servers/${order.server_id}`, { headers })).json();
console.log(server.hostname, server.primary_ipv4);
The plans on sale can also be read without a key: GET /api/plans answers with prices, locations and images for a public price list.
Recipe: reboot and wait
write POST /api/servers/{id}/power takes {"action": "on" | "off" | "reboot"} and answers 202 with the task.
TASK=$(curl -s https://panel.getore.io/api/servers/3241/power \
-H "Authorization: Bearer $ORE_KEY" \
-H "Content-Type: application/json" \
-d '{"action": "reboot"}' | jq -r .id)
while :; do
T=$(curl -s https://panel.getore.io/api/tasks/$TASK -H "Authorization: Bearer $ORE_KEY")
test "$(echo "$T" | jq -r .finished_at)" != "null" && break
sleep 4
done
echo "$T" | jq -r .status
task = s.post(f"{API}/api/servers/3241/power", json={"action": "reboot"}).json()
print(wait(task["id"])["status"])
const task = await (await fetch(`${API}/api/servers/3241/power`, {
method: "POST", headers, body: JSON.stringify({ action: "reboot" }),
})).json();
console.log((await wait(task.id)).status);
If another task is already running on the server, the call is refused with 409 conflict; wait for GET /api/servers/{id}/tasks/active to return null.
Recipe: snapshot before a change
spend A snapshot is billed daily while it is kept; taking one answers 402 unless the balance covers a month of it. Prices are in GET /api/prices. Only servers with hypervisor_backed: true have snapshots and backups.
curl -s https://panel.getore.io/api/servers/3241/snapshots \
-H "Authorization: Bearer $ORE_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "before-upgrade", "include_ram": false}'
# -> {"snapshot": {...}, "task": {...}}
q = s.post(f"{API}/api/servers/3241/snapshots", json={"name": "before-upgrade"}).json()
wait(q["task"]["id"])
snap_id = q["snapshot"]["id"]
# ... the risky change ...
# roll back if it went wrong (scope: destroy)
r = s.post(f"{API}/api/servers/3241/snapshots/{snap_id}/restore").json()
wait(r["task"]["id"])
const q = await (await fetch(`${API}/api/servers/3241/snapshots`, {
method: "POST", headers, body: JSON.stringify({ name: "before-upgrade" }),
})).json();
await wait(q.task.id);
const snapId = q.snapshot.id;
Restoring a snapshot or a backup replaces what is on the server now. It needs the destroy scope.
Recipe: automatic backups
spend PUT /api/servers/{id}/backup-policy turns on a nightly backup at hour_utc and keeps the last keep (1–60). A field left out keeps its value. Every backup the policy takes is billed daily while it is kept.
curl -s -X PUT https://panel.getore.io/api/servers/3241/backup-policy \
-H "Authorization: Bearer $ORE_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled": true, "hour_utc": 3, "keep": 7}'
A one-off backup is POST /api/servers/{id}/backups without a body; the list is GET /api/servers/{id}/backups, newest first.
Recipe: top up the balance
write The API does not take card details. It makes a payment link that a person opens and pays; the balance grows once the gateway confirms it.
curl -s https://panel.getore.io/api/billing/topup \
-H "Authorization: Bearer $ORE_KEY" \
-H "Content-Type: application/json" \
-d '{"amount_cents": 2000}'
# -> {"payment_id": 812, "url": "https://…", "expires_at": "…"}
amount_cents is 500 to 100000. Follow the payment with GET /api/billing/payments and the balance with GET /api/billing.
Recipe: open a ticket
write Text only over the API; attachments are added in the panel.
curl -s https://panel.getore.io/api/tickets \
-H "Authorization: Bearer $ORE_KEY" \
-H "Content-Type: application/json" \
-d '{"subject": "Packet loss on web-1", "server_id": 3241, "body": "Since 18:00 UTC, mtr attached in the next message."}'
Reply with POST /api/tickets/{id}/messages, close with POST /api/tickets/{id}/close; GET /api/tickets/summary counts answered and open tickets.
All endpoints
Built from the live OpenAPI document. Click a path for its parameters, schemas and a request you can send from the browser.
| Loading… |
Browser only
These stay in the panel and are not reachable with a key: the web console, reverse DNS, the attack log, users and invitations, API keys themselves, and ticket attachments.
Questions or something missing from the API? Open a ticket or write to hello@getore.io.