Enzonic for Resellers

Otwórz swoją firmę hostingową

Deweloperzy API v1

Twój sklep jako API

Każda akcja panelu administracyjnego resellera i panelu klienta w formacie JSON przez HTTPS: zbuduj własny panel klienta, synchronizuj rozliczenia, uruchom bota Discord albo pozwól Claude zarządzać sklepem przez MCP.

POST/servers/{server_id}/power{ "signal": "restart" }

Przegląd

API komunikuje się w JSON przez HTTPS. Istnieją dwa rodzaje kluczy: klucze resellera działają w imieniu Twojego zespołu w panelu administracyjnym, klucze klienta działają dla jednego klienta na jego własnych serwerach. Oba działają pod dwoma adresami bazowymi:

https://<your store host>/api/v1
Adres twojego sklepu (na przykład aurora.enzonic.dev lub własna domena). Klucz musi należeć do tego sklepu.
https://reseller.enzonic.com/api/v1
Adres platformy. Klucz decyduje o sklepie, co jest wygodne dla narzędzi obsługujących kilka sklepów.

Pomysły, które działają dziś:

  • Bot Discord, który uruchamia, zatrzymuje i restartuje serwery oraz wysyła komendy konsoli dla Twoich graczy.
  • Łącznik rozliczeń: twórz klientów, przydzielaj im serwery, przenoś zamówienia i faktury do swojej księgowości.
  • Własny panel klienta na bazie kluczy klienta, z takimi samymi uprawnieniami jak wbudowany.
  • Claude w terminalu lub na komputerze odpowiada na pytanie „które serwery są zawieszone?” przez MCP.

Szybki start

Utwórz klucz, a potem wywołaj /me, aby go sprawdzić i wyświetlić listę serwerów.

  1. W panelu administracyjnym otwórz API & MCP i utwórz klucz. Na pierwszy raz wybierz ustawienie „Tylko odczyt”.
  2. Skopiuj klucz, gdy się pojawi: pokazujemy go tylko raz, a przechowujemy wyłącznie jako skrót.
  3. Wyślij go jako bearer token:
shell
export ENZONIC_API_KEY="enz_live_..."   # from Admin > API & MCP

curl https://reseller.enzonic.com/api/v1/me -H "Authorization: Bearer $ENZONIC_API_KEY"

curl "https://reseller.enzonic.com/api/v1/servers?limit=10" -H "Authorization: Bearer $ENZONIC_API_KEY"

Uwierzytelnianie

Wysyłaj każde żądanie z nagłówkiem Authorization: Bearer enz_live_<key id>_<secret>. Pliki cookie nigdy nie są odczytywane w /api/v1, więc zalogowana sesja przeglądarki nie może wywołać API i token CSRF nie jest potrzebny.

Klucze resellera

Utworzony w Admin > API i MCP przez każdego z uprawnieniem Zespół. Klucz działa jak członek zespołu, który go utworzył, i może mieć tylko zakresy, które ten członek posiada.

Zakresy są sprawdzane przy każdym żądaniu wobec twórcy klucza: jeśli utraci uprawnienie, odpowiadający mu zakres przestanie działać; jeśli opuści zespół, klucz przestanie działać.

Klucze klientów

Utworzony przez klienta w Konto > API. Mają tylko zakresy serwerów i dostęp do serwerów, których ten klient jest właścicielem lub został do nich dodany, z tymi samymi uprawnieniami dla serwera co w panelu.

  • Opcjonalnie: data wygaśnięcia, lista dozwolonych adresów IP (adresy lub zakresy CIDR) i dozwolone źródła przeglądarki dla każdego klucza.
  • CORS jest domyślnie wyłączony: żądanie z przeglądarki z Origin, którego klucz nie obsługuje, zostanie odrzucone z błędem origin_not_allowed.
  • Odwołanie klucza działa od następnego żądania, także dla linków do pobrania i sesji MCP.

Zakresy

Odczyt i zapis są oddzielne. Kolumna uprawnień zespołu pokazuje, co twórca klucza musi mieć.

ZakresZezwalaUprawnienie zespołuKlucze klientów
servers:readWyświetlanie serwerów, odczyt szczegółów, zużycia zasobów i oprogramowania.servers.readTak
servers:writeZmiana nazwy, ponowna instalacja, zmiana oprogramowania, zawieszanie, wznawianie i usuwanie serwerów.serversTak
servers:powerUruchamianie, zatrzymywanie, restartowanie i wymuszanie zatrzymania serwerów.serversTak
servers:consoleWysyłanie poleceń konsoli i otwieranie konsoli na żywo.serversTak
servers:filesWyświetlanie, odczyt, zapis, przesyłanie, pobieranie, zmiana nazwy, kompresja i usuwanie plików.serversTak
servers:backupsWyświetlanie, tworzenie, przywracanie, pobieranie i usuwanie kopii zapasowych.serversTak
servers:usersAdd, change and remove sub-users of a server.serversTak
customers:readWyświetlanie i odczyt kont klientów.customers.readNie
customers:writeTwórz, aktualizuj, zawieszaj i cofaj zawieszenie klientów.customersNie
plans:readWyświetlanie i odczyt planów oraz cen.plans.readNie
plans:writeTwórz, aktualizuj i usuwaj plany, z tymi samymi zasadami cen co w adminie.plansNie
orders:readZamówienia i subskrypcje.billing.readNie
orders:writeCreate orders (payment links), cancel, resume and change the plan of subscriptions.billingNie
invoices:readFaktury klientów.billing.readNie
billing:readStatus wypłat i liczby przychodu.billing.readNie
credits:readSaldo środków i historia operacji.billing.readNie
flex:readFlex prices, customer Flex balances, usage and Flex servers.billing.readNie
flex:writeFlex prices, top-up links, balance adjustments and creating, resizing and deleting Flex servers.billingNie
vps:readVPS plans and prices, orders, VPS details, usage graphs, traffic and backups.servers.readNie
vps:writeRetail prices, creating, reinstalling, resizing, moving, suspending and deleting VPS, backups, IP add-ons and SSH keys.serversNie
vps:powerStart, stop, restart and kill VPS, and rescue mode.serversNie
vps:consoleOpen VNC console and web terminal sessions and reset root passwords.serversNie
domains:readWłasne domeny i status ich weryfikacji.domains.readNie
domains:writeDodawanie, weryfikacja i usuwanie własnych domen.domainsNie
nodes:readWłasne węzły i ich stan.nodes.readNie
nodes:writeDodaj własne węzły i sprawdź ich połączenie.nodesNie
site:readStrony sklepu, szkice i opublikowane treści.branding.readNie
site:writeAktualizacja szkiców stron i publikowanie stron.brandingNie
software:readKatalog oprogramowania i wpisy, które oferuje Twój sklep.plans.readNie
software:writeWłączanie lub wyłączanie oprogramowania w Twoim sklepie.plansNie
webhooks:writeTwórz, aktualizuj, testuj i usuwaj punkty końcowe webhooków.teamNie

Paginacja, błędy i limity

Paginacja

Listy przyjmują limit (od 1 do 100, domyślnie 50) i cursor. Odpowiedź to { "data": [...], "next_cursor": "..." }; przekaż next_cursor z powrotem, aby pobrać następną stronę. Na ostatniej stronie ma wartość null.

Błędy

Każdy błąd ma taką samą strukturę. Obsługuj według code; message jest dla ludzi i może się zmienić.

JSON
{
  "error": {
    "code": "insufficient_scope",
    "message": "Ten endpoint wymaga zakresu servers:power.",
    "details": {
      "required_scope": "servers:power"
    }
  }
}
KodHTTPZnaczenie
unauthenticated401No API key was sent. Use the header Authorization: Bearer <key>.
invalid_key401The API key is not valid.
key_revoked401The API key was revoked.
key_expired401The API key has expired.
tenant_mismatch401The API key belongs to another store than this host.
key_owner_inactive401The account that owns this API key is no longer active.
ip_not_allowed403Requests from this IP address are not allowed for this key.
origin_not_allowed403Browser requests from this origin are not allowed for this key.
insufficient_scope403The API key does not have the scope this endpoint needs.
team_2fa_required403Your team requires two-factor authentication: the key owner must turn it on.
forbidden403You do not have permission to do that.
not_found404Not found.
route_not_found404There is no endpoint at this path. See /api/v1/openapi.json.
method_not_allowed405This endpoint does not accept that HTTP method.
conflict409The request conflicts with the current state.
idempotency_in_progress409A request with this Idempotency-Key is still running.
idempotency_key_reused422This Idempotency-Key was already used with a different request.
unsupported_media_type415Send JSON with Content-Type: application/json.
invalid_json400The request body is not valid JSON.
validation_failed422Some fields are missing or invalid.
rate_limited429Too many requests. Wait for the time in Retry-After.
node_error502The server node had a problem with this request.
site_unavailable503This store is not available right now.
internal500Something went wrong on our side.

Punkty końcowe mogą też zwracać kody samej akcji, na przykład server_suspended lub backup_locked, z komunikatem, co zrobić.

Idempotentność

Żądania POST tworzące coś przyjmują nagłówek Idempotency-Key (dowolny widoczny tekst do 255 znaków, najlepiej UUID). W ciągu 24 godzin ten sam klucz z tym samym żądaniem zwraca ponownie pierwszą odpowiedź z Idempotent-Replayed: true i nic nie zostaje utworzone dwa razy. Ten sam klucz z innym żądaniem zostaje odrzucony z błędem idempotency_key_reused.

Limity żądań

  • 600 żądań na 5 minut na klucz
  • 60 zapisów na 1 minuta
  • 20 akcji zasilania, 30 poleceń konsoli i 30 zapisów plików na minutę

Każda odpowiedź zawiera X-RateLimit-Limit, X-RateLimit-Remaining i X-RateLimit-Reset. Po przekroczeniu limitu dostajesz 429 rate_limited z Retry-After w sekundach.

Czas, kwoty i identyfikatory

Czas podawany jest w formacie ISO 8601 w UTC. Kwota to liczba całkowita w groszach z małą literą waluty, na przykład { "amount": 1500, "currency": "usd" }. ID to nieprzejrzyste ciągi z prefiksem (srv_, usr_, pln_...). Nigdy ich nie parsuj.

Opis punktów końcowych

Każdy punkt końcowy, wygenerowany z tej samej listy, z której korzystają API i serwer MCP. Otwórz wybrany, aby zobaczyć jego parametry i przykłady.

Key and account

GET/meShow the calling key, its working scopes and its store
  • Zakresdowolny poprawny klucz
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPme_get

Use this to check a key. `active_scopes` lists what the key can do right now; a reseller key loses a scope when its creator loses the matching team permission.

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/me' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "key": {
      "id": "key_7f3kq9m2x8c4v6b1",
      "kind": "reseller",
      "name": "Billing sync",
      "scopes": [
        "servers:read",
        "customers:read"
      ],
      "active_scopes": [
        "servers:read",
        "customers:read"
      ],
      "expires_at": null,
      "created_at": "2026-10-19T09:30:00.000Z"
    },
    "store": {
      "id": "ten_aurora0000000000",
      "slug": "aurora",
      "name": "Aurora Hosting",
      "status": "active",
      "currency": "usd",
      "url": "https://aurora.enzonic.dev"
    },
    "user": {
      "id": "usr_0h2k4m6p8r0t2v4x",
      "name": "Aurora Owner",
      "email": "owner@aurora.test",
      "role": "owner"
    }
  }
}

Serwery

GET/serversList servers
  • Zakresservers:read
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_list

Reseller keys see every server of the store (filter by `customer_id` or `status`). Customer keys see the servers the customer owns or was added to as a user.

Parametry

NazwaTypOpis
limitzapytanieintegerPage size, 1 to 100 (default 50).Domyślny 50min. 1 · maks. 100
cursorzapytaniestring`next_cursor` from the previous page.do 200 znaków
customer_idzapytaniestringOnly servers of this customer (reseller keys).do 40 znaków
statuszapytaniestringJeden z "installing", "install_failed", "reinstall_failed", "active", "suspended", "restoring_backup", "deleting"

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/servers' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "srv_7f3kq9m2x8c4v6b1",
      "name": "Survival SMP",
      "description": "",
      "status": "active",
      "customer_id": "usr_2b4d6f8h0j2l4n6q",
      "plan_id": "pln_3c5e7g9j1l3n5p7r",
      "address": "survival.aurora.enzonic.dev",
      "limits": {
        "ram_mb": 6144,
        "cpu_pct": 200,
        "disk_mb": 30720,
        "databases": 1,
        "backups": 2,
        "allocations": 1
      },
      "suspended_at": null,
      "installed_at": "2026-10-01T12:00:00.000Z",
      "created_at": "2026-10-01T11:58:00.000Z",
      "access": "admin"
    }
  ],
  "next_cursor": null
}
GET/servers/{server_id}Get a server
  • Zakresservers:read
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_get

Details, software and the permissions the key's user holds on this server.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/servers/{server_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "status": "string",
    "customer_id": "string",
    "plan_id": "string",
    "address": "string",
    "limits": {
      "ram_mb": 0,
      "cpu_pct": 0,
      "disk_mb": 0,
      "databases": 0,
      "backups": 0,
      "allocations": 0
    },
    "suspended_at": "string",
    "installed_at": "string",
    "created_at": "string",
    "access": "owner",
    "software": {
      "egg": "string",
      "name": "string",
      "loader": "string",
      "version": "string"
    },
    "permissions": [
      "string"
    ]
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/powerStart, stop, restart or kill a server
  • Zakresservers:power
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_power

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
signaltreśćwymaganestringPower signalJeden z "start", "stop", "restart", "kill"

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/power' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"signal":"restart"}'

Odpowiedź 200

JSON
{
  "data": {
    "accepted": true
  }
}
GET/servers/{server_id}/resourcesShow live resource usage
  • Zakresservers:read
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_resources

Power state and current CPU, memory, disk and network use, read from the node.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/resources' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "state": "running",
    "cpu_pct": 37.5,
    "memory_bytes": 2147483648,
    "memory_limit_bytes": 6442450944,
    "disk_bytes": 1073741824,
    "network": {
      "rx_bytes": 120000,
      "tx_bytes": 340000
    },
    "uptime_ms": 3600000
  }
}
POST/servers/{server_id}/commandSend a console command
  • Zakresservers:console
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_command

Types the command into the server console (like the panel console). The server must be running.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
commandtreśćwymaganestringFor example `say Restart in 5 minutes`co najmniej 1 znaków · do 1000 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/command' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"command":"say hello"}'

Odpowiedź 200

JSON
{
  "data": {
    "sent": true
  }
}
GET/servers/{server_id}/consoleGet a ticket for the live console websocket
  • Zakresservers:console
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_console

Returns a websocket URL and a token valid for 10 minutes. Connect to `socket`, then send `{"event":"auth","args":["<token>"]}`; you receive console output and stats events and can send `send command`. Power actions are not accepted over the socket.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/servers/{server_id}/console' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "token": "string",
    "socket": "string",
    "expires_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

PATCH/servers/{server_id}Rename a server or change its description
  • Zakresservers:write
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_rename

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
nametreśćwymaganestring1 to 60 charactersdo 200 znaków
descriptiontreśćstringUp to 500 charactersdo 2000 znaków

Żądanie

curl
curl -X PATCH 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Survival SMP 2"}'

Odpowiedź 200

JSON
{
  "data": {
    "name": "Survival SMP 2",
    "description": ""
  }
}
POST/servers/{server_id}/reinstallReinstall a server (guarded)
  • Zakresservers:write
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_reinstall

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Runs the install script again with the current software. A backup is taken first when the plan allows one, and the change rolls back if the install fails. `confirm` must be the exact server name.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
confirmtreśćwymaganestringThe exact server namedo 200 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/reinstall' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"confirm":"Survival SMP"}'

Odpowiedź 202

JSON
{
  "data": {
    "change_id": "swc_1a3c5e7g9j1l3n5p",
    "state": "backing_up"
  }
}
GET/servers/{server_id}/softwareShow a server's software and the choices it can switch to
  • Zakresservers:read
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_software_get

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/servers/{server_id}/software' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "current": {
      "software_id": "string",
      "slug": "string",
      "name": "string",
      "version": "string",
      "label": "string"
    },
    "choices": [
      {
        "id": "string",
        "slug": "string",
        "name": "string",
        "loader": "string"
      }
    ],
    "change": {
      "id": "string",
      "state": "string",
      "active": false,
      "kind": "string",
      "from": "string",
      "to": "string",
      "reason": "string",
      "created_at": "string",
      "updated_at": "string"
    },
    "history": [
      {
        "id": "string",
        "state": "string",
        "active": false,
        "kind": "string",
        "from": "string",
        "to": "string",
        "reason": "string",
        "created_at": "string",
        "updated_at": "string"
      }
    ]
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/softwareChange the software or version (guarded)
  • Zakresservers:write
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_software_change

Switches loader or game version through the software guard: a backup first, then the install, and an automatic rollback if it fails. Only software your store offers is accepted. Poll servers.software.get for the progress.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
softwaretreśćwymaganestringSoftware id or slug, from `choices`do 40 znaków
versiontreśćstringGame version, default latestdo 40 znaków
modpack_linktreśćstringModrinth link for modpack softwaredo 1024 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/software' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"software":"string"}'

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "state": "string",
    "active": false,
    "kind": "string",
    "from": "string",
    "to": "string",
    "reason": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/suspendSuspend a server
  • Zakresservers:write
  • KluczeKlucze resellera
  • Narzędzie MCPservers_suspend

Stops the server and blocks the customer from starting it, like Suspend in the admin. Billing is not changed.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/suspend' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "status": "string",
    "customer_id": "string",
    "plan_id": "string",
    "address": "string",
    "limits": {
      "ram_mb": 0,
      "cpu_pct": 0,
      "disk_mb": 0,
      "databases": 0,
      "backups": 0,
      "allocations": 0
    },
    "suspended_at": "string",
    "installed_at": "string",
    "created_at": "string",
    "access": "owner"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/unsuspendUnsuspend a server
  • Zakresservers:write
  • KluczeKlucze resellera
  • Narzędzie MCPservers_unsuspend

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/unsuspend' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "status": "string",
    "customer_id": "string",
    "plan_id": "string",
    "address": "string",
    "limits": {
      "ram_mb": 0,
      "cpu_pct": 0,
      "disk_mb": 0,
      "databases": 0,
      "backups": 0,
      "allocations": 0
    },
    "suspended_at": "string",
    "installed_at": "string",
    "created_at": "string",
    "access": "owner"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/servers/{server_id}Delete a server and all its files
  • Zakresservers:write
  • KluczeKlucze resellera
  • Narzędzie MCPservers_delete

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Deletes the server, its files and backups on the node. This cannot be undone. `confirm` must be the exact server name. A paid subscription is not cancelled by this call.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
confirmtreśćwymaganestringThe exact server namedo 200 znaków

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/servers/{server_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"confirm":"string"}'

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "deleted": true
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/grantsGive a customer a server for free (grant)
  • Zakresservers:write
  • KluczeKlucze resellera
  • Narzędzie MCPservers_grant
  • PonowieniaObsługiwany Idempotency-Key

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Provisions a new server from one of your plans for a customer, like Grant plan in the admin. On Enzonic nodes the base price is taken from your credits every month in advance (refused when the balance is short); on your own nodes it is free. Needs servers:write and customers:write.

Parametry

NazwaTypOpis
customer_idtreśćwymaganestringdo 40 znaków
plan_idtreśćwymaganestringdo 40 znaków
softwaretreśćstringSoftware id or slug; default Paperdo 40 znaków
server_nametreśćstringdo 64 znaków
monthstreść1 or 3 or 6 or 121, 3, 6 or 12; omit for until revoked
reasontreśćwymaganestringJeden z "comp", "giveaway", "staff", "other"
notetreśćstringdo 500 znaków
notify_customertreśćbooleanDomyślny true

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/grants' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"customer_id":"string","plan_id":"string","reason":"comp"}'

Odpowiedź 201

JSON
{
  "data": {
    "grant_id": "string",
    "server_id": "string",
    "status": "string",
    "ends_at": "string",
    "monthly": {
      "amount": 0,
      "currency": "string"
    }
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

Pliki

GET/servers/{server_id}/filesList a directory
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_files_list

Folders first, then files, by name.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
directoryzapytaniestringDirectory, default /Domyślny "/"do 1024 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/files?directory=%2F' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "directory": "/",
    "entries": [
      {
        "name": "plugins",
        "path": "/plugins",
        "directory": true,
        "size": 0,
        "mime": null,
        "modified": "2026-10-18T08:00:00.000Z"
      },
      {
        "name": "server.properties",
        "path": "/server.properties",
        "directory": false,
        "size": 1342,
        "mime": "text/plain",
        "modified": "2026-10-18T08:00:00.000Z"
      }
    ]
  }
}
GET/servers/{server_id}/files/contentsRead a text file
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_files_read

Text files up to 4 MB. Binary or larger files: use servers.files.download_url.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
filezapytaniewymaganestringFile path, e.g. /server.propertiesdo 1024 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/files/contents?file=%2Fserver.properties' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "file": "/server.properties",
    "size": 24,
    "content": "motd=Welcome\nmax-players=20\n"
  }
}
PUT/servers/{server_id}/files/contentsWrite a text file
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_files_write

Creates the file or replaces its content (up to 4 MB of text).

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
filetreśćwymaganestringFile pathdo 1024 znaków
contenttreśćwymaganestringdo 4194304 znaków

Żądanie

curl
curl -X PUT 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/files/contents' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file":"/eula.txt","content":"eula=true\n"}'

Odpowiedź 200

JSON
{
  "data": {
    "file": "/eula.txt"
  }
}
POST/servers/{server_id}/files/directoriesCreate a folder
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_files_mkdir

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
roottreśćstringParent directoryDomyślny "/"do 1024 znaków
nametreśćwymaganestringdo 255 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/files/directories' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"root":"/","name":"backups-old"}'

Odpowiedź 200

JSON
{
  "data": {
    "path": "/backups-old"
  }
}
POST/servers/{server_id}/files/renameRename or move files
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_files_rename

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
roottreśćstringDirectory the paths are relative toDomyślny "/"do 1024 znaków
filestreśćwymaganearray of objectco najmniej 1 elementów · do 100 elementów
files[].fromtreśćwymaganestringdo 1024 znaków
files[].totreśćwymaganestringdo 1024 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/files/rename' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"root":"/","files":[{"from":"old.txt","to":"new.txt"}]}'

Odpowiedź 200

JSON
{
  "data": {
    "renamed": 1
  }
}
POST/servers/{server_id}/files/deleteDelete files and folders
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_files_delete

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Deletes the named files and folders (with everything inside) from `root`. This cannot be undone.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
roottreśćstringDirectoryDomyślny "/"do 1024 znaków
filestreśćwymaganearray of stringNames inside `root`co najmniej 1 elementów · do 100 elementów

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/files/delete' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"root":"/logs","files":["latest.log"]}'

Odpowiedź 200

JSON
{
  "data": {
    "deleted": 1
  }
}
POST/servers/{server_id}/files/compressCompress files into an archive
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_files_compress

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
roottreśćstringDirectoryDomyślny "/"do 1024 znaków
filestreśćwymaganearray of stringNames inside `root`co najmniej 1 elementów · do 100 elementów

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/files/compress' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"files":["string"]}'

Odpowiedź 200

JSON
{
  "data": {
    "name": "string",
    "path": "string",
    "directory": false,
    "size": 0,
    "mime": "string",
    "modified": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/files/decompressExtract an archive
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_files_decompress

Extracts the archive into `root`; files with the same names are overwritten.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
roottreśćstringDirectory to extract intoDomyślny "/"do 1024 znaków
filetreśćwymaganestringArchive pathdo 1024 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/files/decompress' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file":"string"}'

Odpowiedź 200

JSON
{
  "data": {
    "extracted": true
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/files/download-urlGet a download link for a file
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_files_download_url

Returns a link valid for 5 minutes that downloads the file with a plain GET (no key needed, so you can hand it to a browser). The link stops working if the key is revoked.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
filetreśćwymaganestringFile pathdo 1024 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/files/download-url' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file":"string"}'

Odpowiedź 200

JSON
{
  "data": {
    "url": "string",
    "method": "GET",
    "expires_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/files/upload-urlGet an upload link for a directory
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_files_upload_url

Returns a link valid for 5 minutes. POST multipart/form-data with one or more `files` fields to it (up to 100 MB in total, 50 files).

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
directorytreśćstringTarget directoryDomyślny "/"do 1024 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/files/upload-url' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Odpowiedź 200

JSON
{
  "data": {
    "url": "string",
    "method": "GET",
    "expires_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

Kopie zapasowe

GET/servers/{server_id}/backupsList backups
  • Zakresservers:backups
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_backups_list

`limit` is how many backups the plan allows; `used` how many exist.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/backups' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "backups": [
      {
        "id": "bkp_8h0j2l4n6q8s0u2w",
        "name": "Before 1.21 update",
        "status": "succeeded",
        "size_bytes": 524288000,
        "locked": false,
        "created_at": "2026-10-18T20:00:00.000Z",
        "completed_at": "2026-10-18T20:03:10.000Z"
      }
    ],
    "used": 1,
    "limit": 3,
    "restoring": false
  }
}
POST/servers/{server_id}/backupsStart a backup
  • Zakresservers:backups
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_backups_create
  • PonowieniaObsługiwany Idempotency-Key

Starts a backup now (it runs in the background; poll the list until `status` is `succeeded`). Refused when the plan limit is reached. Send an Idempotency-Key to retry safely.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
nametreśćstringdo 120 znaków
ignoredtreśćstringPaths to skip, one per line (like .gitignore)do 4000 znaków
lockedtreśćboolean

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/srv_7f3kq9m2x8c4v6b1/backups' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"name":"Before 1.21 update"}'

Odpowiedź 201

JSON
{
  "data": {
    "id": "bkp_8h0j2l4n6q8s0u2w",
    "name": "Before 1.21 update",
    "status": "pending",
    "size_bytes": null,
    "locked": false,
    "created_at": "2026-10-18T20:00:00.000Z",
    "completed_at": null
  }
}
POST/servers/{server_id}/backups/{backup_id}/restoreRestore a backup
  • Zakresservers:backups
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_backups_restore

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Overwrites the server files with the backup. With `truncate: true` every current file is deleted first. The server is stopped while restoring.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
backup_idścieżkawymaganestringBackup id (bkp_...)wzorzec ^bkp_[0-9a-z]{16}$
truncatetreśćbooleanDomyślny false

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/backups/{backup_id}/restore' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Odpowiedź 200

JSON
{
  "data": {
    "restoring": true,
    "truncate": false
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/backups/{backup_id}/lockLock or unlock a backup
  • Zakresservers:backups
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_backups_lock

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
backup_idścieżkawymaganestringBackup id (bkp_...)wzorzec ^bkp_[0-9a-z]{16}$
lockedtreśćwymaganeboolean

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/backups/{backup_id}/lock' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"locked":false}'

Odpowiedź 200

JSON
{
  "data": {
    "locked": false
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/servers/{server_id}/backups/{backup_id}Delete a backup
  • Zakresservers:backups
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_backups_delete

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Removes the backup from the node. Locked backups must be unlocked first. This cannot be undone.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
backup_idścieżkawymaganestringBackup id (bkp_...)wzorzec ^bkp_[0-9a-z]{16}$

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/servers/{server_id}/backups/{backup_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "deleted": true
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/backups/{backup_id}/download-urlGet a download link for a backup
  • Zakresservers:backups
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_backups_download_url

A .tar.gz link valid for 5 minutes (plain GET, no key needed). Only completed backups.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
backup_idścieżkawymaganestringBackup id (bkp_...)wzorzec ^bkp_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/backups/{backup_id}/download-url' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "url": "string",
    "method": "GET",
    "expires_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

Klienci

GET/customersList customers
  • Zakrescustomers:read
  • KluczeKlucze resellera
  • Narzędzie MCPcustomers_list

Customer accounts of your store, newest first. `q` searches email and name.

Parametry

NazwaTypOpis
limitzapytanieintegerPage size, 1 to 100 (default 50).Domyślny 50min. 1 · maks. 100
cursorzapytaniestring`next_cursor` from the previous page.do 200 znaków
qzapytaniestringSearch in email and namedo 100 znaków
statuszapytaniestringJeden z "active", "suspended", "unverified"

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/customers' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "usr_2b4d6f8h0j2l4n6q",
      "email": "alex@example.com",
      "name": "Alex Rivera",
      "status": "active",
      "email_verified": true,
      "two_factor": false,
      "servers": 1,
      "created_at": "2026-09-02T18:20:00.000Z"
    }
  ],
  "next_cursor": null
}
GET/customers/{customer_id}Get a customer
  • Zakrescustomers:read
  • KluczeKlucze resellera
  • Narzędzie MCPcustomers_get

Parametry

NazwaTypOpis
customer_idścieżkawymaganestringCustomer id (usr_...)wzorzec ^usr_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/customers/usr_2b4d6f8h0j2l4n6q' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "usr_2b4d6f8h0j2l4n6q",
    "email": "alex@example.com",
    "name": "Alex Rivera",
    "status": "active",
    "email_verified": true,
    "two_factor": false,
    "servers": 1,
    "created_at": "2026-09-02T18:20:00.000Z"
  }
}
POST/customersCreate a customer account
  • Zakrescustomers:write
  • KluczeKlucze resellera
  • Narzędzie MCPcustomers_create
  • PonowieniaObsługiwany Idempotency-Key

Creates the account like the storefront sign-up (same checks; one account per email per store) and emails the customer a link to verify the address. No password is set through the API: with `send_password_link` (default true) the customer also gets a link to choose one. Send an Idempotency-Key to retry safely.

Parametry

NazwaTypOpis
emailtreśćwymaganestringdo 254 znaków
nametreśćwymaganestring1 to 80 charactersdo 200 znaków
send_password_linktreśćbooleanDomyślny true

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/customers' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"email":"jordan@example.com","name":"Jordan Lee"}'

Odpowiedź 201

JSON
{
  "data": {
    "id": "usr_9q1s3u5w7y9a1c3e",
    "email": "jordan@example.com",
    "name": "Jordan Lee",
    "status": "active",
    "email_verified": false,
    "two_factor": false,
    "servers": 0,
    "created_at": "2026-09-02T18:20:00.000Z"
  }
}
PATCH/customers/{customer_id}Update a customer's name
  • Zakrescustomers:write
  • KluczeKlucze resellera
  • Narzędzie MCPcustomers_update

Only the display name can change here. The email address is the sign-in and stays with the customer.

Parametry

NazwaTypOpis
customer_idścieżkawymaganestringCustomer id (usr_...)wzorzec ^usr_[0-9a-z]{16}$
nametreśćwymaganestring1 to 80 charactersdo 200 znaków

Żądanie

curl
curl -X PATCH 'https://reseller.enzonic.com/api/v1/customers/usr_2b4d6f8h0j2l4n6q' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Alex R."}'

Odpowiedź 200

JSON
{
  "data": {
    "id": "usr_2b4d6f8h0j2l4n6q",
    "email": "alex@example.com",
    "name": "Alex R.",
    "status": "active",
    "email_verified": true,
    "two_factor": false,
    "servers": 1,
    "created_at": "2026-09-02T18:20:00.000Z"
  }
}
POST/customers/{customer_id}/suspendSuspend a customer account
  • Zakrescustomers:write
  • KluczeKlucze resellera
  • Narzędzie MCPcustomers_suspend

The customer is signed out everywhere and cannot sign in until unsuspended. Their servers keep running; suspend servers separately if needed.

Parametry

NazwaTypOpis
customer_idścieżkawymaganestringCustomer id (usr_...)wzorzec ^usr_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/customers/usr_2b4d6f8h0j2l4n6q/suspend' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "usr_2b4d6f8h0j2l4n6q",
    "email": "alex@example.com",
    "name": "Alex Rivera",
    "status": "suspended",
    "email_verified": true,
    "two_factor": false,
    "servers": 1,
    "created_at": "2026-09-02T18:20:00.000Z"
  }
}
POST/customers/{customer_id}/unsuspendUnsuspend a customer account
  • Zakrescustomers:write
  • KluczeKlucze resellera
  • Narzędzie MCPcustomers_unsuspend

Parametry

NazwaTypOpis
customer_idścieżkawymaganestringCustomer id (usr_...)wzorzec ^usr_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/customers/usr_2b4d6f8h0j2l4n6q/unsuspend' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "usr_2b4d6f8h0j2l4n6q",
    "email": "alex@example.com",
    "name": "Alex Rivera",
    "status": "active",
    "email_verified": true,
    "two_factor": false,
    "servers": 1,
    "created_at": "2026-09-02T18:20:00.000Z"
  }
}

Plany

GET/plansList plans
  • Zakresplans:read
  • KluczeKlucze resellera
  • Narzędzie MCPplans_list

Parametry

NazwaTypOpis
limitzapytanieintegerPage size, 1 to 100 (default 50).Domyślny 50min. 1 · maks. 100
cursorzapytaniestring`next_cursor` from the previous page.do 200 znaków
activezapytaniebooleanOnly sold (true) or hidden (false)

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/plans' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "pln_3c5e7g9j1l3n5p7r",
      "name": "Diamond",
      "description": "Light modpacks and busy SMPs.",
      "ram_mb": 6144,
      "cpu_pct": 200,
      "disk_mb": 30720,
      "databases": 1,
      "backups": 2,
      "extra_ports": 0,
      "price": {
        "amount": 1500,
        "currency": "usd"
      },
      "interval": "month",
      "node_pool": "enzonic",
      "tier_class": "standard",
      "location": null,
      "allowed_kinds": null,
      "featured": true,
      "active": true,
      "sort": 2,
      "created_at": "2026-10-01T09:00:00.000Z"
    }
  ],
  "next_cursor": null
}
GET/plans/{plan_id}Get a plan
  • Zakresplans:read
  • KluczeKlucze resellera
  • Narzędzie MCPplans_get

Includes how many subscriptions and servers use it.

Parametry

NazwaTypOpis
plan_idścieżkawymaganestringPlan id (pln_...)wzorzec ^pln_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/plans/{plan_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "ram_mb": 0,
    "cpu_pct": 0,
    "disk_mb": 0,
    "databases": 0,
    "backups": 0,
    "extra_ports": 0,
    "price": {
      "amount": 0,
      "currency": "string"
    },
    "interval": "month",
    "node_pool": "enzonic",
    "tier_class": "string",
    "location": "string",
    "allowed_kinds": [
      "string"
    ],
    "featured": false,
    "active": false,
    "sort": 0,
    "created_at": "string",
    "usage": {
      "subscriptions": 0,
      "active_subscriptions": 0,
      "servers": 0
    }
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/plansCreate a plan
  • Zakresplans:write
  • KluczeKlucze resellera
  • Narzędzie MCPplans_create
  • PonowieniaObsługiwany Idempotency-Key

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Same rules as Admin > Plans: the price must cover Enzonic's base price for these resources plus the platform fee and your minimum margin (the error says the lowest allowed price), and plans on your own nodes need a node first. New active plans appear on your storefront right away.

Parametry

NazwaTypOpis
nametreśćwymaganestringUp to 60 charactersdo 200 znaków
descriptiontreśćstringUp to 500 charactersdo 2000 znaków
ram_gbtreśćwymaganenumber0.5 to 512 GB (up to 3 decimals)
cpu_pcttreśćwymaganeinteger10 to 6400; 100 = one vCPU
disk_gbtreśćwymaganenumber1 to 4096 GB
databasestreśćinteger0 to 20, default 1
backupstreśćinteger0 to 50, default 2
extra_portstreśćinteger0 to 20, default 0
price_centstreśćwymaganeintegerMonthly price in cents of your store currency; at least the minimum for these resources
node_pooltreśćstringenzonic (default) or byo (your own nodes)Jeden z "enzonic", "byo"
tier_classtreśćstringPerformance tier: 'standard' (default), or a premium line Enzonic currently offers (Enzonic nodes only). Locked once customers bought the plan.do 20 znaków
locationtreśćstringEnzonic-node region: europe, north-america or asia, or empty for any regiondo 40 znaków
featuredtreśćboolean
activetreśćbooleanDefault true

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/plans' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "Diamond",
  "ram_gb": 6,
  "cpu_pct": 200,
  "disk_gb": 30,
  "price_cents": 1500
}'

Odpowiedź 201

JSON
{
  "data": {
    "id": "pln_3c5e7g9j1l3n5p7r",
    "name": "Diamond",
    "description": "Light modpacks and busy SMPs.",
    "ram_mb": 6144,
    "cpu_pct": 200,
    "disk_mb": 30720,
    "databases": 1,
    "backups": 2,
    "extra_ports": 0,
    "price": {
      "amount": 1500,
      "currency": "usd"
    },
    "interval": "month",
    "node_pool": "enzonic",
    "tier_class": "standard",
    "location": null,
    "allowed_kinds": null,
    "featured": true,
    "active": true,
    "sort": 2,
    "created_at": "2026-10-01T09:00:00.000Z"
  }
}
PATCH/plans/{plan_id}Update a plan
  • Zakresplans:write
  • KluczeKlucze resellera
  • Narzędzie MCPplans_update

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Send only the fields to change; the result is checked like the admin form. A new price applies to new orders; existing subscriptions keep the price they were bought at. The node pool cannot change once customers bought the plan.

Parametry

NazwaTypOpis
plan_idścieżkawymaganestringPlan id (pln_...)wzorzec ^pln_[0-9a-z]{16}$
nametreśćstringUp to 60 charactersdo 200 znaków
descriptiontreśćstringUp to 500 charactersdo 2000 znaków
ram_gbtreśćnumber0.5 to 512 GB (up to 3 decimals)
cpu_pcttreśćinteger10 to 6400; 100 = one vCPU
disk_gbtreśćnumber1 to 4096 GB
databasestreśćinteger0 to 20
backupstreśćinteger0 to 50
extra_portstreśćinteger0 to 20
price_centstreśćintegerMonthly price in cents of your store currency; at least the minimum for these resources
node_pooltreśćstringenzonic (default) or byo (your own nodes)Jeden z "enzonic", "byo"
tier_classtreśćstringPerformance tier: 'standard' (default), or a premium line Enzonic currently offers (Enzonic nodes only). Locked once customers bought the plan.do 20 znaków
locationtreśćstringEnzonic-node region: europe, north-america or asia, or empty for any regiondo 40 znaków
featuredtreśćboolean
activetreśćboolean

Żądanie

curl
curl -X PATCH 'https://reseller.enzonic.com/api/v1/plans/pln_3c5e7g9j1l3n5p7r' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"price_cents":1600}'

Odpowiedź 200

JSON
{
  "data": {
    "id": "pln_3c5e7g9j1l3n5p7r",
    "name": "Diamond",
    "description": "Light modpacks and busy SMPs.",
    "ram_mb": 6144,
    "cpu_pct": 200,
    "disk_mb": 30720,
    "databases": 1,
    "backups": 2,
    "extra_ports": 0,
    "price": {
      "amount": 1600,
      "currency": "usd"
    },
    "interval": "month",
    "node_pool": "enzonic",
    "tier_class": "standard",
    "location": null,
    "allowed_kinds": null,
    "featured": true,
    "active": true,
    "sort": 2,
    "created_at": "2026-10-01T09:00:00.000Z"
  }
}
DEL/plans/{plan_id}Delete a plan nobody has bought
  • Zakresplans:write
  • KluczeKlucze resellera
  • Narzędzie MCPplans_delete

DestrukcyjnyZmienia ceny lub opłatyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Only plans without any order, subscription or server can be deleted (409 conflict otherwise: set `active: false` to stop selling it instead).

Parametry

NazwaTypOpis
plan_idścieżkawymaganestringPlan id (pln_...)wzorzec ^pln_[0-9a-z]{16}$

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/plans/pln_3c5e7g9j1l3n5p7r' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "pln_3c5e7g9j1l3n5p7r",
    "deleted": true
  }
}

Orders, invoices and billing

GET/ordersList orders
  • Zakresorders:read
  • KluczeKlucze resellera
  • Narzędzie MCPorders_list

One order per checkout. `fulfilled` orders have a server.

Parametry

NazwaTypOpis
limitzapytanieintegerPage size, 1 to 100 (default 50).Domyślny 50min. 1 · maks. 100
cursorzapytaniestring`next_cursor` from the previous page.do 200 znaków
statuszapytaniestringJeden z "open", "paid", "fulfilled", "expired", "failed"
customer_idzapytaniestringdo 40 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/orders' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "string",
      "customer_id": "string",
      "plan_id": "string",
      "server_name": "string",
      "software_id": "string",
      "status": "open",
      "server_id": "string",
      "price": {
        "amount": 0,
        "currency": "string"
      },
      "paid_at": "string",
      "created_at": "string"
    }
  ],
  "next_cursor": null
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/orders/{order_id}Get an order
  • Zakresorders:read
  • KluczeKlucze resellera
  • Narzędzie MCPorders_get

Parametry

NazwaTypOpis
order_idścieżkawymaganestringOrder id (ord_...)wzorzec ^ord_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/orders/{order_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "customer_id": "string",
    "plan_id": "string",
    "server_name": "string",
    "software_id": "string",
    "status": "open",
    "server_id": "string",
    "price": {
      "amount": 0,
      "currency": "string"
    },
    "paid_at": "string",
    "created_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/subscriptionsList subscriptions
  • Zakresorders:read
  • KluczeKlucze resellera
  • Narzędzie MCPsubscriptions_list

Parametry

NazwaTypOpis
limitzapytanieintegerPage size, 1 to 100 (default 50).Domyślny 50min. 1 · maks. 100
cursorzapytaniestring`next_cursor` from the previous page.do 200 znaków
statuszapytaniestringactive, past_due, canceled, ...do 20 znaków
customer_idzapytaniestringdo 40 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/subscriptions' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "sub_4d6f8h0j2l4n6q8s",
      "customer_id": "usr_2b4d6f8h0j2l4n6q",
      "plan_id": "pln_3c5e7g9j1l3n5p7r",
      "server_id": "srv_7f3kq9m2x8c4v6b1",
      "order_id": "ord_5e7g9j1l3n5p7r9t",
      "status": "active",
      "price": {
        "amount": 1500,
        "currency": "usd"
      },
      "current_period_end": "2026-11-01T11:58:00.000Z",
      "cancel_at_period_end": false,
      "created_at": "2026-10-01T11:58:00.000Z"
    }
  ],
  "next_cursor": null
}
GET/subscriptions/{subscription_id}Get a subscription
  • Zakresorders:read
  • KluczeKlucze resellera
  • Narzędzie MCPsubscriptions_get

Parametry

NazwaTypOpis
subscription_idścieżkawymaganestringSubscription id (sub_...)wzorzec ^sub_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/subscriptions/{subscription_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "customer_id": "string",
    "plan_id": "string",
    "server_id": "string",
    "order_id": "string",
    "status": "string",
    "price": {
      "amount": 0,
      "currency": "string"
    },
    "current_period_end": "string",
    "cancel_at_period_end": false,
    "created_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/invoicesList invoices
  • Zakresinvoices:read
  • KluczeKlucze resellera
  • Narzędzie MCPinvoices_list

Parametry

NazwaTypOpis
limitzapytanieintegerPage size, 1 to 100 (default 50).Domyślny 50min. 1 · maks. 100
cursorzapytaniestring`next_cursor` from the previous page.do 200 znaków
statuszapytaniestringJeden z "draft", "open", "paid", "void", "uncollectible"
customer_idzapytaniestringdo 40 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/invoices' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "string",
      "customer_id": "string",
      "subscription_id": "string",
      "number": "string",
      "status": "string",
      "subtotal": {
        "amount": 0,
        "currency": "string"
      },
      "tax": {
        "amount": 0,
        "currency": "string"
      },
      "total": {
        "amount": 0,
        "currency": "string"
      },
      "platform_fee": {
        "amount": 0,
        "currency": "string"
      },
      "net": {
        "amount": 0,
        "currency": "string"
      },
      "refunded": {
        "amount": 0,
        "currency": "string"
      },
      "reason": "string",
      "url": "string",
      "paid_at": "string",
      "created_at": "string"
    }
  ],
  "next_cursor": null
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/invoices/{invoice_id}Get an invoice
  • Zakresinvoices:read
  • KluczeKlucze resellera
  • Narzędzie MCPinvoices_get

Parametry

NazwaTypOpis
invoice_idścieżkawymaganestringInvoice id (inv_...)wzorzec ^inv_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/invoices/{invoice_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "customer_id": "string",
    "subscription_id": "string",
    "number": "string",
    "status": "string",
    "subtotal": {
      "amount": 0,
      "currency": "string"
    },
    "tax": {
      "amount": 0,
      "currency": "string"
    },
    "total": {
      "amount": 0,
      "currency": "string"
    },
    "platform_fee": {
      "amount": 0,
      "currency": "string"
    },
    "net": {
      "amount": 0,
      "currency": "string"
    },
    "refunded": {
      "amount": 0,
      "currency": "string"
    },
    "reason": "string",
    "url": "string",
    "paid_at": "string",
    "created_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/billing/summaryShow payout status and revenue totals
  • Zakresbilling:read
  • KluczeKlucze resellera
  • Narzędzie MCPbilling_summary

Whether card payments and payouts are enabled for your store, the platform fee rate, and revenue from the billing ledger for the last 30 days and all time (gross, Enzonic share, your net).

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/billing/summary' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "currency": "string",
    "payments_enabled": false,
    "payouts_enabled": false,
    "onboarding_complete": false,
    "fee_percent": 0,
    "active_subscriptions": 0,
    "last_30_days": {
      "gross": {
        "amount": 0,
        "currency": "string"
      },
      "platform": {
        "amount": 0,
        "currency": "string"
      },
      "net": {
        "amount": 0,
        "currency": "string"
      }
    },
    "all_time": {
      "gross": {
        "amount": 0,
        "currency": "string"
      },
      "platform": {
        "amount": 0,
        "currency": "string"
      },
      "net": {
        "amount": 0,
        "currency": "string"
      }
    }
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/ordersCreate an order and get the payment link for the customer
  • Zakresorders:write
  • KluczeKlucze resellera
  • Narzędzie MCPorders_create
  • PonowieniaObsługiwany Idempotency-Key

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Starts the same checkout as your storefront for one of your plans: the customer opens `checkout_url`, pays by card (3-D Secure, your Stripe account) and the server is created automatically. Follow it with GET /orders/{order_id} or the order.* webhooks. The customer must have a verified email.

Parametry

NazwaTypOpis
customer_idtreśćwymaganestringdo 40 znaków
plan_idtreśćwymaganestringdo 40 znaków
software_idtreśćwymaganestringdo 40 znaków
server_nametreśćwymaganestringco najmniej 1 znaków · do 40 znaków
variablestreśćobject
discount_codetreśćstringdo 40 znaków
success_urltreśćstringDefault: your store order pagedo 500 znaków · format uri
cancel_urltreśćstringdo 500 znaków · format uri

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/orders' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "customer_id": "string",
  "plan_id": "string",
  "software_id": "string",
  "server_name": "string"
}'

Odpowiedź 201

JSON
{
  "data": {
    "order_id": "string",
    "checkout_url": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/subscriptions/{subscription_id}/cancelCancel a subscription at the end of the paid period
  • Zakresorders:write
  • KluczeKlucze resellera
  • Narzędzie MCPsubscriptions_cancel

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

The server keeps running until `current_period_end`, then the subscription ends. Undo with /resume.

Parametry

NazwaTypOpis
subscription_idścieżkawymaganestringSubscription id (sub_...)wzorzec ^sub_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/subscriptions/{subscription_id}/cancel' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "status": "string",
    "plan_id": "string",
    "server_id": "string",
    "price": {
      "amount": 0,
      "currency": "string"
    },
    "cancel_at_period_end": false,
    "current_period_end": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/subscriptions/{subscription_id}/resumeKeep a subscription renewing (undo a cancellation)
  • Zakresorders:write
  • KluczeKlucze resellera
  • Narzędzie MCPsubscriptions_resume

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Parametry

NazwaTypOpis
subscription_idścieżkawymaganestringSubscription id (sub_...)wzorzec ^sub_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/subscriptions/{subscription_id}/resume' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "status": "string",
    "plan_id": "string",
    "server_id": "string",
    "price": {
      "amount": 0,
      "currency": "string"
    },
    "cancel_at_period_end": false,
    "current_period_end": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/subscriptions/{subscription_id}/plan-optionsList the plans a subscription can upgrade or downgrade to
  • Zakresorders:read
  • KluczeKlucze resellera
  • Narzędzie MCPsubscriptions_plan_options

Parametry

NazwaTypOpis
subscription_idścieżkawymaganestringSubscription id (sub_...)wzorzec ^sub_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/subscriptions/{subscription_id}/plan-options' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "plan_id": "string",
      "name": "string",
      "price": {
        "amount": 0,
        "currency": "string"
      },
      "ram_mb": 0,
      "cpu_pct": 0,
      "disk_mb": 0
    }
  ]
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/subscriptions/{subscription_id}/change-planUpgrade or downgrade a subscription (prorated) and resize its server
  • Zakresorders:write
  • KluczeKlucze resellera
  • Narzędzie MCPsubscriptions_change_plan

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

The difference is prorated on the next invoice; the server is resized right away. Only active subscriptions; plans from /plan-options.

Parametry

NazwaTypOpis
subscription_idścieżkawymaganestringSubscription id (sub_...)wzorzec ^sub_[0-9a-z]{16}$
plan_idtreśćwymaganestringdo 40 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/subscriptions/{subscription_id}/change-plan' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"plan_id":"string"}'

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "status": "string",
    "plan_id": "string",
    "server_id": "string",
    "price": {
      "amount": 0,
      "currency": "string"
    },
    "cancel_at_period_end": false,
    "current_period_end": "string",
    "server_resized": false
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

Środki

GET/creditsShow the credit balance
  • Zakrescredits:read
  • KluczeKlucze resellera
  • Narzędzie MCPcredits_balance

Enzonic credits pay for grants (servers you give away) and other platform charges.

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/credits' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "balance": {
      "amount": 2500,
      "currency": "usd"
    }
  }
}
GET/credits/ledgerList credit ledger entries
  • Zakrescredits:read
  • KluczeKlucze resellera
  • Narzędzie MCPcredits_ledger

Parametry

NazwaTypOpis
limitzapytanieintegerPage size, 1 to 100 (default 50).Domyślny 50min. 1 · maks. 100
cursorzapytaniestring`next_cursor` from the previous page.do 200 znaków
kindzapytaniestringJeden z "trial", "topup", "grant_charge", "order_fee", "enzica", "refund", "adjust", "reversal"

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/credits/ledger' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "string",
      "kind": "trial",
      "amount": {
        "amount": 0,
        "currency": "string"
      },
      "balance_after": {
        "amount": 0,
        "currency": "string"
      },
      "reference": {
        "type": "string",
        "id": "string"
      },
      "note": "string",
      "created_at": "string"
    }
  ],
  "next_cursor": null
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

Flex servers (hourly)

GET/flex/pricingShow your Flex prices, the lowest allowed prices and the size limits
  • Zakresflex:read
  • KluczeKlucze resellera
  • Narzędzie MCPflex_pricing_get

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/flex/pricing' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "enabled": false,
    "currency": "string",
    "hours_per_month": 0,
    "prices": {
      "ram_gb": 0,
      "vcpu": 0,
      "disk_10gb": 0
    },
    "lowest_prices": {
      "ram_gb": 0,
      "vcpu": 0,
      "disk_10gb": 0
    },
    "enzonic_cost": {
      "ram_gb": 0,
      "vcpu": 0,
      "disk_10gb": 0
    },
    "platform_fee_percent": 0,
    "max_ram_mb": 0,
    "max_servers_per_customer": 0
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

PUT/flex/pricingTurn Flex on or off and set your prices
  • Zakresflex:write
  • KluczeKlucze resellera
  • Narzędzie MCPflex_pricing_update

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Prices are cents per month of running time (billed per second). Each must be at least the lowest price from GET /flex/pricing.

Parametry

NazwaTypOpis
enabledtreśćwymaganeboolean
ram_gbtreśćwymaganeintegerCents per GB RAM per month
vcputreśćwymaganeintegerCents per vCPU per month
disk_10gbtreśćwymaganeintegerCents per 10 GB disk per month
max_ram_mbtreśćinteger
max_servers_per_customertreśćinteger

Żądanie

curl
curl -X PUT 'https://reseller.enzonic.com/api/v1/flex/pricing' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":false,"ram_gb":0,"vcpu":0,"disk_10gb":0}'

Odpowiedź 200

JSON
{
  "data": {
    "saved": true
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/customers/{customer_id}/flexShow a customer's Flex balance, hourly cost and recent charges
  • Zakresflex:read
  • KluczeKlucze resellera
  • Narzędzie MCPflex_balance_get

Parametry

NazwaTypOpis
customer_idścieżkawymaganestringCustomer id (usr_...)do 40 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/customers/{customer_id}/flex' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "customer_id": "string",
    "balance": {
      "amount": 0,
      "currency": "string"
    },
    "precise_millicents": 0,
    "running_cost_per_hour": {
      "amount": 0,
      "currency": "string"
    },
    "hours_left": 0,
    "history": [
      {
        "kind": "topup",
        "amount": {
          "amount": 0,
          "currency": "string"
        },
        "note": "string",
        "created_at": "string"
      }
    ]
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/customers/{customer_id}/flex/adjustAdd to or take from a customer Flex balance
  • Zakresflex:write
  • KluczeKlucze resellera
  • Narzędzie MCPflex_balance_adjust
  • PonowieniaObsługiwany Idempotency-Key

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Positive = a gift from your store, negative = a correction. Needs an Idempotency-Key; the same key never posts twice.

Parametry

NazwaTypOpis
customer_idścieżkawymaganestringCustomer id (usr_...)do 40 znaków
amounttreśćwymaganeintegerCents, + or -
notetreśćstringDomyślny ""do 120 znaków
referencetreśćwymaganestringYour own unique reference (posted once)co najmniej 1 znaków · do 80 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/customers/{customer_id}/flex/adjust' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"amount":0,"reference":"string"}'

Odpowiedź 201

JSON
{
  "data": {
    "customer_id": "string",
    "balance": {
      "amount": 0,
      "currency": "string"
    },
    "precise_millicents": 0,
    "running_cost_per_hour": {
      "amount": 0,
      "currency": "string"
    },
    "hours_left": 0
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/flex/serversList Flex servers with their hourly price and usage
  • Zakresflex:read
  • KluczeKlucze resellera
  • Narzędzie MCPflex_servers_list

Parametry

NazwaTypOpis
customer_idzapytaniestringdo 40 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/flex/servers' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "server_id": "string",
      "customer_id": "string",
      "name": "string",
      "status": "string",
      "power_state": "string",
      "ram_mb": 0,
      "cpu_pct": 0,
      "disk_mb": 0,
      "price_per_hour": {
        "amount": 0,
        "currency": "string"
      },
      "run_seconds": 0,
      "spent": {
        "amount": 0,
        "currency": "string"
      },
      "stopped_reason": "string",
      "created_at": "string"
    }
  ]
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/flex/servers/{server_id}Get one Flex server with its hourly price and usage
  • Zakresflex:read
  • KluczeKlucze resellera
  • Narzędzie MCPflex_servers_get

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/flex/servers/{server_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "server_id": "string",
    "customer_id": "string",
    "name": "string",
    "status": "string",
    "power_state": "string",
    "ram_mb": 0,
    "cpu_pct": 0,
    "disk_mb": 0,
    "price_per_hour": {
      "amount": 0,
      "currency": "string"
    },
    "run_seconds": 0,
    "spent": {
      "amount": 0,
      "currency": "string"
    },
    "stopped_reason": "string",
    "created_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/flex/serversCreate a Flex server for a customer
  • Zakresflex:write
  • KluczeKlucze resellera
  • Narzędzie MCPflex_servers_create
  • PonowieniaObsługiwany Idempotency-Key

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

The customer's Flex balance must cover one hour of the size. The server is a normal server afterwards: use /servers/{server_id}/... for power, console, files, backups and sub-users.

Parametry

NazwaTypOpis
customer_idtreśćwymaganestringCustomer id (usr_...)do 40 znaków
nametreśćwymaganestringco najmniej 1 znaków · do 40 znaków
software_idtreśćwymaganestringdo 40 znaków
ram_mbtreśćwymaganeinteger512 MB steps
cpu_pcttreśćwymaganeinteger100 = one vCPU, 50 steps
disk_mbtreśćwymaganeinteger1024 MB steps

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/flex/servers' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "customer_id": "string",
  "name": "string",
  "software_id": "string",
  "ram_mb": 0,
  "cpu_pct": 0,
  "disk_mb": 0
}'

Odpowiedź 201

JSON
{
  "data": {
    "server_id": "string",
    "customer_id": "string",
    "name": "string",
    "status": "string",
    "power_state": "string",
    "ram_mb": 0,
    "cpu_pct": 0,
    "disk_mb": 0,
    "price_per_hour": {
      "amount": 0,
      "currency": "string"
    },
    "run_seconds": 0,
    "spent": {
      "amount": 0,
      "currency": "string"
    },
    "stopped_reason": "string",
    "created_at": "string",
    "price_per_month_if_always_on": {
      "amount": 0,
      "currency": "string"
    }
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

PATCH/flex/servers/{server_id}Resize a Flex server (new price from now on)
  • Zakresflex:write
  • KluczeKlucze resellera
  • Narzędzie MCPflex_servers_resize

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
ram_mbtreśćwymaganeinteger512 MB steps
cpu_pcttreśćwymaganeinteger100 = one vCPU, 50 steps
disk_mbtreśćwymaganeinteger1024 MB steps

Żądanie

curl
curl -X PATCH 'https://reseller.enzonic.com/api/v1/flex/servers/{server_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ram_mb":0,"cpu_pct":0,"disk_mb":0}'

Odpowiedź 200

JSON
{
  "data": {
    "server_id": "string",
    "customer_id": "string",
    "name": "string",
    "status": "string",
    "power_state": "string",
    "ram_mb": 0,
    "cpu_pct": 0,
    "disk_mb": 0,
    "price_per_hour": {
      "amount": 0,
      "currency": "string"
    },
    "run_seconds": 0,
    "spent": {
      "amount": 0,
      "currency": "string"
    },
    "stopped_reason": "string",
    "created_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/flex/servers/{server_id}Delete a Flex server and its files (bills the time it ran first)
  • Zakresflex:write
  • KluczeKlucze resellera
  • Narzędzie MCPflex_servers_delete

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/flex/servers/{server_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "deleted": true
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/flex/limitsShow the sizes a Flex server can have in your store
  • Zakresflex:read
  • KluczeKlucze resellera
  • Narzędzie MCPflex_limits

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/flex/limits' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "ram_mb": {
      "min": 0,
      "max": 0,
      "step": 0
    },
    "cpu_pct": {
      "min": 0,
      "max": 0,
      "step": 0
    },
    "disk_mb": {
      "min": 0,
      "max": 0,
      "step": 0
    }
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

VPS

GET/vps/accountShow the store VPS reseller link, tier, balance and limits
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_account_get

Your wholesale discount tier (Starter 15 %, Growth 20 %, Pro 25 % on monthly VPS spend), the Enzonic VPS balance that pays the wholesale, VPS counts and limits, and your white-label VPS panel host.

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/account' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "linked": false,
    "available": false,
    "account": {}
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/plansList VPS plans with your wholesale and retail prices
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_plans_list

Every Enzonic VPS plan with its specs, your wholesale price (list price minus your tier discount) and the retail price your store charges (`retail` null = not offered yet; set it with PUT /vps/plans/{plan_key}).

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/plans' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "plan_key": "string",
      "name": "string",
      "vcpu": 0,
      "memory_mb": 0,
      "disk_gb": 0,
      "network_speed_mbit": 0,
      "wholesale": {
        "amount": 0,
        "currency": "string"
      },
      "retail": {
        "amount": 0,
        "currency": "string"
      },
      "active": false
    }
  ]
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

PUT/vps/plans/{plan_key}Set the retail price of a VPS plan and offer or hide it
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_plans_update

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Monthly retail price in cents (USD), never below your wholesale price. New orders use it; running card subscriptions keep their price. Also synced to your white-label VPS panel. Needs vps:write and plans:write.

Parametry

NazwaTypOpis
plan_keyścieżkawymaganestringVPS plan key from GET /vps/plans (s, m, l, xl, ...)wzorzec ^[a-z0-9][a-z0-9-]{0,19}$
retail_pricetreśćwymaganeintegerCents per monthmin. 1 · maks. 10000000
activetreśćbooleanDomyślny true

Żądanie

curl
curl -X PUT 'https://reseller.enzonic.com/api/v1/vps/plans/{plan_key}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"retail_price":0}'

Odpowiedź 200

JSON
{
  "data": {
    "plan_key": "string",
    "retail": {
      "amount": 0,
      "currency": "string"
    },
    "active": false
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/templatesList operating systems and one-click panel stacks
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_templates_list

Operating systems, plus one-click stacks (`category: "stack"`: Wings node, game panels, billing panels) with their minimum RAM.

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/templates' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {}
  ]
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/regionsList VPS regions with IPv4 / IPv6 and dedicated IPv4 stock
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_regions_list

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/regions' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {}
  ]
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/ordersCreate a VPS order and get the payment link for the customer
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_orders_create
  • PonowieniaObsługiwany Idempotency-Key

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Same checkout as your storefront: the customer pays your retail price monthly (card with 3-D Secure through your Stripe account, or `pay_with` = one of your own subscription gateways). After payment and the fraud screen the VPS is created automatically (orders from new stores wait for review). Needs vps:write and orders:write; the customer must have a verified email.

Parametry

NazwaTypOpis
customer_idtreśćwymaganestringCustomer id (usr_...)do 40 znaków
plan_keytreśćwymaganestringVPS plan key from GET /vps/plans (s, m, l, xl, ...)wzorzec ^[a-z0-9][a-z0-9-]{0,19}$
templatetreśćwymaganestringTemplate key from GET /vps/templates (operating system or one-click panel stack)wzorzec ^[a-z0-9][a-z0-9._-]{1,60}$
server_nametreśćwymaganestring1-40 letters, numbers, spaces, dots or dasheswzorzec ^[A-Za-z0-9][A-Za-z0-9 ._-]{0,39}$
regiontreśćstringRegion key from GET /vps/regions (europe, united_states, ...)wzorzec ^[a-z][a-z0-9_]{1,40}$
pay_withtreśćstringstripe_connect or an own gateway config idDomyślny "stripe_connect"do 40 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/orders' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "customer_id": "string",
  "plan_key": "string",
  "template": "string",
  "server_name": "string"
}'

Odpowiedź 201

JSON
{
  "data": {
    "order_id": "string",
    "checkout_url": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/ordersList VPS orders
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_orders_list

Parametry

NazwaTypOpis
limitzapytanieintegerPage size, 1 to 100 (default 50).Domyślny 50min. 1 · maks. 100
cursorzapytaniestring`next_cursor` from the previous page.do 200 znaków
customer_idzapytaniestringCustomer id (usr_...)do 40 znaków
statuszapytaniestringdo 20 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/orders' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "order_id": "string",
      "vps_id": 0,
      "customer_id": "string",
      "plan_key": "string",
      "plan_name": "string",
      "template": "string",
      "region": "string",
      "server_name": "string",
      "status": "string",
      "paid_by": "string",
      "price": {
        "amount": 0,
        "currency": "string"
      },
      "in_review": false,
      "last_error": "string",
      "current_period_end": "string",
      "created_at": "string"
    }
  ],
  "next_cursor": null
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/orders/{order_id}Get one VPS order
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_orders_get

Parametry

NazwaTypOpis
order_idścieżkawymaganestringVPS order id (vpo_...)wzorzec ^vpo_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/orders/{order_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "order_id": "string",
    "vps_id": 0,
    "customer_id": "string",
    "plan_key": "string",
    "plan_name": "string",
    "template": "string",
    "region": "string",
    "server_name": "string",
    "status": "string",
    "paid_by": "string",
    "price": {
      "amount": 0,
      "currency": "string"
    },
    "in_review": false,
    "last_error": "string",
    "current_period_end": "string",
    "created_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/serversCreate a VPS for a customer now, paid from your Enzonic VPS balance
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_create
  • PonowieniaObsługiwany Idempotency-Key

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

No customer payment: Enzonic takes the wholesale price from your Enzonic VPS balance now and at every renewal (bill the customer yourself). `root_password` is returned once. Refused while the store or the customer is blocked; Enzonic limits for new resellers apply. Needs vps:write and orders:write.

Parametry

NazwaTypOpis
customer_idtreśćwymaganestringCustomer id (usr_...)do 40 znaków
plan_keytreśćwymaganestringVPS plan key from GET /vps/plans (s, m, l, xl, ...)wzorzec ^[a-z0-9][a-z0-9-]{0,19}$
templatetreśćwymaganestringTemplate key from GET /vps/templates (operating system or one-click panel stack)wzorzec ^[a-z0-9][a-z0-9._-]{1,60}$
server_nametreśćwymaganestring1-40 letters, numbers, spaces, dots or dasheswzorzec ^[A-Za-z0-9][A-Za-z0-9 ._-]{0,39}$
regiontreśćstringRegion key from GET /vps/regions (europe, united_states, ...)wzorzec ^[a-z][a-z0-9_]{1,40}$
hostnametreśćstringdo 253 znaków · wzorzec ^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?(\.[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$
ssh_key_idstreśćarray of integerFrom GET /vps/ssh-keysdo 10 elementów

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "customer_id": "string",
  "plan_key": "string",
  "template": "string",
  "server_name": "string"
}'

Odpowiedź 201

JSON
{
  "data": {
    "order": {
      "order_id": "string",
      "vps_id": 0,
      "customer_id": "string",
      "plan_key": "string",
      "plan_name": "string",
      "template": "string",
      "region": "string",
      "server_name": "string",
      "status": "string",
      "paid_by": "string",
      "price": {
        "amount": 0,
        "currency": "string"
      },
      "in_review": false,
      "last_error": "string",
      "current_period_end": "string",
      "created_at": "string"
    },
    "server": {},
    "root_password": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/serversList the VPS your store sold, with live status
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_list

Parametry

NazwaTypOpis
customer_idzapytaniestringCustomer id (usr_...)do 40 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/servers' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "vps_id": 0,
      "order_id": "string",
      "customer_id": "string",
      "plan_key": "string",
      "order_status": "string",
      "server": {}
    }
  ]
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/servers/{vps_id}Get one VPS: status, power, plan, OS, IPs, ports, rescue, limits
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_get

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/servers/42' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "order": {
      "order_id": "string",
      "vps_id": 0,
      "customer_id": "string",
      "plan_key": "string",
      "plan_name": "string",
      "template": "string",
      "region": "string",
      "server_name": "string",
      "status": "string",
      "paid_by": "string",
      "price": {
        "amount": 0,
        "currency": "string"
      },
      "in_review": false,
      "last_error": "string",
      "current_period_end": "string",
      "created_at": "string"
    },
    "server": {}
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

PATCH/vps/servers/{vps_id}Rename a VPS or change its hostname
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_update

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
nametreśćstringco najmniej 1 znaków · do 60 znaków
hostnametreśćstringdo 253 znaków

Żądanie

curl
curl -X PATCH 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/vps/servers/{vps_id}Delete a VPS for good and stop its billing
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_delete

DestrukcyjnyZmienia ceny lub opłatyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Deletes the VPS and its disk on Enzonic (the wholesale stops renewing) and cancels the customer card subscription now. Own-gateway subscriptions must be cancelled in that provider (`billing_note`). Send `confirm` = the VPS name.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
confirmtreśćwymaganestringThe VPS name, as a safety checkdo 60 znaków

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"confirm":"string"}'

Odpowiedź 200

JSON
{
  "data": {
    "deleted": false,
    "subscription_cancelled": false,
    "billing_note": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/powerStart, stop, restart or kill a VPS
  • Zakresvps:power
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_power

`stop` is a clean ACPI shutdown, `kill` cuts the power.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
signaltreśćwymaganestringJeden z "start", "stop", "restart", "kill"

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/42/power' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"signal":"restart"}'

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/suspendSuspend a VPS (stopped, customer locked out, disk kept)
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_suspend

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
notetreśćstringdo 300 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/suspend' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Odpowiedź 200

JSON
{
  "data": {
    "suspended": false
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/unsuspendLift your own suspension of a VPS
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_unsuspend

Enzonic suspensions (unpaid wholesale, abuse review) can only be lifted by Enzonic.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/unsuspend' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "suspended": false
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/reinstallReinstall a VPS with an OS or panel stack (wipes the disk)
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_reinstall

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Send `confirm` = the VPS name. Optional SSH keys (ids from /vps/ssh-keys) and root password; a new password is generated and returned once when none is given.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
templatetreśćwymaganestringTemplate key from GET /vps/templates (operating system or one-click panel stack)wzorzec ^[a-z0-9][a-z0-9._-]{1,60}$
confirmtreśćwymaganestringdo 60 znaków
ssh_key_idstreśćarray of integerdo 10 elementów
passwordtreśćstringco najmniej 12 znaków · do 128 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/reinstall' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template":"string","confirm":"string"}'

Odpowiedź 200

JSON
{
  "data": {
    "server": {},
    "root_password": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/passwordReset the root / default user password of a running VPS
  • Zakresvps:console
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_password

Without `password` a strong one is generated. Returned once.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
passwordtreśćstringco najmniej 12 znaków · do 128 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/password' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/rescueBoot a VPS into rescue mode or back to its disk
  • Zakresvps:power
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_rescue

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
enabledtreśćwymaganeboolean

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/rescue' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":false}'

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/consoleGet a short-lived VNC console session (noVNC)
  • Zakresvps:console
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_console

Returns `ws_url`, `session_url` and a signed `token` (valid about a minute) for a noVNC client: open the websocket at `ws_url` with the token. Works in rescue mode and before the network is up.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/console' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/terminalGet a short-lived web terminal (SSH) session
  • Zakresvps:console
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_terminal

Returns `ws_url`, a signed `token` and the `login` user for the SSH-key web terminal.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/terminal' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/servers/{vps_id}/networkShow the IPv4, SSH port, forwarded port range, IPv6 and dedicated IPv4 of a VPS
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_network

Shared IPv4 VPS get a fixed range of forwarded ports (one is SSH); a dedicated IPv4 is 1:1 and has every port. There is no per-VPS firewall rule API and no reverse DNS: use the firewall inside the VPS (ufw, nftables). Port 25 outbound is always closed.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/network' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/servers/{vps_id}/metricsCPU, memory, network and disk graphs of a VPS
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_metrics

Points of `cpu_pct` (of the VPS vCPUs), `memory_used_mb`, network and disk bytes per second. hour = 1 minute steps, day = 30 minutes, week = 3 hours, month = 12 hours.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
rangezapytaniestringJeden z "hour", "day", "week", "month"Domyślny "hour"

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/metrics' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/servers/{vps_id}/trafficNetwork traffic of a VPS: this month and per day (31 days)
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_traffic

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/traffic' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/servers/{vps_id}/eventsActivity log of a VPS (power, reinstall, backups, resize, ...)
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_events

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
limitzapytanieintegerDomyślny 50min. 1 · maks. 200

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/events' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {}
  ]
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/change-planUpgrade or downgrade a VPS to another plan
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_change_plan

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Upgrades happen in place when the VPS host has room (prorated wholesale from your Enzonic VPS balance). Downgrades: `mode` keep (only when the new plan has at least the same disk) or fresh (reinstall on the smaller disk, wipes it: send `confirm` = the VPS name). The customer card subscription moves to your retail price of the new plan, prorated. Needs vps:write and orders:write.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
plan_keytreśćwymaganestringVPS plan key from GET /vps/plans (s, m, l, xl, ...)wzorzec ^[a-z0-9][a-z0-9-]{0,19}$
modetreśćstringDowngrades only; default keepJeden z "keep", "fresh"
confirmtreśćstringThe VPS name; required for mode freshdo 60 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/change-plan' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"plan_key":"string"}'

Odpowiedź 200

JSON
{
  "data": {
    "result": {},
    "retail_updated": false,
    "billing_note": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/servers/{vps_id}/transferRegion move: regions available and the current / last move
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_transfer_get

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/transfer' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/transferMove a VPS to another region (disk copied, IPs change)
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_transfer_start

The VPS is stopped during the copy. Send `confirm` = the VPS name.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
regiontreśćwymaganestringRegion key from GET /vps/regions (europe, united_states, ...)wzorzec ^[a-z][a-z0-9_]{1,40}$
confirmtreśćwymaganestringdo 60 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/transfer' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"region":"string","confirm":"string"}'

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/vps/servers/{vps_id}/transferCancel a region move that has not started copying
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_servers_transfer_cancel

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/transfer' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/servers/{vps_id}/backupsList the backups (snapshots) of a VPS and the backup add-on state
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_backups_list

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/backups' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/backupsTake a backup of a VPS now
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_backups_create
  • PonowieniaObsługiwany Idempotency-Key

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
notetreśćstringdo 120 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/backups' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{}'

Odpowiedź 201

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/backups/{backup_id}/restoreRestore a VPS from a backup (replaces the disk)
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_backups_restore

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Send `confirm` = the VPS name.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
backup_idścieżkawymaganestringwzorzec ^[0-9]{1,12}$
confirmtreśćwymaganestringdo 60 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/backups/{backup_id}/restore' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"confirm":"string"}'

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/vps/servers/{vps_id}/backups/{backup_id}Delete a backup of a VPS
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_backups_delete

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
backup_idścieżkawymaganestringwzorzec ^[0-9]{1,12}$

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/backups/{backup_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "deleted": false
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

PUT/vps/servers/{vps_id}/addons/backupsTurn the automatic backup add-on of a VPS on or off
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_backups_addon

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Charged from your Enzonic VPS balance at your wholesale add-on price.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
enabledtreśćwymaganeboolean

Żądanie

curl
curl -X PUT 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/addons/backups' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":false}'

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/servers/{vps_id}/addonsDedicated IPv4 add-on state, extra IPv4 addresses and prices
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_addons_get

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/addons' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

PUT/vps/servers/{vps_id}/addons/dedicated-ipv4Add or remove the dedicated IPv4 of a VPS
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_addons_dedicated_ipv4

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

`enabled: true` buys it (prorated, from your Enzonic VPS balance; attached in minutes or waitlisted up to 48 h); `false` ends it at the period end. `mode`: alongside (keep the shared IPv4 ports too) or instead.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
enabledtreśćwymaganeboolean
modetreśćstringJeden z "alongside", "instead"

Żądanie

curl
curl -X PUT 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/addons/dedicated-ipv4' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":false}'

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/servers/{vps_id}/addons/extra-ipv4Add one more routed IPv4 to a VPS that has a dedicated IPv4
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_addons_extra_ipv4_add
  • PonowieniaObsługiwany Idempotency-Key

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/addons/extra-ipv4' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Odpowiedź 201

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/vps/servers/{vps_id}/addons/extra-ipv4/{assignment_id}Remove an extra IPv4 at the end of the paid period
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_addons_extra_ipv4_remove

Zmienia ceny lub opłatyTo zmienia, ile płacą Twoi klienci lub ile zostaje obciążone Ciebie. Klienci MCP proszą o potwierdzenie.

Parametry

NazwaTypOpis
vps_idścieżkawymaganestringVPS id (number, from GET /vps/servers)wzorzec ^[0-9]{1,10}$
assignment_idścieżkawymaganestringwzorzec ^[0-9]{1,12}$

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/vps/servers/{vps_id}/addons/extra-ipv4/{assignment_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/vps/ssh-keysList the SSH keys of your Enzonic VPS account (usable at create and reinstall)
  • Zakresvps:read
  • KluczeKlucze resellera
  • Narzędzie MCPvps_ssh_keys_list

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/vps/ssh-keys' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {}
  ]
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/vps/ssh-keysAdd an SSH public key
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_ssh_keys_create
  • PonowieniaObsługiwany Idempotency-Key

Parametry

NazwaTypOpis
nametreśćwymaganestringco najmniej 1 znaków · do 60 znaków
public_keytreśćwymaganestringco najmniej 40 znaków · do 4096 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/vps/ssh-keys' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"name":"string","public_key":"string"}'

Odpowiedź 201

JSON
{
  "data": {}
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/vps/ssh-keys/{key_id}Delete an SSH key (VPS that already have it keep it)
  • Zakresvps:write
  • KluczeKlucze resellera
  • Narzędzie MCPvps_ssh_keys_delete

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Parametry

NazwaTypOpis
key_idścieżkawymaganestringwzorzec ^[0-9]{1,12}$

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/vps/ssh-keys/{key_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "deleted": false
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

Sub-users, API keys and SFTP

GET/servers/{server_id}/usersList the sub-users of a server and the permissions you can grant
  • Zakresservers:users
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_users_list

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/servers/{server_id}/users' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "users": [
      {
        "id": "string",
        "email": "string",
        "name": "string",
        "permissions": [
          "string"
        ]
      }
    ],
    "permissions": [
      {
        "key": "string",
        "label": "string",
        "grantable": false
      }
    ]
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/usersGive an account of your store access to a server
  • Zakresservers:users
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_users_create
  • PonowieniaObsługiwany Idempotency-Key

The account must exist in your store with a verified email (create it with POST /customers). Permissions are the keys from GET /servers/{server_id}/users, e.g. `control.console`, `control.start`, `file.read`, `file.sftp`.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
emailtreśćwymaganestringdo 254 znaków · wzorzec ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ · format email
permissionstreśćwymaganearray of stringco najmniej 1 elementów · do 80 elementów

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/users' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"email":"string","permissions":["string"]}'

Odpowiedź 201

JSON
{
  "data": {
    "id": "string",
    "email": "string",
    "name": "string",
    "permissions": [
      "string"
    ]
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

PATCH/servers/{server_id}/users/{user_id}Change a sub-user's permissions
  • Zakresservers:users
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_users_update

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
user_idścieżkawymaganestringUser id (usr_...)do 40 znaków
permissionstreśćwymaganearray of stringco najmniej 1 elementów · do 80 elementów

Żądanie

curl
curl -X PATCH 'https://reseller.enzonic.com/api/v1/servers/{server_id}/users/{user_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"permissions":["string"]}'

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "email": "string",
    "name": "string",
    "permissions": [
      "string"
    ]
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/servers/{server_id}/users/{user_id}Remove a sub-user's access (their console sessions are cut)
  • Zakresservers:users
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_users_delete

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$
user_idścieżkawymaganestringUser id (usr_...)do 40 znaków

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/servers/{server_id}/users/{user_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "removed": true
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/servers/{server_id}/sftpShow how to connect to a server over SFTP
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_sftp_get

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/servers/{server_id}/sftp' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "mode": "account_password",
    "host": "string",
    "port": 0,
    "username": "string",
    "note": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/servers/{server_id}/sftp/credentialsCreate or rotate the SFTP login of a server on Enzonic nodes (password shown once)
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_sftp_credentials

Every call makes a new password; the old one stops working. The login can only reach this server and only its files.

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/servers/{server_id}/sftp/credentials' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "host": "string",
    "port": 0,
    "username": "string",
    "password": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/servers/{server_id}/sftp/credentialsRevoke the SFTP login of a server on Enzonic nodes
  • Zakresservers:files
  • KluczeKlucze resellera i klientów
  • Narzędzie MCPservers_sftp_revoke

Parametry

NazwaTypOpis
server_idścieżkawymaganestringServer id (srv_...)wzorzec ^srv_[0-9a-z]{16}$

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/servers/{server_id}/sftp/credentials' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "revoked": true
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/customers/{customer_id}/api-keysList a customer's API keys
  • Zakrescustomers:read
  • KluczeKlucze resellera
  • Narzędzie MCPcustomers_api_keys_list

Parametry

NazwaTypOpis
customer_idścieżkawymaganestringUser id (usr_...)do 40 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/customers/{customer_id}/api-keys' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "scopes": [
        "string"
      ],
      "status": "string",
      "created_at": "string"
    }
  ]
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/customers/{customer_id}/api-keysCreate an API key for a customer (server scopes only; the token is shown once)
  • Zakrescustomers:write
  • KluczeKlucze resellera
  • Narzędzie MCPcustomers_api_keys_create
  • PonowieniaObsługiwany Idempotency-Key

The key reaches only the servers that customer owns or is a sub-user of, with their permissions. To give someone a key for ONE server, add them as a sub-user of that server and create the key on their account.

Parametry

NazwaTypOpis
customer_idścieżkawymaganestringUser id (usr_...)do 40 znaków
nametreśćwymaganestringco najmniej 1 znaków · do 60 znaków
scopestreśćwymaganearray of stringJeden z "servers:read", "servers:write", "servers:power", "servers:console", "servers:files", "servers:backups", "servers:users"co najmniej 1 elementów
allowed_ipstreśćarray of stringdo 20 elementów
expires_attreśćstringwzorzec ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ · format date-time

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/customers/{customer_id}/api-keys' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"name":"string","scopes":["servers:read"]}'

Odpowiedź 201

JSON
{
  "data": {
    "id": "string",
    "token": "string",
    "scopes": [
      "string"
    ]
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/customers/{customer_id}/api-keys/{key_id}Revoke a customer's API key
  • Zakrescustomers:write
  • KluczeKlucze resellera
  • Narzędzie MCPcustomers_api_keys_revoke

Parametry

NazwaTypOpis
customer_idścieżkawymaganestringUser id (usr_...)do 40 znaków
key_idścieżkawymaganestringdo 40 znaków

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/customers/{customer_id}/api-keys/{key_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "revoked": true
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

Domeny

GET/domainsList domains
  • Zakresdomains:read
  • KluczeKlucze resellera
  • Narzędzie MCPdomains_list

Your default address and every custom domain (at most 5), with verification status and the DNS records each one needs. Not paginated: the list is always short.

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/domains' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "dom_0a2c4e6g8j0l2n4q",
      "hostname": "aurora.enzonic.dev",
      "kind": "default",
      "status": "active",
      "is_primary": true,
      "verification_method": null,
      "ssl_status": null,
      "error": null,
      "apex": false,
      "required_records": [],
      "last_checked_at": null,
      "next_check_at": null,
      "verified_at": null,
      "grace_until": null,
      "created_at": "2026-09-01T08:00:00.000Z"
    },
    {
      "id": "dom_4h6k8m0p2r4t6v8x",
      "hostname": "play.example.com",
      "kind": "custom",
      "status": "pending",
      "is_primary": false,
      "verification_method": "cf_saas",
      "ssl_status": "pending_validation",
      "error": "Waiting for the records below (hostname status: pending).",
      "apex": false,
      "required_records": [
        {
          "type": "CNAME",
          "name": "play.example.com",
          "value": "customers.enzonic.dev",
          "purpose": "Sends visitors to your site."
        },
        {
          "type": "TXT",
          "name": "_enzonic-verify.play.example.com",
          "value": "enzonic-verify=3k9q2m7x8c4v6b1n5z0p4r6t8w2y4a6d",
          "purpose": "Proves you own the domain."
        }
      ],
      "last_checked_at": "2026-10-19T10:01:00.000Z",
      "next_check_at": "2026-10-19T10:03:00.000Z",
      "verified_at": null,
      "grace_until": null,
      "created_at": "2026-10-19T10:00:00.000Z"
    }
  ]
}
GET/domains/{domain_id}Get a domain
  • Zakresdomains:read
  • KluczeKlucze resellera
  • Narzędzie MCPdomains_get

Verification status, the last error and the DNS records to create. Reading does not run a check.

Parametry

NazwaTypOpis
domain_idścieżkawymaganestringDomain id (dom_...)wzorzec ^dom_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/domains/dom_4h6k8m0p2r4t6v8x' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "dom_4h6k8m0p2r4t6v8x",
    "hostname": "play.example.com",
    "kind": "custom",
    "status": "pending",
    "is_primary": false,
    "verification_method": "cf_saas",
    "ssl_status": "pending_validation",
    "error": "Waiting for the records below (hostname status: pending).",
    "apex": false,
    "required_records": [
      {
        "type": "CNAME",
        "name": "play.example.com",
        "value": "customers.enzonic.dev",
        "purpose": "Sends visitors to your site."
      },
      {
        "type": "TXT",
        "name": "_enzonic-verify.play.example.com",
        "value": "enzonic-verify=3k9q2m7x8c4v6b1n5z0p4r6t8w2y4a6d",
        "purpose": "Proves you own the domain."
      }
    ],
    "last_checked_at": "2026-10-19T10:01:00.000Z",
    "next_check_at": "2026-10-19T10:03:00.000Z",
    "verified_at": null,
    "grace_until": null,
    "created_at": "2026-10-19T10:00:00.000Z"
  }
}
POST/domainsConnect a custom domain
  • Zakresdomains:write
  • KluczeKlucze resellera
  • Narzędzie MCPdomains_create
  • PonowieniaObsługiwany Idempotency-Key

Adds a domain you own (for example play.example.com) with the same rules as the admin: no reserved or platform names, no IP addresses, unique across all stores, at most 5. Then create the returned `required_records` at your DNS provider; the domain is checked automatically, or call the check endpoint. Send an Idempotency-Key to retry safely.

Parametry

NazwaTypOpis
hostnametreśćwymaganestringDomain name. A pasted URL is accepted: the scheme, path and trailing dot are dropped.do 300 znaków

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/domains' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"hostname":"play.example.com"}'

Odpowiedź 201

JSON
{
  "data": {
    "id": "dom_4h6k8m0p2r4t6v8x",
    "hostname": "play.example.com",
    "kind": "custom",
    "status": "pending",
    "is_primary": false,
    "verification_method": "cf_saas",
    "ssl_status": "pending_validation",
    "error": "Waiting for the records below (hostname status: pending).",
    "apex": false,
    "required_records": [
      {
        "type": "CNAME",
        "name": "play.example.com",
        "value": "customers.enzonic.dev",
        "purpose": "Sends visitors to your site."
      },
      {
        "type": "TXT",
        "name": "_enzonic-verify.play.example.com",
        "value": "enzonic-verify=3k9q2m7x8c4v6b1n5z0p4r6t8w2y4a6d",
        "purpose": "Proves you own the domain."
      }
    ],
    "last_checked_at": "2026-10-19T10:01:00.000Z",
    "next_check_at": "2026-10-19T10:03:00.000Z",
    "verified_at": null,
    "grace_until": null,
    "created_at": "2026-10-19T10:00:00.000Z"
  }
}
POST/domains/{domain_id}/checkCheck a domain now
  • Zakresdomains:write
  • KluczeKlucze resellera
  • Narzędzie MCPdomains_check

Looks up the DNS records (and the certificate) right away and returns the new status, like "Check now" in the admin. A failed domain starts a fresh 7-day verification window.

Parametry

NazwaTypOpis
domain_idścieżkawymaganestringDomain id (dom_...)wzorzec ^dom_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/domains/dom_4h6k8m0p2r4t6v8x/check' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "dom_4h6k8m0p2r4t6v8x",
    "hostname": "play.example.com",
    "kind": "custom",
    "status": "active",
    "is_primary": false,
    "verification_method": "cf_saas",
    "ssl_status": "active",
    "error": null,
    "apex": false,
    "required_records": [
      {
        "type": "CNAME",
        "name": "play.example.com",
        "value": "customers.enzonic.dev",
        "purpose": "Sends visitors to your site."
      },
      {
        "type": "TXT",
        "name": "_enzonic-verify.play.example.com",
        "value": "enzonic-verify=3k9q2m7x8c4v6b1n5z0p4r6t8w2y4a6d",
        "purpose": "Proves you own the domain."
      }
    ],
    "last_checked_at": "2026-10-19T10:01:00.000Z",
    "next_check_at": "2026-10-19T10:03:00.000Z",
    "verified_at": "2026-10-19T10:05:00.000Z",
    "grace_until": null,
    "created_at": "2026-10-19T10:00:00.000Z"
  }
}
POST/domains/{domain_id}/primaryMake a domain the primary address
  • Zakresdomains:write
  • KluczeKlucze resellera
  • Narzędzie MCPdomains_primary

The primary domain is the main address of your store: links the platform builds for your store point to it. Only a verified, active domain can be primary; the default address can always be made primary again.

Parametry

NazwaTypOpis
domain_idścieżkawymaganestringDomain id (dom_...)wzorzec ^dom_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/domains/dom_4h6k8m0p2r4t6v8x/primary' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "dom_4h6k8m0p2r4t6v8x",
    "hostname": "play.example.com",
    "kind": "custom",
    "status": "active",
    "is_primary": true,
    "verification_method": "cf_saas",
    "ssl_status": "pending_validation",
    "error": null,
    "apex": false,
    "required_records": [
      {
        "type": "CNAME",
        "name": "play.example.com",
        "value": "customers.enzonic.dev",
        "purpose": "Sends visitors to your site."
      },
      {
        "type": "TXT",
        "name": "_enzonic-verify.play.example.com",
        "value": "enzonic-verify=3k9q2m7x8c4v6b1n5z0p4r6t8w2y4a6d",
        "purpose": "Proves you own the domain."
      }
    ],
    "last_checked_at": "2026-10-19T10:01:00.000Z",
    "next_check_at": "2026-10-19T10:03:00.000Z",
    "verified_at": null,
    "grace_until": null,
    "created_at": "2026-10-19T10:00:00.000Z"
  }
}
DEL/domains/{domain_id}Remove a custom domain
  • Zakresdomains:write
  • KluczeKlucze resellera
  • Narzędzie MCPdomains_delete

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Disconnects the domain right away: visitors on it no longer reach your store and, if it was primary, the default address becomes primary. The default address cannot be removed.

Parametry

NazwaTypOpis
domain_idścieżkawymaganestringDomain id (dom_...)wzorzec ^dom_[0-9a-z]{16}$

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/domains/dom_4h6k8m0p2r4t6v8x' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "dom_4h6k8m0p2r4t6v8x",
    "hostname": "play.example.com",
    "removed": true
  }
}

Węzły

GET/nodesList your nodes
  • Zakresnodes:read
  • KluczeKlucze resellera
  • Narzędzie MCPnodes_list

Nodes you run yourself (bring your own), newest first, with health and usage. The shared Enzonic pool is not listed.

Parametry

NazwaTypOpis
limitzapytanieintegerPage size, 1 to 100 (default 50).Domyślny 50min. 1 · maks. 100
cursorzapytaniestring`next_cursor` from the previous page.do 200 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/nodes' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "nod_5j7l9n1q3s5u7w9y",
      "name": "Node 1",
      "location": "eu-central",
      "fqdn": "node1.example.com",
      "public_ip": "203.0.113.10",
      "scheme": "https",
      "daemon_port": 8080,
      "sftp_port": 2022,
      "memory_mb": 32768,
      "memory_overalloc_pct": 0,
      "disk_mb": 409600,
      "disk_overalloc_pct": 0,
      "health": {
        "status": "online",
        "maintenance": false,
        "wings_version": "1.11.13",
        "last_seen_at": "2026-10-19T10:00:00.000Z",
        "last_checked_at": "2026-10-19T10:00:00.000Z",
        "consecutive_failures": 0,
        "last_error": null
      },
      "usage": {
        "ram_mb": 12288,
        "disk_mb": 61440,
        "servers": 3,
        "allocations_total": 50,
        "allocations_free": 47
      },
      "created_at": "2026-10-01T09:00:00.000Z"
    }
  ],
  "next_cursor": null
}
GET/nodes/{node_id}Get a node
  • Zakresnodes:read
  • KluczeKlucze resellera
  • Narzędzie MCPnodes_get

Settings, health and usage of one of your nodes. Daemon tokens are never returned.

Parametry

NazwaTypOpis
node_idścieżkawymaganestringNode id (nod_...)wzorzec ^nod_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/nodes/nod_5j7l9n1q3s5u7w9y' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "nod_5j7l9n1q3s5u7w9y",
    "name": "Node 1",
    "location": "eu-central",
    "fqdn": "node1.example.com",
    "public_ip": "203.0.113.10",
    "scheme": "https",
    "daemon_port": 8080,
    "sftp_port": 2022,
    "memory_mb": 32768,
    "memory_overalloc_pct": 0,
    "disk_mb": 409600,
    "disk_overalloc_pct": 0,
    "health": {
      "status": "online",
      "maintenance": false,
      "wings_version": "1.11.13",
      "last_seen_at": "2026-10-19T10:00:00.000Z",
      "last_checked_at": "2026-10-19T10:00:00.000Z",
      "consecutive_failures": 0,
      "last_error": null
    },
    "usage": {
      "ram_mb": 12288,
      "disk_mb": 61440,
      "servers": 3,
      "allocations_total": 50,
      "allocations_free": 47
    },
    "created_at": "2026-10-01T09:00:00.000Z"
  }
}
GET/nodes/{node_id}/statusGet the health of a node
  • Zakresnodes:read
  • KluczeKlucze resellera
  • Narzędzie MCPnodes_status

The last recorded health (the platform checks every node regularly). To contact the node now, use the test endpoint.

Parametry

NazwaTypOpis
node_idścieżkawymaganestringNode id (nod_...)wzorzec ^nod_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/nodes/nod_5j7l9n1q3s5u7w9y/status' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "status": "online",
    "maintenance": false,
    "wings_version": "1.11.13",
    "last_seen_at": "2026-10-19T10:00:00.000Z",
    "last_checked_at": "2026-10-19T10:00:00.000Z",
    "consecutive_failures": 0,
    "last_error": null
  }
}
POST/nodesAdd your own node
  • Zakresnodes:write
  • KluczeKlucze resellera
  • Narzędzie MCPnodes_create
  • PonowieniaObsługiwany Idempotency-Key

Registers a server you run yourself, with the same rules as the admin. It stays `pending` until Wings is installed and answers: get the install command from the install-command endpoint, and add port allocations in the admin. Send an Idempotency-Key to retry safely.

Parametry

NazwaTypOpis
nametreśćwymaganestringUp to 64 characters.do 200 znaków
locationtreśćstringShort code such as eu-central (letters, digits, hyphens).do 200 znaków
fqdntreśćwymaganestringHostname (node1.example.com) or IP address Wings is reachable on.do 300 znaków
public_iptreśćwymaganestringPublic IPv4 address players connect to.do 100 znaków
schemetreśćstringDefault https.Jeden z "http", "https"
daemon_porttreśćnumberWings API port, default 8080.
sftp_porttreśćnumberSFTP port, default 2022.
memory_mbtreśćwymaganenumberMemory for servers, 512 or more.
memory_overalloc_pcttreśćnumber0 to 500, default 0.
disk_mbtreśćwymaganenumberDisk for servers, 1024 or more.
disk_overalloc_pcttreśćnumber0 to 500, default 0.

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/nodes' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "Node 1",
  "location": "eu-central",
  "fqdn": "node1.example.com",
  "public_ip": "203.0.113.10",
  "memory_mb": 32768,
  "disk_mb": 409600
}'

Odpowiedź 201

JSON
{
  "data": {
    "id": "nod_5j7l9n1q3s5u7w9y",
    "name": "Node 1",
    "location": "eu-central",
    "fqdn": "node1.example.com",
    "public_ip": "203.0.113.10",
    "scheme": "https",
    "daemon_port": 8080,
    "sftp_port": 2022,
    "memory_mb": 32768,
    "memory_overalloc_pct": 0,
    "disk_mb": 409600,
    "disk_overalloc_pct": 0,
    "health": {
      "status": "pending",
      "maintenance": false,
      "wings_version": null,
      "last_seen_at": null,
      "last_checked_at": null,
      "consecutive_failures": 0,
      "last_error": null
    },
    "usage": {
      "ram_mb": 0,
      "disk_mb": 0,
      "servers": 0,
      "allocations_total": 0,
      "allocations_free": 0
    },
    "created_at": "2026-10-19T10:00:00.000Z"
  }
}
POST/nodes/{node_id}/testTest the connection to a node
  • Zakresnodes:write
  • KluczeKlucze resellera
  • Narzędzie MCPnodes_test

Contacts Wings on the node now (8 second timeout), records the result like the regular health check and returns it.

Parametry

NazwaTypOpis
node_idścieżkawymaganestringNode id (nod_...)wzorzec ^nod_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/nodes/nod_5j7l9n1q3s5u7w9y/test' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "ok": true,
    "version": "1.11.13",
    "error": null,
    "health": {
      "status": "online",
      "maintenance": false,
      "wings_version": "1.11.13",
      "last_seen_at": "2026-10-19T10:00:00.000Z",
      "last_checked_at": "2026-10-19T10:00:00.000Z",
      "consecutive_failures": 0,
      "last_error": null
    }
  }
}
POST/nodes/{node_id}/install-commandCreate a one-time install command for a node
  • Zakresnodes:write
  • KluczeKlucze resellera
  • Narzędzie MCPnodes_install_command_create

Returns the one-line command that installs and configures Wings on the node, like "Generate install command" in the admin. It contains a new single-use token valid for one hour that replaces any earlier one. SECRET: it is shown only in this response; keep it private and create a new one if it leaks or expires.

Parametry

NazwaTypOpis
node_idścieżkawymaganestringNode id (nod_...)wzorzec ^nod_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/nodes/nod_5j7l9n1q3s5u7w9y/install-command' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "command": "curl -fsSL https://reseller.enzonic.com/install/wings.sh | sudo bash -s -- --panel https://reseller.enzonic.com --node nod_5j7l9n1q3s5u7w9y --token ezd_EXAMPLEexampleEXAMPLEexampleEXAMPLEexample0000",
    "expires_at": "2026-10-19T11:00:00.000Z",
    "shown_once": true
  }
}

Strona

GET/site/pagesList storefront pages
  • Zakressite:read
  • KluczeKlucze resellera
  • Narzędzie MCPsite_pages_list

Every page of your storefront in navigation order, with draft or published status. Not paginated: a store has at most 30 pages.

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/site/pages' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "pg_6k8m0p2r4t6v8x0z",
      "title": "About",
      "slug": "about",
      "kind": "about",
      "status": "published",
      "nav_visible": true,
      "seo_title": "About Aurora Hosting",
      "seo_description": "Who we are and how we run your servers.",
      "path": "/about",
      "url": "https://aurora.enzonic.dev/about",
      "has_unpublished_changes": true,
      "updated_at": "2026-10-19T09:40:00.000Z",
      "published_at": "2026-10-12T16:00:00.000Z"
    }
  ]
}
GET/site/pages/{page_id}Get a page with its draft and published content
  • Zakressite:read
  • KluczeKlucze resellera
  • Narzędzie MCPsite_pages_get

Returns the page settings, the draft document, the live (published) document and recent revisions.

Parametry

NazwaTypOpis
page_idścieżkawymaganestringPage id (pg_...)wzorzec ^pg_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/site/pages/pg_6k8m0p2r4t6v8x0z' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "page": {
      "id": "pg_6k8m0p2r4t6v8x0z",
      "title": "About",
      "slug": "about",
      "kind": "about",
      "status": "published",
      "nav_visible": true,
      "seo_title": "About Aurora Hosting",
      "seo_description": "Who we are and how we run your servers.",
      "path": "/about",
      "url": "https://aurora.enzonic.dev/about",
      "has_unpublished_changes": true,
      "updated_at": "2026-10-19T09:40:00.000Z",
      "published_at": "2026-10-12T16:00:00.000Z"
    },
    "draft": {
      "v": 1,
      "blocks": [
        {
          "id": "b7k2m9q4x1",
          "type": "richtext",
          "data": {
            "html": "<p>We host Minecraft servers for our community.</p>"
          },
          "style": {
            "tone": "default",
            "pad": "md",
            "width": "normal",
            "align": "left",
            "anchor": ""
          }
        }
      ]
    },
    "published": {
      "v": 1,
      "blocks": [
        {
          "id": "b7k2m9q4x1",
          "type": "richtext",
          "data": {
            "html": "<p>We host Minecraft servers for our community.</p>"
          },
          "style": {
            "tone": "default",
            "pad": "md",
            "width": "normal",
            "align": "left",
            "anchor": ""
          }
        }
      ]
    },
    "revisions": [
      {
        "id": "rev_1b3d5f7h9k1m3p5r",
        "title": "About",
        "created_at": "2026-10-12T16:00:00.000Z"
      }
    ]
  }
}
PATCH/site/pages/{page_id}Update a page's draft
  • Zakressite:write
  • KluczeKlucze resellera
  • Narzędzie MCPsite_pages_update

Saves the draft only (the live site does not change until you publish). Send only the fields to change. `doc` is validated exactly like the visual editor (block types, lengths, safe links and images); errors list each problem in `details.issues`.

Parametry

NazwaTypOpis
page_idścieżkawymaganestringPage id (pg_...)wzorzec ^pg_[0-9a-z]{16}$
doctreśćanyFull page document `{ "v": 1, "blocks": [...] }`; replaces the whole draft.
titletreśćstringPage title, at most 60 characters.
slugtreśćstringCustom pages only: 1-48 lowercase letters, numbers and dashes (ignored for other pages).
nav_visibletreśćboolean
seo_titletreśćstringAt most 70 characters.
seo_descriptiontreśćstringAt most 160 characters.

Żądanie

curl
curl -X PATCH 'https://reseller.enzonic.com/api/v1/site/pages/pg_6k8m0p2r4t6v8x0z' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "About us",
  "doc": {
    "v": 1,
    "blocks": [
      {
        "id": "b7k2m9q4x1",
        "type": "richtext",
        "data": {
          "html": "<p>We host Minecraft servers for our community.</p>"
        },
        "style": {
          "tone": "default",
          "pad": "md",
          "width": "normal",
          "align": "left",
          "anchor": ""
        }
      }
    ]
  }
}'

Odpowiedź 200

JSON
{
  "data": {
    "id": "pg_6k8m0p2r4t6v8x0z",
    "title": "About us",
    "slug": "about",
    "kind": "about",
    "status": "published",
    "nav_visible": true,
    "seo_title": "About Aurora Hosting",
    "seo_description": "Who we are and how we run your servers.",
    "path": "/about",
    "url": "https://aurora.enzonic.dev/about",
    "has_unpublished_changes": true,
    "updated_at": "2026-10-19T09:40:00.000Z",
    "published_at": "2026-10-12T16:00:00.000Z"
  }
}
POST/site/pages/{page_id}/publishPublish a page to the live storefront
  • Zakressite:write
  • KluczeKlucze resellera
  • Narzędzie MCPsite_pages_publish

Makes the current draft live on your public storefront right away: every visitor sees it. The draft is validated again first and a revision is recorded (the last 10 are kept), so an earlier version can be restored in the editor.

Parametry

NazwaTypOpis
page_idścieżkawymaganestringPage id (pg_...)wzorzec ^pg_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/site/pages/pg_6k8m0p2r4t6v8x0z/publish' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "page": {
      "id": "pg_6k8m0p2r4t6v8x0z",
      "title": "About",
      "slug": "about",
      "kind": "about",
      "status": "published",
      "nav_visible": true,
      "seo_title": "About Aurora Hosting",
      "seo_description": "Who we are and how we run your servers.",
      "path": "/about",
      "url": "https://aurora.enzonic.dev/about",
      "has_unpublished_changes": false,
      "updated_at": "2026-10-19T09:40:00.000Z",
      "published_at": "2026-10-19T10:00:00.000Z"
    },
    "draft": {
      "v": 1,
      "blocks": [
        {
          "id": "b7k2m9q4x1",
          "type": "richtext",
          "data": {
            "html": "<p>We host Minecraft servers for our community.</p>"
          },
          "style": {
            "tone": "default",
            "pad": "md",
            "width": "normal",
            "align": "left",
            "anchor": ""
          }
        }
      ]
    },
    "published": {
      "v": 1,
      "blocks": [
        {
          "id": "b7k2m9q4x1",
          "type": "richtext",
          "data": {
            "html": "<p>We host Minecraft servers for our community.</p>"
          },
          "style": {
            "tone": "default",
            "pad": "md",
            "width": "normal",
            "align": "left",
            "anchor": ""
          }
        }
      ]
    },
    "revisions": [
      {
        "id": "rev_2c4e6g8j0l2n4q6s",
        "title": "About",
        "created_at": "2026-10-19T10:00:00.000Z"
      }
    ]
  }
}

Oprogramowanie

GET/softwareList the software catalogue with your store switches
  • Zakressoftware:read
  • KluczeKlucze resellera
  • Narzędzie MCPsoftware_list

Every server software the platform offers (Minecraft loaders, Discord bot runtimes, other games) and whether your store sells it. Filter with `kind` or `active`.

Parametry

NazwaTypOpis
kindzapytaniestringJeden z "minecraft", "discord_bot", "game", "voice", "runtime"
activezapytaniebooleantrue = only what your store sells

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/software' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "egg_paper",
      "slug": "paper",
      "kind": "minecraft",
      "name": "Paper",
      "display_name": null,
      "description": null,
      "loader": "paper",
      "active": true,
      "default": true,
      "on_enzonic_nodes": true,
      "enzonic_regions": [
        "Europe",
        "North America",
        "Asia"
      ],
      "sort": 10
    }
  ]
}
GET/software/{software_id}Get one software entry
  • Zakressoftware:read
  • KluczeKlucze resellera
  • Narzędzie MCPsoftware_get

Parametry

NazwaTypOpis
software_idścieżkawymaganestringSoftware id (egg_...)wzorzec ^egg_[0-9a-z_]{1,40}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/software/egg_paper' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "egg_paper",
    "slug": "paper",
    "kind": "minecraft",
    "name": "Paper",
    "display_name": null,
    "description": null,
    "loader": "paper",
    "active": true,
    "default": true,
    "on_enzonic_nodes": true,
    "enzonic_regions": [
      "Europe",
      "North America",
      "Asia"
    ],
    "sort": 10
  }
}
GET/software/{software_id}/versionsList the versions a software can install
  • Zakressoftware:read
  • KluczeKlucze resellera
  • Narzędzie MCPsoftware_versions

Game versions for Minecraft loaders, newest first, with `latest` first. Other kinds return `latest`.

Parametry

NazwaTypOpis
software_idścieżkawymaganestringSoftware id (egg_...)wzorzec ^egg_[0-9a-z_]{1,40}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/software/egg_paper/versions' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    "latest",
    "1.21.4",
    "1.21.3"
  ]
}
PATCH/software/{software_id}Turn software on or off for your store, or rename it
  • Zakressoftware:write
  • KluczeKlucze resellera
  • Narzędzie MCPsoftware_update

Same rules as Admin > Games & software. Turning software off hides it from your storefront and refuses new orders and switches to it; existing servers keep running. Send `display_name: ""` to go back to the platform name.

Parametry

NazwaTypOpis
software_idścieżkawymaganestringSoftware id (egg_...)wzorzec ^egg_[0-9a-z_]{1,40}$
activetreśćboolean
display_nametreśćstring or nullAt most 60 characters; empty clears itdo 200 znaków
descriptiontreśćstring or nullAt most 200 characters; empty clears itdo 1000 znaków
sorttreśćinteger or nullDisplay order; null = platform order

Żądanie

curl
curl -X PATCH 'https://reseller.enzonic.com/api/v1/software/egg_discord_js' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"active":true,"display_name":"Discord bot (Node.js)"}'

Odpowiedź 200

JSON
{
  "data": {
    "id": "egg_discord_js",
    "slug": "discord-js",
    "kind": "discord_bot",
    "name": "discord.js",
    "display_name": "Discord bot (Node.js)",
    "description": null,
    "loader": "nodejs",
    "active": true,
    "default": false,
    "on_enzonic_nodes": true,
    "enzonic_regions": [
      "Europe",
      "North America",
      "Asia"
    ],
    "sort": 10
  }
}

Webhooki

GET/webhooks/eventsList the events you can subscribe to
  • Zakreswebhooks:write
  • KluczeKlucze resellera
  • Narzędzie MCPwebhooks_events

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/webhooks/events' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "name": "server.created",
      "description": "A server was created (order, grant or API)."
    }
  ]
}
GET/webhooksList webhook endpoints
  • Zakreswebhooks:write
  • KluczeKlucze resellera
  • Narzędzie MCPwebhooks_list

Parametry

Brak parametrów.

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/webhooks' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "whk_6m8p0r2t4v6x8z0b",
      "url": "https://hooks.example.com/enzonic",
      "description": "Discord bot",
      "events": [
        "server.created",
        "order.paid"
      ],
      "active": true,
      "last_success_at": null,
      "last_failure_at": null,
      "created_at": "2026-10-19T10:00:00.000Z",
      "updated_at": "2026-10-19T10:00:00.000Z"
    }
  ]
}
GET/webhooks/{webhook_id}Get a webhook endpoint
  • Zakreswebhooks:write
  • KluczeKlucze resellera
  • Narzędzie MCPwebhooks_get

Parametry

NazwaTypOpis
webhook_idścieżkawymaganestringWebhook endpoint id (whk_...)wzorzec ^whk_[0-9a-z]{16}$

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/webhooks/{webhook_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "url": "string",
    "description": "string",
    "events": [
      "string"
    ],
    "active": false,
    "last_success_at": "string",
    "last_failure_at": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/webhooksCreate a webhook endpoint
  • Zakreswebhooks:write
  • KluczeKlucze resellera
  • Narzędzie MCPwebhooks_create
  • PonowieniaObsługiwany Idempotency-Key

The URL must be public https (port 443); private, loopback and Enzonic addresses are refused. The response contains the signing `secret` ONCE: store it to verify the Enzonic-Signature header. At most 10 endpoints.

Parametry

NazwaTypOpis
urltreśćwymaganestringdo 2048 znaków
eventstreśćwymaganearray of stringJeden z "server.created", "server.installed", "server.suspended", "server.unsuspended", "server.deleted", "order.paid", "subscription.cancelled", "invoice.paid", "invoice.payment_failed", "customer.created", "ticket.created", "ticket.replied", "backup.completed"co najmniej 1 elementów · do 13 elementów
descriptiontreśćstringdo 200 znaków
activetreśćboolean

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/webhooks' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "url": "https://hooks.example.com/enzonic",
  "events": [
    "server.created",
    "order.paid"
  ],
  "description": "Discord bot"
}'

Odpowiedź 201

JSON
{
  "data": {
    "id": "whk_6m8p0r2t4v6x8z0b",
    "url": "https://hooks.example.com/enzonic",
    "description": "Discord bot",
    "events": [
      "server.created",
      "order.paid"
    ],
    "active": true,
    "last_success_at": null,
    "last_failure_at": null,
    "created_at": "2026-10-19T10:00:00.000Z",
    "updated_at": "2026-10-19T10:00:00.000Z",
    "secret": "whsec_k4Xb9..."
  }
}
PATCH/webhooks/{webhook_id}Update a webhook endpoint
  • Zakreswebhooks:write
  • KluczeKlucze resellera
  • Narzędzie MCPwebhooks_update

Parametry

NazwaTypOpis
webhook_idścieżkawymaganestringWebhook endpoint id (whk_...)wzorzec ^whk_[0-9a-z]{16}$
urltreśćstringdo 2048 znaków
eventstreśćarray of stringJeden z "server.created", "server.installed", "server.suspended", "server.unsuspended", "server.deleted", "order.paid", "subscription.cancelled", "invoice.paid", "invoice.payment_failed", "customer.created", "ticket.created", "ticket.replied", "backup.completed"co najmniej 1 elementów · do 13 elementów
descriptiontreśćstringdo 200 znaków
activetreśćboolean

Żądanie

curl
curl -X PATCH 'https://reseller.enzonic.com/api/v1/webhooks/{webhook_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "url": "string",
    "description": "string",
    "events": [
      "string"
    ],
    "active": false,
    "last_success_at": "string",
    "last_failure_at": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

DEL/webhooks/{webhook_id}Delete a webhook endpoint
  • Zakreswebhooks:write
  • KluczeKlucze resellera
  • Narzędzie MCPwebhooks_delete

DestrukcyjnyTej operacji nie można cofnąć. Klienci MCP proszą o potwierdzenie przed jej wywołaniem.

Stops all deliveries to it and deletes its delivery history.

Parametry

NazwaTypOpis
webhook_idścieżkawymaganestringWebhook endpoint id (whk_...)wzorzec ^whk_[0-9a-z]{16}$

Żądanie

curl
curl -X DELETE 'https://reseller.enzonic.com/api/v1/webhooks/{webhook_id}' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "deleted": true
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/webhooks/{webhook_id}/rotate-secretReplace the signing secret
  • Zakreswebhooks:write
  • KluczeKlucze resellera
  • Narzędzie MCPwebhooks_rotate_secret

The old secret stops working immediately. The new one is returned once.

Parametry

NazwaTypOpis
webhook_idścieżkawymaganestringWebhook endpoint id (whk_...)wzorzec ^whk_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/webhooks/{webhook_id}/rotate-secret' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "url": "string",
    "description": "string",
    "events": [
      "string"
    ],
    "active": false,
    "last_success_at": "string",
    "last_failure_at": "string",
    "created_at": "string",
    "updated_at": "string",
    "secret": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/webhooks/{webhook_id}/testSend a test event now
  • Zakreswebhooks:write
  • KluczeKlucze resellera
  • Narzędzie MCPwebhooks_test

Sends a signed `ping` event right away and returns the delivery with the response it got.

Parametry

NazwaTypOpis
webhook_idścieżkawymaganestringWebhook endpoint id (whk_...)wzorzec ^whk_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/webhooks/{webhook_id}/test' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "endpoint_id": "string",
    "event": "string",
    "status": "pending",
    "attempts": 0,
    "next_attempt_at": "string",
    "last_attempt_at": "string",
    "response_status": 0,
    "response_body": "string",
    "error": "string",
    "created_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

GET/webhooks/{webhook_id}/deliveriesList recent deliveries of an endpoint
  • Zakreswebhooks:write
  • KluczeKlucze resellera
  • Narzędzie MCPwebhooks_deliveries_list

Newest first; deliveries are kept 30 days.

Parametry

NazwaTypOpis
webhook_idścieżkawymaganestringWebhook endpoint id (whk_...)wzorzec ^whk_[0-9a-z]{16}$
limitzapytanieintegerPage size, 1 to 100 (default 50).Domyślny 50min. 1 · maks. 100
cursorzapytaniestring`next_cursor` from the previous page.do 200 znaków

Żądanie

curl
curl 'https://reseller.enzonic.com/api/v1/webhooks/{webhook_id}/deliveries' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": [
    {
      "id": "string",
      "endpoint_id": "string",
      "event": "string",
      "status": "pending",
      "attempts": 0,
      "next_attempt_at": "string",
      "last_attempt_at": "string",
      "response_status": 0,
      "response_body": "string",
      "error": "string",
      "created_at": "string"
    }
  ],
  "next_cursor": null
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

POST/webhooks/{webhook_id}/deliveries/{delivery_id}/retryRetry a delivery now
  • Zakreswebhooks:write
  • KluczeKlucze resellera
  • Narzędzie MCPwebhooks_deliveries_retry

Parametry

NazwaTypOpis
webhook_idścieżkawymaganestringWebhook endpoint id (whk_...)wzorzec ^whk_[0-9a-z]{16}$
delivery_idścieżkawymaganestringDelivery id (whd_...)wzorzec ^whd_[0-9a-z]{16}$

Żądanie

curl
curl -X POST 'https://reseller.enzonic.com/api/v1/webhooks/{webhook_id}/deliveries/{delivery_id}/retry' \
  -H "Authorization: Bearer $ENZONIC_API_KEY"

Odpowiedź 200

JSON
{
  "data": {
    "id": "string",
    "endpoint_id": "string",
    "event": "string",
    "status": "pending",
    "attempts": 0,
    "next_attempt_at": "string",
    "last_attempt_at": "string",
    "response_status": 0,
    "response_body": "string",
    "error": "string",
    "created_at": "string"
  }
}

Kształt wygenerowany ze schematu; wartości są przykładowe.

Webhooki

Twój serwer dostaje podpisane żądanie POST, gdy w sklepie coś się wydarzy. Punkty końcowe zarządzasz w Admin > API & MCP albo przez punkty końcowe webhooków.

ZdarzenieKiedy
server.createdUtworzono serwer (zamówienie, przydział lub API).
server.installedSerwer zakończył instalację i można go uruchomić.
server.suspendedSerwer został zawieszony (rozliczenia, nadużycie lub Twoja decyzja).
server.unsuspendedZawieszenie serwera zostało cofnięte.
server.deletedSerwer został usunięty.
order.paidKlient opłacił zamówienie.
subscription.cancelledSubskrypcja została anulowana.
invoice.paidFaktura została opłacona.
invoice.payment_failedPłatność za fakturę się nie powiodła.
customer.createdUtworzono konto klienta.
ticket.createdKlient otworzył zgłoszenie do wsparcia.
ticket.repliedKlient odpowiedział w zgłoszeniu do wsparcia.
backup.completedKopia zapasowa się zakończyła (z powodzeniem lub nie).

Co przychodzi

Treść JSON z wydarzeniem i jego danymi oraz nagłówki Enzonic-Event, Enzonic-Delivery (identyfikator dostarczenia, stały przy ponownych próbach) i Enzonic-Signature.

JSON
{
  "id": "whd_9k2m4p6r8t0v2x4z",
  "type": "server.suspended",
  "created_at": "2026-10-19T12:00:00.000Z",
  "store": "ten_aurora0000000000",
  "data": {
    "server": {
      "id": "srv_7f3kq9m2x8c4v6b1",
      "name": "Survival SMP",
      "status": "suspended",
      "customer_id": "usr_2b4d6f8h0j2l4n6q",
      "plan_id": "pln_3c5e7g9j1l3n5p7r",
      "address": "survival.aurora.enzonic.dev"
    },
    "reason": "payment_overdue"
  }
}

Zweryfikuj podpis

Enzonic-Signature to t=<unix seconds>,v1=<hex HMAC-SHA256 z "<t>.<raw body>" podpisanym sekretem Twojego punktu końcowego>. Porównuj w stałym czasie i odrzucaj stare znaczniki czasu.

Node.js
import crypto from 'node:crypto';

// rawBody: the request body as a string, exactly as received
export function verifyEnzonic(rawBody, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  const a = Buffer.from(expected);
  const b = Buffer.from(parts.v1 ?? '');
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

Ponowienia

Odpowiedz dowolnym kodem 2xx w ciągu 10 sekund. W przeciwnym razie dostarczenie zostanie ponowione po 1 minuta, 5 minut, 30 minut, 2 godziny, 6 godzin; potem zostanie oznaczone jako nieudane i można je ponowić ręcznie. Przekierowania nie są śledzone. Nadawca obsługuje do 20 dostarczeń na minutę.

Punkty końcowe muszą być publicznymi adresami https na porcie 443. Adresy prywatne, pętli zwrotnej (loopback) i Enzonic są odrzucane, także wtedy, gdy w chwili wysyłki nazwa hosta wskazuje na jeden z nich.

MCP dla Claude i innych klientów

Te same klucze i zakresy, jako narzędzia Model Context Protocol. Claude może czytać Twój sklep i działać w nim, a przed każdą destrukcyjną czynnością pyta Cię o zgodę.

https://reseller.enzonic.com/mcp
Streamable HTTP, odpowiedzi JSON. Dostępne też na hoście sklepu pod /mcp.
  • Jedno narzędzie na każdy endpoint powyżej, nazwane od niego (servers.list staje się servers_list), z tym samym wejściem i tymi samymi sprawdzeniami. Klucz widzi tylko narzędzia, na które pozwalają jego zakresy.
  • Zasoby: enzonic://openapi.json (to API) i enzonic://store (twój sklep, klucz i jego działające zakresy).
  • Obsługiwane są wersje protokołu od 2025-03-26 do 2025-11-25 (initialize) oraz 2026-07-28 (metadane każdego żądania).
  • Wyniki narzędzi to dane sklepu i mogą zawierać tekst napisany przez Twoich klientów. Klienci powinni traktować je wyłącznie jako dane, nigdy jako instrukcje.

Claude Code

shell
claude mcp add --transport http enzonic https://reseller.enzonic.com/mcp \
  --header "Authorization: Bearer enz_live_..."

Claude Desktop

Claude Desktop uruchamia lokalne serwery MCP z pliku konfiguracyjnego. Most mcp-remote łączy go z tym serwerem HTTP i dodaje Twój klucz jako nagłówek:

claude_desktop_config.json
{
  "mcpServers": {
    "enzonic": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://reseller.enzonic.com/mcp",
        "--header",
        "Authorization:${ENZONIC_AUTH}"
      ],
      "env": {
        "ENZONIC_AUTH": "Bearer enz_live_..."
      }
    }
  }
}

Inne klienty

Działa każdy klient MCP obsługujący Streamable HTTP z własnym nagłówkiem Authorization. Typowa postać jego konfiguracji:

JSON
{
  "url": "https://reseller.enzonic.com/mcp",
  "transport": "streamable-http",
  "headers": {
    "Authorization": "Bearer enz_live_..."
  }
}

Łączniki oferujące tylko logowanie OAuth nie mogą jeszcze używać kluczy API. Użyj Claude Code lub mostu powyżej.

Wersjonowanie i lista zmian

Wersja 1.0.0. W obrębie v1 zmiany są tylko dodające: nowe punkty końcowe, nowe opcjonalne pola, nowe kody błędów i nowe zdarzenia webhooków. Ignoruj pola, których nie znasz. Zmiana powodująca niezgodność trafi jako /api/v2 i zostanie zapowiedziana co najmniej sześć miesięcy przed zmianami v1.

  1. Wydano API v1: 149 punktów końcowych, webhooki i serwer MCP.

Pytania lub brakujący endpoint? support@enzonic.com