Skip to content

Portal theme reference

This page is generated from the page contract in the panel (php spark docs:portal-themes), so it always matches what templates receive. Read the portal themes guide first.

Current contract version: 1 (set "api": 1 in theme.json).

Contract fingerprint: 750cb8e9ac3eb51f8ca09ce4c9446865c396470749b72385ed292a14f50359fd

A contract version stays supported for at least 12 months after its successor ships. Supported versions:

VersionSupported until
1open-ended

Every themed template receives these variables (on sign-in pages user and frame are null).

VariableTypeNullDescription
brandobjectnoThe brand shown to customers.
brand.namestringnoBrand name.
brand.logo_urlurlyesLogo for light backgrounds.
brand.logo_dark_urlurlyesLogo for dark backgrounds.
brand.favicon_urlurlnoFavicon.
brand.colorsmapnoTheme colours by name (CSS colour values).
brand.powered_byboolnoShow “Powered by NexoVirt”.
userobjectyesThe signed-in customer (null on sign-in pages).
user.usernamestringnoUsername.
user.emailstringnoEmail address.
flashobjectnoMessages from the previous request.
flash.messagestringyesSuccess message.
flash.successstringyesA second success message, set only when message holds another one.
flash.errorstringyesError message.
flash.warningstringyesWarning message.
flash.infostringyesInfo message.
featuresmapnoPortal features switched on for this customer (key => bool).
canmapnoActions this page allows (key => bool).
frameobjectyesNavigation and frame data (null on sign-in pages).
frame.navlistnoSidebar entries in display order, only what this customer may use.
frame.nav[].keystringnoEntry key.
frame.nav[].labelstringnoEntry label.
frame.nav[].urlurlnoLink target.
frame.nav[].activeboolnoThe current page belongs to this entry.
frame.nav[].badgeintyesUnread count (Notices), null for none.
frame.nav[].childrenlistnoSub entries (service sections), empty for none.
frame.nav[].children[].keystringnoEntry key.
frame.nav[].children[].labelstringnoEntry label.
frame.nav[].children[].urlurlnoLink target.
frame.nav[].children[].activeboolnoThe current page is this entry.
frame.impersonatingboolnoAn admin views the portal as this customer.
frame.return_to_admin_urlurlyesLink (GET) to the page where the admin returns to the admin area, null unless impersonating.
frame.balancestringyesFormatted balance, null when the shop is off.
frame.status_noticeslistnoOpen incidents and maintenance.
frame.status_notices[].titlestringnoNotice title.
frame.status_notices[].urlurlnoStatus page.
frame.status_notices[].dangerboolnoAn incident (else maintenance).
frame.customer_noticeslistnoBanners from the provider.
frame.customer_notices[].idintnoNotice id.
frame.customer_notices[].titlestringnoTitle.
frame.customer_notices[].body_htmlhtmlnoBody (already escaped HTML).
frame.customer_notices[].levelstringnoinfo, warning or danger.
frame.customer_notices[].dismissibleboolnoMay be dismissed.
frame.customer_notices[].dismiss_urlurlyesPOST here (with csrf_field()) to dismiss.
frame.footer_htmlhtmlnoFooter text set by the provider.
frame.powered_byboolnoShow “Powered by NexoVirt”.
frame.legal_linkslistnoLinks to the legal texts in use.
frame.legal_links[].labelstringnoLink text.
frame.legal_links[].urlurlnoLink target.
frame.logout_urlurlnoPOST here (with csrf_field()) to sign out.
themeobjectnoThe active theme.
theme.namestringnoTheme name.
theme.versionstringnoTheme version.
pageobjectnoThe current page.
page.keystringnoPage key.
page.titlestringnoPage title.
page.pretitlestringnoSmall text above the title.

Example:

{
"brand": {
"name": "Example Hosting",
"logo_url": null,
"logo_dark_url": null,
"favicon_url": "/favicon.svg",
"colors": {
"primary": "#206bc4"
},
"powered_by": true
},
"user": {
"username": "jdoe",
"email": "[email protected]"
},
"flash": {
"message": null,
"success": null,
"error": null,
"warning": null,
"info": null
},
"features": {
"ssh_keys": true
},
"can": [],
"frame": {
"nav": [
{
"key": "servers",
"label": "My Servers",
"url": "/portal/servers",
"active": false,
"badge": null,
"children": [
{
"key": "hosting",
"label": "My web hosting",
"url": "/portal/hosting",
"active": false
}
]
}
],
"impersonating": false,
"return_to_admin_url": null,
"balance": null,
"status_notices": [
{
"title": "Maintenance",
"url": "/portal/status",
"danger": false
}
],
"customer_notices": [
{
"id": 1,
"title": "Notice",
"body_html": "<p>Text</p>",
"level": "info",
"dismissible": true,
"dismiss_url": null
}
],
"footer_html": "",
"powered_by": true,
"legal_links": [
{
"label": "Terms",
"url": "https://example.com/terms"
}
],
"logout_url": "/logout"
},
"theme": {
"name": "My theme",
"version": "1.0.0"
},
"page": {
"key": "ssh_keys",
"title": "SSH keys",
"pretitle": "Account"
}
}
HelperWhat it does
date(value)Twig’s date function.
max(a, b, ...)Twig’s max function.
min(a, b, ...)Twig’s min function.
url(name, params)Link to a contract route (see the route list below), e.g. url(‘server’, {host: 1, type: ‘qemu’, vmid: 100}). An unknown name or a missing parameter is an error.
asset(path)URL of a file below the theme’s assets/ folder, cache-busted by its content hash, e.g. asset(‘css/site.css’).
csrf_field()The hidden CSRF input. Every form that posts needs it.
t(text)Returns the text unchanged (reserved for translations).
money(cents)Formats an amount in cents in the shop currency.
feature(key)True when the portal feature is on for this customer (same as features[key]).
can(action)True when the page allows the action (same as can[action], see each page).
parent()Inside a block of a template that extends another: the parent block’s content.

Call each with nx.<name>(). NexoVirt places the real markup after rendering.

BlockContent
nx.signin_form()Sign-in form: username or email, password, captcha, passkey button, SSO button.
nx.two_factor_form()Second step of the sign-in: one code field (authenticator or recovery code) and the passkey button.
nx.register_form()Sign-up form with the fields of the chosen account type, captcha and terms.
nx.register_confirm_form()Code field to confirm a sign-up (empty when the sign-up is confirmed by link).
nx.forgot_form()Email field to request a password reset link.
nx.reset_form()New password fields of a password reset.
nx.reinstall_form()Reinstall of a server: operating system, SSH keys, new root password, DNS resolvers, and the one-click same-OS reinstall (virtual machines). Empty when the reinstall feature is off.
nx.root_password_form()Reset of the root password of a server. Empty when the root password feature is off.
nx.setup_form()Setup of a server that waits for the customer: operating system, hostname, root password, SSH keys (with a key pair generator), DNS resolvers and swap (containers). Posts to the setup route; the server is built right after.
nx.server_create_form()Create a server from the resource pack: name, type, CPU, memory, disk, operating system or container template, root password and SSH keys, with the budget left after this server. Empty while the page has a blocker.
nx.password_form()Change of the account password: current password, new password twice. Disabled while an admin views the account.
nx.two_factor_setup()Two-factor sign-in with an authenticator app: set up (QR code and key, shown only inside the block), confirm, disable, new recovery codes (shown once).
nx.passkeys()Passkeys of the account: add (asks for the current password), remove, new recovery codes. Locked while an admin views the account.
nx.api_keys()Customer API keys: list, create (name, expiry, allowed IPs, read only, current password; the key is shown once) and revoke. Empty when the API is off for the account.
nx.vpn_devices()WireGuard devices: list with status, add a device (to the customer’s servers or SDN projects), new config, revoke. The config and its QR code are shown once inside the block.
nx.remote_password_form()
nx.ai_key()
nx.order_form()The order of a shop product: notices (sold out, balance too low, free product), game choice of a game server, operating system tiles, location, server name, root password, SSH keys, add-ons, billing (balance, automatic payment, hourly), the price summary that follows the choices, coupon, the consent checkboxes of the shop’s legal texts and the pay buttons. Posts to shop_place, or to shop_checkout for a card or PayPal payment.
nx.api_token_form()Reseller API token create form (name, allowed IPs, rate limit). The new token is shown once in NexoVirt’s dialog, never to the theme.

NexoVirt adds nexovirt-portal.js and nexovirt-portal.css to every themed portal page except the sign-in pages, also while theme scripts are off. Widgets are configured only with data-* attributes on an element with data-nx-widget="<name>"; every address must be a portal address of this panel. Widgets only read on their own; they send a change only after a click or a submit. Theme scripts can use the same functions on window.NexoPortal:

Security: a theme script runs with the signed-in customer’s session and can do anything that customer can do in the portal. Upload only scripts you wrote or trust. NexoVirt never loads theme scripts on the sign-in pages, on the pages marked “Theme JavaScript: never runs on this page” below (account security and VPN), while an admin views the portal as a customer or previews a theme, or for reseller themes. New API keys and VPN configs always need the current password.

FunctionWhat it does
get(url)GET a JSON endpoint. Resolves with the answer, rejects with {status, error}.
post(url, data)POST an object or FormData with the CSRF token. Same answer as get.
poll(url, ms, onData)Calls onData(answer) every ms (at least 2000), paused while the tab is hidden, slower after errors (up to 60 s). Returns {stop()}.
toast(msg, type), confirm(msg, opts), prompt(msg, opts)Messages and dialogs (type info, success, warning, error).
register(name, fn), mount(root)Add an own widget, set up widgets in new markup.
allowedUrl(url)The absolute address when a widget may use it, else null.

Events (bubbling, on the widget element): nx:status, nx:done, nx:error, nx:reloaded.

At most 8 live parts (polls) run on one page; a widget past that limit gets the state error and an nx:error saying the page shows too many live parts. Widgets on the same address and interval share one poll.

WidgetAttributesWhat it does
statusdata-nx-src (status URL), data-nx-interval (ms, at least 2000)Polls the server status. Sets data-nx-state on the element (running, stopped, …) and fills descendants with data-nx-field=“status”, “uptime” or “ip”. Fires nx:status with status, uptime and ip.
tabledata-nx-src (leave it out for a table filled by a form), data-nx-rows (dot path, default rows; one object counts as one row), data-nx-columns (“key:Label:type,key2:Label 2”, type datetime, bytes or badge), data-nx-row-action-N (“label|url template|confirm text”), data-nx-row-body-N (“field,post:rowfield”), data-nx-row-if-N (“field” or “!field”), data-nx-row-kind-N (post, link, fill, edit or note), data-nx-row-form-N (form selector for kinds fill and edit), data-nx-reload, data-nx-emptyLoads rows from a JSON endpoint and renders a table with class nx-table (cells are plain text; bytes as 1.5 KiB, a Unix time as a date, badge cells carry data-nx-badge with the value). Row buttons post to the URL template ({field} filled from the row, URL-encoded) with the listed row fields (post:rowfield renames one), after the confirm text if given, then reload the table and the widgets in data-nx-reload. Kind link renders a plain link instead, kind fill puts the row fields (and the action from the URL template) into the form of data-nx-row-form-N and sends it (after its confirm text, if given), kind edit does the same without sending (the form is shown and focused, the customer sends it), kind note shows the label as plain text (span.nx-row-note, for example “Locked”). data-nx-row-if-N shows the action only for rows where the field is set (or, with !, not set). Fires nx:reloaded, nx:done, nx:error.
formon a form: action, data-nx-confirm, data-nx-reload (CSS selector of widgets to reload), data-nx-reload-repeat (0 to 5 more reloads every 4 seconds), data-nx-redirect, data-nx-fill (CSS selector of table widgets)Sends the form with fetch when the customer submits it (never on its own) and shows the answer as a message. With data-nx-redirect it follows the url of the answer (portal addresses only). With data-nx-fill the answer goes to those tables instead (their data-nx-rows picks the rows; each row also gets the form fields as row.form), for listings that are a POST. data-nx-reload-repeat reloads again a few times, for work that finishes in the background (a new snapshot shows once its task is done). Fires nx:done, nx:error.
copydata-nx-copy (text)Copies the text to the clipboard on click.
powerdata-nx-src (power URL), data-nx-status (status URL), data-nx-cycle (power-cycle URL, optional), data-nx-locked=“1”; buttons inside with data-nx-power=“start|shutdown|reboot|stop|cycle” and an optional data-nx-confirmTurns the buttons on and off for the live status (running: Start off; stopped: Shutdown, Reboot, Stop and Cycle off; provisioning, locked or unknown: all off; during a transition only Stop stays on). A click (after a confirm for Stop and Cycle; the buttons are off while the confirm is open) sends the action; the element carries class nx-busy until the status changes or 2 minutes pass. Fires nx:done, nx:error.
chartsdata-nx-src (metrics URL), data-nx-metric (cpu, mem, disk or net), data-nx-interval (ms, at least 2000)Draws the last 30 minutes as a plain SVG (svg.nx-chart, viewBox 0 0 300 100, a path.nx-chart-line, for net path.nx-chart-in and path.nx-chart-out) and writes the latest value into a descendant with data-nx-field=“value” (a percentage, for net the in and out rate). Charts on the same URL share one poll. Fires nx:error.
provisioningdata-nx-src (job state URL), data-nx-status (server status URL), data-nx-done (page to open when ready), data-nx-kind (setup or reinstall, the wording of the failure message), data-nx-interval (ms, at least 2000)Follows a create or reinstall. Sets data-nx-state (active, done, failed) and fills a descendant with data-nx-field=“state”; a progress element inside gets the finished steps when the endpoint reports steps. When the job is done it waits until the server status is no longer provisioning, then opens data-nx-done (portal addresses only). On a failure it writes a short message into data-nx-field=“error” and fires nx:error; reloading the page shows the details. Fires nx:done before it opens the page.
checkoutdata-nx-src (checkout status URL), data-nx-interval (ms, at least 2000)Follows a payment on the checkout page. Sets data-nx-state to the payment status and fills a descendant with data-nx-field=“message”. When the state is final it fires nx:done and, after a completed payment, opens the next page (portal addresses only); otherwise the message stays.
consoleon a button: data-nx-src (console URL), data-nx-title (dialog title, optional)On click opens the server console in a full-screen dialog.nx-console (close button, Ctrl+Alt+Del for graphical consoles). The terminal or graphical console code is only loaded then. Fires nx:done when closed, nx:error.

Anything not listed is refused when the theme is uploaded.

  • Tags: apply, block, embed, extends, for, from, if, import, include, macro, set, with, verbatim
  • Filters: abs, batch, capitalize, column, date, default, e, escape, filter, first, format, join, json_encode, keys, last, length, lower, map, merge, nl2br, number_format, replace, reverse, round, slice, sort, split, striptags, title, trim, upper, url_encode
  • Functions: date, max, min, url, asset, csrf_field, t, money, feature, can, parent
  • Methods: only the fixed blocks on nx.

Names for url() and the form targets of the actions below.

NamePath
dashboard/portal
servers/portal/servers
server/portal/hosts/{host}/guests/{type}/{vmid}
services/portal/services
hosting/portal/hosting
games/portal/games
service/portal/services/{id}
service_auto_renew/portal/services/{id}/auto-renew
service_renew/portal/services/{id}/renew
service_plan/portal/services/{id}/plan
service_addons/portal/services/{id}/addons
service_addon_remove/portal/services/{id}/addons/{addon}/remove
service_cancel/portal/services/{id}/cancel
service_cancel_withdraw/portal/services/{id}/cancel/withdraw
service_usage_confirm/portal/services/{id}/usage-confirm
service_subscription_cancel/portal/services/{id}/subscription/cancel
service_open/portal/services/{id}/open
service_password/portal/services/{id}/password
service_game/portal/services/{id}/game
shop/portal/shop
shop_category/portal/shop/c/{slug}
shop_section/portal/shop/{section}
shop_order/portal/shop/{id}
shop_place/portal/shop/{id}/order
shop_checkout/portal/shop/{id}/checkout
balance/portal/balance
balance_topup/portal/balance/topup
checkout/portal/checkout/{id}
checkout_status/portal/checkout/{id}/status
invoice_pdf/portal/invoices/{id}/pdf
tickets/portal/tickets
ticket/portal/tickets/{number}
ticket_reply/portal/tickets/{number}/reply
ticket_close/portal/tickets/{number}/close
ticket_attachment/portal/tickets/{number}/attachments/{id}
help/portal/help
notices/portal/notices
notice_dismiss/portal/notices/{id}/dismiss
ssh_keys/portal/ssh-keys
ssh_key_delete/portal/ssh-keys/{id}/delete
status/portal/status
security/portal/security
account/portal/account
session_sign_out/portal/security/sessions/{id}/delete
sessions_others/portal/security/sessions/others
api/portal/api
vpn/portal/vpn
ips/portal/ips
ips_data/portal/ips/data
ip_assign/portal/ips/{id}/assign
ip_unassign/portal/ips/{id}/unassign
logout/logout
return_to_admin/portal/impersonation/return
login/portal/login
reseller_login/reseller/login
two_factor/login/2fa
register/register
register_inbox/register/inbox
register_resend/register/resend
forgot_password/forgot-password
server_status/portal/hosts/{host}/guests/{type}/{vmid}/status
server_metrics/portal/hosts/{host}/guests/{type}/{vmid}/metrics
server_storage/portal/hosts/{host}/guests/{type}/{vmid}/storage
server_spec/portal/hosts/{host}/guests/{type}/{vmid}/spec
server_traffic/portal/hosts/{host}/guests/{type}/{vmid}/traffic
server_power/portal/hosts/{host}/guests/{type}/{vmid}/power
server_power_cycle/portal/hosts/{host}/guests/{type}/{vmid}/power-cycle
server_hardware_pending/portal/hosts/{host}/guests/{type}/{vmid}/hardware-pending
server_console/portal/hosts/{host}/guests/{type}/{vmid}/console
server_provision_status/portal/hosts/{host}/guests/{type}/{vmid}/provision/status
server_provision_retry/portal/hosts/{host}/guests/{type}/{vmid}/provision/retry
server_app_retry/portal/hosts/{host}/guests/{type}/{vmid}/app/retry
server_setup/portal/hosts/{host}/guests/{type}/{vmid}/setup
server_reinstall_options/portal/hosts/{host}/guests/{type}/{vmid}/reinstall-options
server_reinstall_same/portal/hosts/{host}/guests/{type}/{vmid}/reinstall-same
server_reinstall/portal/hosts/{host}/guests/{type}/{vmid}/reinstall
server_password/portal/hosts/{host}/guests/{type}/{vmid}/password
server_ssh_keys/portal/hosts/{host}/guests/{type}/{vmid}/ssh-keys
server_ssh_keys_data/portal/hosts/{host}/guests/{type}/{vmid}/ssh-keys/data
server_ssh_key_remove/portal/hosts/{host}/guests/{type}/{vmid}/ssh-keys/remove
server_snapshots/portal/hosts/{host}/guests/{type}/{vmid}/snapshots/data
server_snapshot_create/portal/hosts/{host}/guests/{type}/{vmid}/snapshots/create
server_snapshot_rollback/portal/hosts/{host}/guests/{type}/{vmid}/snapshots/rollback
server_snapshot_delete/portal/hosts/{host}/guests/{type}/{vmid}/snapshots/delete
server_firewall/portal/hosts/{host}/guests/{type}/{vmid}/firewall/data
server_firewall_presets/portal/hosts/{host}/guests/{type}/{vmid}/firewall/presets
server_firewall_apply_preset/portal/hosts/{host}/guests/{type}/{vmid}/firewall/apply-preset
server_firewall_rule_add/portal/hosts/{host}/guests/{type}/{vmid}/firewall/rules
server_firewall_rule/portal/hosts/{host}/guests/{type}/{vmid}/firewall/rules/{rule}
server_firewall_rule_delete/portal/hosts/{host}/guests/{type}/{vmid}/firewall/rules/{rule}/delete
server_backups/portal/hosts/{host}/guests/{type}/{vmid}/backups
server_backup_restore/portal/hosts/{host}/guests/{type}/{vmid}/backups/{backup}/restore
server_backup_delete/portal/hosts/{host}/guests/{type}/{vmid}/backups/{backup}/delete
server_scheduled_restore/portal/hosts/{host}/guests/{type}/{vmid}/backups/scheduled/{backup}/restore
server_scheduled_files/portal/hosts/{host}/guests/{type}/{vmid}/backups/scheduled/{backup}/files
server_scheduled_download/portal/hosts/{host}/guests/{type}/{vmid}/backups/scheduled/{backup}/download
server_iso/portal/hosts/{host}/guests/{type}/{vmid}/iso
server_iso_eject/portal/hosts/{host}/guests/{type}/{vmid}/iso/eject
server_boot/portal/hosts/{host}/guests/{type}/{vmid}/boot
server_boot_order/portal/hosts/{host}/guests/{type}/{vmid}/boot/order
server_boot_firmware/portal/hosts/{host}/guests/{type}/{vmid}/boot/firmware
server_rescue/portal/hosts/{host}/guests/{type}/{vmid}/rescue
server_rescue_end/portal/hosts/{host}/guests/{type}/{vmid}/rescue/end
server_shares/portal/hosts/{host}/guests/{type}/{vmid}/shares
server_share_delete/portal/hosts/{host}/guests/{type}/{vmid}/shares/{share}/delete
server_rdns/portal/hosts/{host}/guests/{type}/{vmid}/rdns
server_forwards/portal/hosts/{host}/guests/{type}/{vmid}/forwards
server_forward_delete/portal/hosts/{host}/guests/{type}/{vmid}/forwards/{forward}/delete
server_domains/portal/hosts/{host}/guests/{type}/{vmid}/domains
server_domain_check/portal/hosts/{host}/guests/{type}/{vmid}/domains/{domain}/check
server_domain_delete/portal/hosts/{host}/guests/{type}/{vmid}/domains/{domain}/delete
server_delete/portal/hosts/{host}/guests/{type}/{vmid}/delete
server_shop_auto_renew/portal/hosts/{host}/guests/{type}/{vmid}/shop/auto-renew
server_shop_renew/portal/hosts/{host}/guests/{type}/{vmid}/shop/renew
server_shop_cancel/portal/hosts/{host}/guests/{type}/{vmid}/shop/cancel
server_shop_cancel_withdraw/portal/hosts/{host}/guests/{type}/{vmid}/shop/cancel/withdraw
server_shop_usage_confirm/portal/hosts/{host}/guests/{type}/{vmid}/shop/usage-confirm
server_shop_switch_monthly/portal/hosts/{host}/guests/{type}/{vmid}/shop/switch-monthly
server_shop_upgrade/portal/hosts/{host}/guests/{type}/{vmid}/shop/upgrade
server_shop_plan_change/portal/hosts/{host}/guests/{type}/{vmid}/shop/plan-change
server_shop_plan_change_cancel/portal/hosts/{host}/guests/{type}/{vmid}/shop/plan-change/cancel
server_shop_delete/portal/hosts/{host}/guests/{type}/{vmid}/shop/delete
server_shop_extras/portal/hosts/{host}/guests/{type}/{vmid}/shop/extras
server_shop_extra_remove/portal/hosts/{host}/guests/{type}/{vmid}/shop/extras/{extra}/remove
server_shop_checkout/portal/hosts/{host}/guests/{type}/{vmid}/shop/checkout
server_shop_subscription_cancel/portal/hosts/{host}/guests/{type}/{vmid}/shop/subscription/cancel
share_leave/portal/shares/{share}/leave
share_accept/portal/shares/accept/{token}
servers_new/portal/servers/new
servers_create/portal/servers/create
reseller_dashboard/reseller
reseller_customers/reseller/customers
reseller_customer_create/reseller/customers/create
reseller_customer_update/reseller/customers/{id}/update
reseller_customer_reset_password/reseller/customers/{id}/reset-password
reseller_customer_delete/reseller/customers/{id}/delete
reseller_customer_portal/reseller/customers/{id}/portal
reseller_customer_ssh_keys/reseller/customers/{id}/ssh-keys
reseller_customer_ssh_key_delete/reseller/customers/{id}/ssh-keys/{key}/delete
reseller_groups/reseller/customers/groups
reseller_group_new/reseller/customers/groups/new
reseller_group_default/reseller/customers/groups/{id}/default
reseller_group_delete/reseller/customers/groups/{id}/delete
reseller_guests/reseller/guests
reseller_guest/reseller/guests/{host}/{type}/{vmid}
reseller_guests_data/reseller/guests/data
reseller_guest_owners/reseller/guests/owners
reseller_guest_new/reseller/guests/new
reseller_guest_status/reseller/guests/{host}/{type}/{vmid}/status
reseller_guest_metrics/reseller/guests/{host}/{type}/{vmid}/metrics
reseller_guest_spec/reseller/guests/{host}/{type}/{vmid}/spec
reseller_guest_console/reseller/guests/{host}/{type}/{vmid}/console
reseller_guest_power/reseller/guests/{host}/{type}/{vmid}/power
reseller_guest_password/reseller/guests/{host}/{type}/{vmid}/password
reseller_guest_reinstall_options/reseller/guests/{host}/{type}/{vmid}/reinstall-options
reseller_guest_reinstall_same/reseller/guests/{host}/{type}/{vmid}/reinstall-same
reseller_guest_reinstall/reseller/guests/{host}/{type}/{vmid}/reinstall
reseller_guest_limits/reseller/guests/{host}/{type}/{vmid}/limits
reseller_guest_ip/reseller/guests/{host}/{type}/{vmid}/ip
reseller_guest_notes/reseller/guests/{host}/{type}/{vmid}/notes
reseller_guest_delete/reseller/guests/{host}/{type}/{vmid}/delete
reseller_guest_migrate_options/reseller/guests/{host}/{type}/{vmid}/migrate/options
reseller_guest_migrate/reseller/guests/{host}/{type}/{vmid}/migrate
reseller_guest_snapshots/reseller/guests/{host}/{type}/{vmid}/snapshots/data
reseller_guest_snapshot_create/reseller/guests/{host}/{type}/{vmid}/snapshots/create
reseller_guest_snapshot_rollback/reseller/guests/{host}/{type}/{vmid}/snapshots/rollback
reseller_guest_snapshot_delete/reseller/guests/{host}/{type}/{vmid}/snapshots/delete
reseller_guest_firewall/reseller/guests/{host}/{type}/{vmid}/firewall/data
reseller_guest_firewall_presets/reseller/guests/{host}/{type}/{vmid}/firewall/presets
reseller_guest_firewall_apply_preset/reseller/guests/{host}/{type}/{vmid}/firewall/apply-preset
reseller_guest_firewall_rule_add/reseller/guests/{host}/{type}/{vmid}/firewall/rules
reseller_guest_firewall_rule/reseller/guests/{host}/{type}/{vmid}/firewall/rules/{rule}
reseller_guest_firewall_rule_delete/reseller/guests/{host}/{type}/{vmid}/firewall/rules/{rule}/delete
reseller_guest_provision_retry/reseller/guests/{host}/{type}/{vmid}/provision/retry
reseller_products/reseller/products
reseller_plans/reseller/plans
reseller_categories/reseller/products/categories
reseller_plans_data/reseller/plans/data
reseller_plan_new/reseller/plans/new
reseller_product_new/reseller/products/new
reseller_plan_shop/reseller/plans/{id}/shop
reseller_plan_delete/reseller/plans/{id}/delete
reseller_plan_restore/reseller/plans/{id}/restore
reseller_extra_delete/reseller/plans/extras/{id}/delete
reseller_category_new/reseller/products/categories/new
reseller_category_edit/reseller/products/categories/{id}/edit
reseller_category_delete/reseller/products/categories/{id}/delete
reseller_ip_pools/reseller/ip-pools
reseller_ip_pool_data/reseller/ip-pools/{id}/data
reseller_api_tokens/reseller/api-tokens
reseller_api_token_revoke/reseller/api-tokens/{id}/revoke
reseller_tickets/reseller/support/tickets
reseller_ticket/reseller/support/tickets/{id}
reseller_faq/reseller/support/faq
reseller_orders/reseller/orders
reseller_order/reseller/orders/{id}
reseller_notices/reseller/notices
reseller_tickets_data/reseller/support/tickets/data
reseller_ticket_reply/reseller/support/tickets/{id}/reply
reseller_ticket_status/reseller/support/tickets/{id}/status
reseller_ticket_attachment/reseller/support/tickets/{id}/attachments/{aid}
reseller_topic_save/reseller/support/topics
reseller_topic_delete/reseller/support/topics/{id}/delete
reseller_faq_save/reseller/support/faq
reseller_faq_delete/reseller/support/faq/{id}/delete
reseller_orders_data/reseller/orders/data
reseller_order_provision/reseller/orders/{id}/provision
reseller_order_reject/reseller/orders/{id}/reject
reseller_notice_new/reseller/notices/new
reseller_notice_edit/reseller/notices/{id}
reseller_notice_delete/reseller/notices/{id}/delete
reseller_security/reseller/security
reseller_session_sign_out/reseller/security/sessions/{id}/delete
reseller_sessions_others/reseller/security/sessions/others
reseller_branding/reseller/branding
reseller_legal/reseller/legal
reseller_themes/reseller/themes

These editors are not themable in this contract version: they always use the NexoVirt design, also while a theme is active. Link to them from your templates as usual.

PageAreaPath
Product formreseller portal/reseller/products/new
Size template formreseller portal/reseller/plans/new
Category formreseller portal/reseller/products/categories/new
Create serverreseller portal/reseller/guests/new
Customer group formreseller portal/reseller/customers/groups/new
Notice formreseller portal/reseller/notices/new
Brandingreseller portal/reseller/branding
Legal textsreseller portal/reseller/legal
Themesreseller portal/reseller/themes

Reference of the customer API. A key is created on the security page (nx.api_keys()) and sent as “Authorization: Bearer <key>”. Answers are {“success”, “data”, “error”}; status codes 401 (bad key), 403 (feature off, address or read-only key), 404 (not your server), 409 (locked or busy), 422 (refused), 429 (rate limit).

  • Title: Customer API
  • Area: customer portal
  • Template: templates/api.twig (api.twig)
  • URL: /portal/api
VariableTypeNullDescription
base_urlurlnoBase URL of the API (no trailing slash).
rate_limitintnoRequests per minute and key.
endpointslistnoEndpoints, path relative to base_url.
endpoints[].methodstringnoGET or POST.
endpoints[].pathstringnoPath below base_url.
endpoints[].descstringnoWhat it does.
endpoints[].rolestringnoShare role a shared server needs: view or manage.
{
"base_url": "https://panel.example.com/api/portal/v1",
"rate_limit": 60,
"endpoints": [
{
"method": "GET",
"path": "servers",
"desc": "Your servers.",
"role": "view"
}
]
}

Asks for the account email. Place {{ nx.forgot_form() }} exactly once.

  • Title: Forgot password
  • Area: customer portal
  • Template: templates/auth/forgot_password.twig (auth/forgot_password.twig)
  • URL: /forgot-password
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.forgot_form()
VariableTypeNullDescription
titlestringnoPage title.
login_urlurlnoSign-in page.
{
"title": "Forgot password",
"login_url": "/portal/login"
}

The customer sign-in page. Place {{ nx.signin_form() }} exactly once: it holds the fields, CSRF, captcha and the passkey button.

  • Title: Sign in
  • Area: customer portal
  • Template: templates/auth/login.twig (auth/login.twig)
  • URL: /portal/login
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.signin_form()
VariableTypeNullDescription
noticestringyesA notice for this visit (e.g. “Please sign in here.” after a move from another domain), null for none.
ssoobjectnoSingle sign-on.
sso.onboolnoSSO sign-in is offered.
sso.enforcedboolnoOnly SSO: the sign-in block then shows just the SSO button.
sso.urlurlyesLink (GET) that starts the SSO sign-in, null when off.
register_urlurlyesSign-up page, null when sign-up is off.
forgot_urlurlnoForgot-password page.
{
"notice": null,
"sso": {
"on": false,
"enforced": false,
"url": null
},
"register_url": null,
"forgot_url": "/forgot-password"
}

The sign-up page. Place {{ nx.register_form() }} exactly once: it holds the fields, account types, terms and captcha.

  • Title: Create an account
  • Area: customer portal
  • Template: templates/auth/register.twig (auth/register.twig)
  • URL: /register
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.register_form()
VariableTypeNullDescription
fieldsmapnoProfile fields of the picked account type: name => off, optional or required.
groupslistnoAccount types to choose from (empty when there is no choice).
groups[].idintnoAccount type id.
groups[].labelstringnoLabel.
groups[].urlurlnoThe sign-up page for this type.
groups[].activeboolnoThe type shown now.
login_urlurlnoSign-in page.
{
"fields": {
"name": "required"
},
"groups": [
{
"id": 1,
"label": "Company",
"url": "/register?type=1",
"active": true
}
],
"login_url": "/portal/login"
}

The page behind the sign-up email link. Place {{ nx.register_confirm_form() }} exactly once (the sign-up password).

  • Title: Confirm your email
  • Area: customer portal
  • Template: templates/auth/register_confirm.twig (auth/register_confirm.twig)
  • URL: none (opened from a link in an email)
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.register_confirm_form()
VariableTypeNullDescription
titlestringnoPage title.
{
"title": "Confirm your email"
}

Shown after the email is confirmed while the account still waits for approval.

  • Title: Email confirmed
  • Area: customer portal
  • Template: templates/auth/register_done.twig (auth/register_done.twig)
  • URL: none (opened from a link in an email)
  • Theme JavaScript: never runs on this page
VariableTypeNullDescription
titlestringnoPage title.
login_urlurlnoSign-in page.
{
"title": "Email confirmed",
"login_url": "/portal/login"
}

Shown after a sign-up. Place {{ nx.register_confirm_form() }} exactly once: the code field with code confirmation, empty with link confirmation.

  • Title: Check your inbox
  • Area: customer portal
  • Template: templates/auth/register_inbox.twig (auth/register_inbox.twig)
  • URL: /register/inbox
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.register_confirm_form()
VariableTypeNullDescription
titlestringnoPage title.
verifystringnolink (the email holds a link) or code (a 6-digit code, valid 30 minutes).
resend_urlurlnoPOST here (with csrf_field()) to send the email again.
login_urlurlnoSign-in page.
ActionMethodTargetFieldsErrors
resendPOST/register/resendnonenone
{
"title": "Check your inbox",
"verify": "link",
"resend_url": "/register/resend",
"login_url": "/portal/login"
}

The page behind the reset email link. Place {{ nx.reset_form() }} exactly once.

  • Title: Choose a new password
  • Area: customer portal
  • Template: templates/auth/reset_password.twig (auth/reset_password.twig)
  • URL: none (opened from a link in an email)
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.reset_form()
VariableTypeNullDescription
titlestringnoPage title.
{
"title": "Choose a new password"
}

The second sign-in step. Place {{ nx.two_factor_form() }} exactly once.

  • Title: Two-factor authentication
  • Area: customer portal
  • Template: templates/auth/two_factor.twig (auth/two_factor.twig)
  • URL: /login/2fa
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.two_factor_form()
VariableTypeNullDescription
show_codeboolnoThe account uses an authenticator app (else only a recovery code or a passkey).
show_passkeyboolnoThe account has a passkey (the block shows its button when the browser supports it).
{
"show_code": true,
"show_passkey": false
}

The customer’s balance, how to top it up and the invoices (PDF).

  • Title: Balance
  • Area: customer portal
  • Template: templates/balance.twig (balance.twig)
  • URL: /portal/balance
VariableTypeNullDescription
balancemoneynoCurrent balance (formatted).
topupobjectnoTop-up limits.
topup.minstringnoMinimum amount as a decimal for the form (min attribute).
topup.maxstringnoMaximum amount as a decimal for the form (max attribute).
topup.min_labelmoneynoMinimum, formatted.
topup.max_labelmoneynoMaximum, formatted.
gatewayslistnoPayment providers; empty = no top-up form.
gateways[].keystringnoValue of the gateway field.
gateways[].labelstringnoProvider name.
invoiceslistnoInvoices, newest first (last 100).
invoices[].numberstringnoInvoice number.
invoices[].datedatetimeyesIssue date.
invoices[].totalmoneynoGross total (formatted).
invoices[].pdf_urlurlnoDownload link (GET).
ActionMethodTargetFieldsErrors
topupPOST/portal/balance/topupamount: Amount as a decimal. gateway: A gateway key from gateways.The minimum top-up is X.
{
"balance": "10.00 EUR",
"topup": {
"min": "5.00",
"max": "500.00",
"min_label": "5.00 EUR",
"max_label": "500.00 EUR"
},
"gateways": [
{
"key": "stripe",
"label": "Stripe"
}
],
"invoices": [
{
"number": "INV-0001",
"date": "2026-11-10 10:00:00",
"total": "9.90 EUR",
"pdf_url": "/portal/invoices/1/pdf"
}
]
}

Where the payment page sends the customer back. While the payment is being confirmed, put the checkout widget on it: it updates the message and opens next_url when the payment went through.

  • Title: Payment
  • Area: customer portal
  • Template: templates/checkout.twig (checkout.twig)
  • URL: /portal/checkout/{id}
  • Widgets: checkout
VariableTypeNullDescription
statusstringnoopen, paid (being set up), completed, failed, expired or canceled.
messagestringnoWhat happened, for the customer.
amountmoneynoAmount of this payment (formatted).
gatewaystringnoName of the payment provider.
doneboolnoThe state is final (no longer open or being set up).
next_urlurlyesPage to open after a completed payment (the server, the balance), null otherwise.
status_urlurlnoStatus endpoint (data-nx-src of the checkout widget).
{
"status": "open",
"message": "Waiting for the payment to be confirmed.",
"amount": "20.00 EUR",
"gateway": "Stripe",
"done": false,
"next_url": null,
"status_url": "/portal/checkout/7/status"
}

The customer’s start page: counters, the next payment, recent activity, provider news and a short server list.

  • Title: Dashboard
  • Area: customer portal
  • Template: templates/dashboard.twig (dashboard.twig)
  • URL: /portal
VariableTypeNullDescription
serverslistnoThe first 5 servers.
servers[].namestringnoServer name.
servers[].urlurlnoThe server page.
servers[].statusstringnorunning, stopped, provisioning, suspended …
servers[].vmidintnoServer id.
servers[].ipstringnoMain IP address, “Internal network (no public IP)” for servers without a public IP, empty when unknown.
servers[].osobjectnoOperating system.
servers[].os.namestringnoOS name.
servers[].os.logo_urlurlyesOS logo, null when none.
servers[].coresintnovCPU cores.
servers[].memory_mbintnoMemory in MB.
servers[].disk_gbintnoBoot disk size in GB.
servers[].nodestringyesNode name, null unless the provider shows node names.
servers[].sharedboolnoShared with the customer by another customer.
servers[].share_rolestringyesmanage or view for shared servers, null for own ones.
servers[].expires_atdatetimeyesPaid until (shop servers), else null.
servers[].days_leftintyesDays until the paid date (shop servers), else null.
server_totalintnoNumber of servers (own and shared).
runningintnoRunning servers plus active services.
servers_runningintnoRunning servers only (own and shared, no services).
next_dueobjectyesThe next paid date of a shop server, null when none or the shop is off.
next_due.namestringnoServer name.
next_due.datedatetimenoPaid until.
next_due.amountmoneyyesRenewal price, null when the server is cancelled.
due_within_14_daysmoneyyesRenewals due in the next 14 days, null without paid servers.
balancemoneyyesAccount balance, null when the shop is off.
open_ticketsintyesOpen support tickets, null when tickets are off.
activitylistnoRecent events, newest first.
activity[].textstringnoWhat happened.
activity[].atdatetimenoWhen.
activity[].urlurlyesLink, null when none.
status_newslistnoProvider announcements (status page).
status_news[].titlestringnoTitle.
status_news[].atdatetimenoStart.
nodeslistnoPublic node status (status page), empty when off.
nodes[].namestringnoPublic node name.
nodes[].statestringnooperational, maintenance or outage.
notestringnoNote from the provider to this customer, empty when none.
pending_orderslistnoOrders waiting for the provider to set them up.
pending_orders[].productstringnoProduct name.
pending_orders[].created_atdatetimenoWhen the order was placed.
notificationslistnoNotifications of the last 30 days, newest first.
notifications[].titlestringnoTitle.
notifications[].atdatetimenoWhen.
notifications[].urlurlyesLink, null when none.
notifications[].unreadboolnoNot read yet.
packobjectyesThe customer’s resource pack, null when none.
pack.namestringnoPack name.
pack.remainingobjectnoWhat is still free in the pack.
pack.remaining.coresintnoFree vCPU cores.
pack.remaining.memory_mbintnoFree memory in MB.
pack.remaining.disk_gbintnoFree disk in GB.
KeyTrue when
create_serverThe customer has a resource pack and may create servers.
orderThe shop is open.
{
"servers": [
{
"name": "web",
"url": "/portal/hosts/1/guests/qemu/100",
"status": "running",
"vmid": 100,
"ip": "192.0.2.10",
"os": {
"name": "Debian",
"logo_url": null
},
"cores": 2,
"memory_mb": 2048,
"disk_gb": 20,
"node": null,
"shared": false,
"share_role": null,
"expires_at": null,
"days_left": null
}
],
"server_total": 2,
"running": 1,
"servers_running": 1,
"next_due": {
"name": "web",
"date": "2026-11-10 10:00:00",
"amount": null
},
"due_within_14_days": null,
"balance": null,
"open_tickets": null,
"activity": [
{
"text": "web: Started",
"at": "2026-11-10 10:00:00",
"url": null
}
],
"status_news": [
{
"title": "Network maintenance",
"at": "2026-11-10 10:00:00"
}
],
"nodes": [
{
"name": "Frankfurt 1",
"state": "operational"
}
],
"note": "",
"pending_orders": [
{
"product": "VPS S",
"created_at": "2026-11-10 10:00:00"
}
],
"notifications": [
{
"title": "Support answered",
"at": "2026-11-10 10:00:00",
"url": null,
"unread": true
}
],
"pack": {
"name": "Starter pack",
"remaining": {
"cores": 4,
"memory_mb": 4096,
"disk_gb": 80
}
}
}

The provider’s published questions and answers.

  • Title: FAQ
  • Area: customer portal
  • Template: templates/help.twig (help.twig)
  • URL: /portal/help
VariableTypeNullDescription
entrieslistnoPublished entries in the provider’s order.
entries[].questionstringnoQuestion.
entries[].answer_htmlhtmlnoAnswer, escaped, line breaks kept.
entries[].topicstringyesGroup name, null (entries have no topic yet).
tickets_onboolnoSupport tickets are on (show a link to open one).
{
"entries": [
{
"question": "How do I reset my password?",
"answer_html": "Use the server page.",
"topic": null
}
],
"tickets_on": true
}

Addresses the provider granted the customer. Show data_url with the table widget; Assign (row action of kind fill into a form with a “server” select) posts to ip_assign_url_template, Unassign to ip_unassign_url_template. A changed address applies after the server restarts.

  • Title: IP addresses
  • Area: customer portal
  • Template: templates/ips.twig (ips.twig)
  • URL: /portal/ips
  • Widgets: table, form
VariableTypeNullDescription
data_urlurlnoGET: the addresses (see the endpoint “list”).
ip_assign_url_templatestringnoAssign URL, {id} = the address id (POST field server = a servers value).
ip_unassign_url_templatestringnoUnassign URL, {id} = the address id.
serverslistnoThe customer’s servers to assign to.
servers[].labelstringnoServer name.
servers[].valuestringnoValue for the POST field server.
ActionMethodTargetFieldsErrors
assignPOST/portal/ips/{id}/assign (JSON)server: A servers value.Not found. This server runs on an internal network only and cannot get extra addresses.
unassignPOST/portal/ips/{id}/unassign (JSON)noneNot found.

JSON endpoints for widgets and theme scripts.

GET /portal/ips/data: The customer’s addresses (query: page, perPage, search, status=free|assigned).

VariableTypeNullDescription
rowslistnoAddresses.
rows[].idintnoAddress id.
rows[].ipstringnoAddress.
rows[].familystringnoipv4 or ipv6.
rows[].zone_namestringnoPool name.
rows[].cidrstringnoNetwork of the pool.
rows[].statusstringnofree (yours, not on a server) or assigned.
rows[].guest_namestringyesServer it is on.
totalintnoMatching rows.
{
"data_url": "/portal/ips/data",
"ip_assign_url_template": "/portal/ips/{id}/assign",
"ip_unassign_url_template": "/portal/ips/{id}/unassign",
"servers": [
{
"label": "web",
"value": "1:qemu:100"
}
]
}

Messages from the provider: active ones first, then those that ended in the last 30 days.

  • Title: Notices
  • Area: customer portal
  • Template: templates/notices.twig (notices.twig)
  • URL: /portal/notices
VariableTypeNullDescription
noticeslistnoNotices for this customer.
notices[].idintnoNotice id.
notices[].titlestringnoTitle.
notices[].body_htmlhtmlnoText (safe HTML built by NexoVirt).
notices[].levelstringnoinfo, warning or danger.
notices[].statestringnoactive or ended.
notices[].starts_atdatetimeyesStart.
notices[].ends_atdatetimeyesEnd, null when open.
notices[].readboolnoThe customer has seen it before this visit.
notices[].dismiss_urlurlyesPOST here (csrf_field()) to hide the banner; null when it cannot be dismissed.
{
"notices": [
{
"id": 1,
"title": "Maintenance",
"body_html": "<p>Tonight</p>",
"level": "info",
"state": "active",
"starts_at": "2026-11-10 10:00:00",
"ends_at": null,
"read": true,
"dismiss_url": null
}
]
}

Bearer tokens for the reseller API (/api/reseller). Place nx.api_token_form() for creating one (the token is shown once by NexoVirt); revoke with a plain POST.

  • Title: API tokens
  • Area: reseller portal
  • Template: templates/reseller/api_tokens.twig (reseller/api_tokens.twig)
  • URL: /reseller/api-tokens
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.api_token_form()
VariableTypeNullDescription
tokenslistnoTokens, newest first (revoked ones too).
tokens[].idintnoToken id.
tokens[].namestringnoName.
tokens[].activeboolnofalse once revoked.
tokens[].allowed_ipsstringnoAllowed IPs or networks, one per line; empty = any.
tokens[].rate_limitintyesRequests per minute, null = no limit.
tokens[].created_atdatetimenoCreated.
tokens[].last_used_atdatetimeyesLast request, null = never.
tokens[].revoke_urlurlnoPOST here (with csrf_field()) to revoke it.
ActionMethodTargetFieldsErrors
revokePOST/reseller/api-tokens/{id}/revokenonenone
{
"tokens": [
{
"id": 5,
"name": "terraform",
"active": true,
"allowed_ips": "",
"rate_limit": null,
"created_at": "2026-11-01 10:00:00",
"last_used_at": null,
"revoke_url": "/reseller/api-tokens/5/revoke"
}
]
}

The reseller sign-in page. Place {{ nx.signin_form() }} exactly once.

  • Title: Sign in
  • Area: reseller portal
  • Template: templates/reseller/auth/login.twig (reseller/auth/login.twig)
  • URL: /reseller/login
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.signin_form()
VariableTypeNullDescription
noticestringyesA notice for this visit (e.g. “Please sign in here.” after a move from another domain), null for none.
ssoobjectnoSingle sign-on.
sso.onboolnoSSO sign-in is offered.
sso.enforcedboolnoOnly SSO: the sign-in block then shows just the SSO button.
sso.urlurlyesLink (GET) that starts the SSO sign-in, null when off.
register_urlurlyesSign-up page, null when sign-up is off.
forgot_urlurlnoForgot-password page.
{
"notice": null,
"sso": {
"on": false,
"enforced": false,
"url": null
},
"register_url": null,
"forgot_url": "/forgot-password"
}

The second sign-in step of a reseller. Place {{ nx.two_factor_form() }} exactly once.

  • Title: Two-factor authentication
  • Area: reseller portal
  • Template: templates/reseller/auth/two_factor.twig (reseller/auth/two_factor.twig)
  • URL: /login/2fa
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.two_factor_form()
VariableTypeNullDescription
show_codeboolnoThe account uses an authenticator app (else only a recovery code or a passkey).
show_passkeyboolnoThe account has a passkey (the block shows its button when the browser supports it).
{
"show_code": true,
"show_passkey": false
}

Shop categories of the reseller’s products, by sort order. Creating and editing a category opens NexoVirt’s form; deleting keeps its products (they show under “Other”).

  • Title: Categories
  • Area: reseller portal
  • Template: templates/reseller/categories.twig (reseller/categories.twig)
  • URL: /reseller/products/categories
VariableTypeNullDescription
categorieslistnoCategories.
categories[].idintnoCategory id.
categories[].namestringnoName.
categories[].slugstringnoShop address part.
categories[].productsintnoProducts in it.
categories[].visibleboolnoShown in the shop.
categories[].edit_urlurlnoThe category form (NexoVirt design).
categories[].delete_urlurlnoPOST here (with csrf_field()) to delete the category.
new_urlurlnoForm for a new category (NexoVirt design).
ActionMethodTargetFieldsErrors
deletePOST/reseller/products/categories/{id}/deletenonenone
{
"categories": [
{
"id": 2,
"name": "VPS",
"slug": "vps",
"products": 3,
"visible": true,
"edit_url": "/reseller/products/categories/2/edit",
"delete_url": "/reseller/products/categories/2/delete"
}
],
"new_url": "/reseller/products/categories/new"
}

The reseller’s own customer groups: members, the default group, delete. Creating and editing a group opens NexoVirt’s group form.

  • Title: Customer groups
  • Area: reseller portal
  • Template: templates/reseller/customers/groups.twig (reseller/customers/groups.twig)
  • URL: /reseller/customers/groups
VariableTypeNullDescription
groupslistnoGroups, the default first, then by name.
groups[].idintnoGroup id.
groups[].namestringnoGroup name.
groups[].descriptionstringnoDescription, may be empty.
groups[].membersintnoCustomers in the group.
groups[].defaultboolnoNew customers join this group.
groups[].edit_urlurlnoThe group form (always in the NexoVirt design).
groups[].default_urlurlnoPOST here (with csrf_field()) to make it the default group.
groups[].delete_urlurlnoPOST here (with csrf_field()) to delete the group; its customers move to the default group. The default group cannot be deleted.
new_urlurlnoThe form for a new group (always in the NexoVirt design).
ActionMethodTargetFieldsErrors
defaultPOST/reseller/customers/groups/{id}/defaultnonenone
deletePOST/reseller/customers/groups/{id}/deletenonenone
{
"groups": [
{
"id": 3,
"name": "Gold",
"description": "",
"members": 4,
"default": false,
"edit_url": "/reseller/customers/groups/3",
"default_url": "/reseller/customers/groups/3/default",
"delete_url": "/reseller/customers/groups/3/delete"
}
],
"new_url": "/reseller/customers/groups/new"
}

The reseller’s customers: add, edit, reset the password, delete, and links to each customer’s portal features and SSH keys. A new password is never in the page data: NexoVirt shows it once on its own page.

  • Title: Customers
  • Area: reseller portal
  • Template: templates/reseller/customers/index.twig (reseller/customers/index.twig)
  • URL: /reseller/customers
VariableTypeNullDescription
customerslistnoThe reseller’s customers (filtered by group_filter).
customers[].idintnoCustomer id.
customers[].namestringnoUsername.
customers[].emailstringnoEmail address.
customers[].activeboolnoThe account may sign in.
customers[].groupstringyesName of the customer’s group, null without one.
customers[].serversintnoServers.
customers[].coresintnovCPU cores.
customers[].memory_mbintnoMemory in MB.
customers[].disk_gbintnoDisk in GB.
customers[].url_portalurlnoThe customer’s portal features page.
customers[].url_ssh_keysurlnoThe customer’s SSH keys page.
customers[].url_groupurlnoThe customer’s group and overrides (always in the NexoVirt design).
groupslistnoThe reseller’s customer groups, for the filter.
groups[].idintnoGroup id.
groups[].namestringnoGroup name.
group_filterintnoGroup id the list is filtered by (GET group=<id>), 0 = all.
ActionMethodTargetFieldsErrors
createPOST/reseller/customers/createusername: Username. email: Email address.A username and a valid email are required. A user with this email already exists. A user with this username already exists.
updatePOST/reseller/customers/{id}/updateusername: Username. email: Email address. is_active: 1 = may sign in (leave out to disable).A username and a valid email are required.
reset_passwordPOST/reseller/customers/{id}/reset-passwordnonenone
deletePOST/reseller/customers/{id}/deletenoneDelete or reassign this customer’s servers first.
{
"customers": [
{
"id": 7,
"name": "jdoe",
"email": "[email protected]",
"active": true,
"group": "Gold",
"servers": 2,
"cores": 4,
"memory_mb": 4096,
"disk_gb": 40,
"url_portal": "/reseller/customers/7/portal",
"url_ssh_keys": "/reseller/customers/7/ssh-keys",
"url_group": "/reseller/customers/7/group"
}
],
"groups": [
{
"id": 3,
"name": "Gold"
}
],
"group_filter": 0
}

What one customer may do in the portal: per feature inherit (the group or global setting), on or off.

  • Title: Portal features
  • Area: reseller portal
  • Template: templates/reseller/customers/portal.twig (reseller/customers/portal.twig)
  • URL: /reseller/customers/{id}/portal
VariableTypeNullDescription
customerobjectnoThe customer.
customer.idintnoCustomer id.
customer.namestringnoUsername.
customer.emailstringnoEmail address.
portal_featureslistnoEvery portal feature with the customer’s choice.
portal_features[].keystringnoFeature key; post it as feature_<key>.
portal_features[].labelstringnoFeature name.
portal_features[].helpstringnoWhat the feature does.
portal_features[].valuestringnoCurrent choice: inherit, on or off.
portal_features[].inheritedboolnoWhat inherit gives (on = true).
portal_features[].inherited_fromstringnoWhere inherit comes from: group or global.
save_urlurlnoPOST the form here (with csrf_field()).
ActionMethodTargetFieldsErrors
savePOST/reseller/customers/{id}/portalfeature_<key>: inherit, on or off, one per feature.none
{
"customer": {
"id": 7,
"name": "jdoe",
"email": "[email protected]"
},
"portal_features": [
{
"key": "console",
"label": "Console",
"help": "Open the server console in the browser.",
"value": "inherit",
"inherited": true,
"inherited_from": "global"
}
],
"save_url": "/reseller/customers/7/portal"
}

A customer’s stored SSH public keys, put on servers at create and reinstall.

  • Title: SSH keys
  • Area: reseller portal
  • Template: templates/reseller/customers/ssh_keys.twig (reseller/customers/ssh_keys.twig)
  • URL: /reseller/customers/{id}/ssh-keys
VariableTypeNullDescription
customerobjectnoThe customer.
customer.idintnoCustomer id.
customer.namestringnoUsername.
customer.emailstringnoEmail address.
keyslistnoStored keys, oldest first.
keys[].idintnoKey id.
keys[].namestringnoName of the key.
keys[].fingerprintstringnoSHA256 fingerprint.
keys[].created_atdatetimeyesWhen the key was added.
keys[].delete_urlurlnoPOST here (with csrf_field()) to delete the key.
add_urlurlnoPOST a new key here (with csrf_field()).
ActionMethodTargetFieldsErrors
addPOST/reseller/customers/{id}/ssh-keysname: Key name (optional). public_key: The OpenSSH public key.Invalid public key. Key already added.
deletePOST/reseller/customers/{id}/ssh-keys/{key}/deletenonenone
{
"customer": {
"id": 7,
"name": "jdoe",
"email": "[email protected]"
},
"keys": [
{
"id": 1,
"name": "laptop",
"fingerprint": "SHA256:Zm9vYmFy",
"created_at": "2026-11-10 10:00:00",
"delete_url": "/reseller/customers/7/ssh-keys/1/delete"
}
],
"add_url": "/reseller/customers/7/ssh-keys"
}

The reseller’s start page: resources used by all own customers, the limits of the reseller plan and a list of customers.

  • Title: Dashboard
  • Area: reseller portal
  • Template: templates/reseller/dashboard.twig (reseller/dashboard.twig)
  • URL: /reseller
VariableTypeNullDescription
usageobjectnoResources of all servers of the reseller’s customers.
usage.customersintnoCustomers.
usage.serversintnoServers.
usage.coresintnovCPU cores.
usage.memory_mbintnoMemory in MB.
usage.disk_gbintnoDisk in GB.
usage.ipsintnoIP addresses assigned to these servers.
limitsobjectyesLimits of the reseller plan, null without a plan.
limits.customersintyesCustomers. Null = no limit.
limits.serversintyesServers. Null = no limit.
limits.coresintyesvCPU cores. Null = no limit.
limits.memory_mbintyesMemory in MB. Null = no limit.
limits.disk_gbintyesDisk in GB. Null = no limit.
limits.ipsintyesIP addresses (always null: reseller plans have no IP limit yet). Null = no limit.
customerslistnoThe reseller’s customers with their resources.
customers[].idintnoCustomer id.
customers[].namestringnoUsername.
customers[].emailstringnoEmail address.
customers[].activeboolnoThe account may sign in.
customers[].serversintnoServers.
customers[].coresintnovCPU cores.
customers[].memory_mbintnoMemory in MB.
customers[].disk_gbintnoDisk in GB.
customers[].urlurlnoThe customer’s portal settings page.
{
"usage": {
"customers": 3,
"servers": 5,
"cores": 12,
"memory_mb": 16384,
"disk_gb": 200,
"ips": 5
},
"limits": {
"customers": null,
"servers": null,
"cores": null,
"memory_mb": null,
"disk_gb": null,
"ips": null
},
"customers": [
{
"id": 7,
"name": "jdoe",
"email": "[email protected]",
"active": true,
"servers": 2,
"cores": 4,
"memory_mb": 4096,
"disk_gb": 40,
"url": "/reseller/customers/7/portal"
}
]
}

The servers of the reseller’s customers. Rows come from endpoint servers (use the table widget); link a row with server_url_template.

  • Title: Servers
  • Area: reseller portal
  • Template: templates/reseller/guests/index.twig (reseller/guests/index.twig)
  • URL: /reseller/guests
  • Widgets: table
VariableTypeNullDescription
data_urlurlnoGET: the servers as table rows (endpoint servers). Query: search, page, perPage, sort, dir, status, type, owner.
owners_urlurlnoGET ?q=: own customers matching q, for an owner filter ([{value, label}], max 20).
new_urlurlnoThe create server wizard (always shown in the NexoVirt design).
server_url_templatestringnoServer page of a row ({host_id}, {type}, {vmid} = row fields).

JSON endpoints for widgets and theme scripts.

GET /reseller/guests/data: Servers of the reseller’s customers (DB only).

VariableTypeNullDescription
rowslistnoRows.
rows[].host_idintnoConnection id (part of the server URL).
rows[].typestringnoqemu or lxc.
rows[].vmidintnoServer id.
rows[].namestringnoServer name.
rows[].statusstringnorunning, stopped, provisioning …
rows[].nodestringnoNode name.
rows[].ipstringnoMain IP, empty when unknown.
rows[].owner_namestringnoCustomer.
rows[].maxcpuintnovCPU cores.
rows[].maxmemintnoMemory in bytes.
rows[].maxdiskintnoBoot disk in bytes.
totalintnoRow count.
pageintnoPage.
perPageintnoRows per page.
{
"data_url": "/reseller/guests/data",
"owners_url": "/reseller/guests/owners",
"new_url": "/reseller/guests/new",
"server_url_template": "/reseller/guests/{host_id}/{type}/{vmid}"
}

One server of a customer: status, power, charts, console, limits and plan, IP addresses, notes, snapshots, firewall, delete. nx.reinstall_form() and nx.root_password_form() place the reinstall and root password forms (root password: containers only, else an empty element). Migrate needs theme JS (endpoints migrate_options and migrate) and is not part of the starter.

  • Title: Server
  • Area: reseller portal
  • Template: templates/reseller/guests/show.twig (reseller/guests/show.twig)
  • URL: /reseller/guests/{host}/{type}/{vmid}
  • Optional blocks (at most once): nx.reinstall_form(), nx.root_password_form()
  • Widgets: status, power, charts, console, table, form
VariableTypeNullDescription
serverobjectnoThe server.
server.namestringnoServer name.
server.vmidintnoServer id.
server.typestringnoqemu (virtual machine) or lxc (container).
server.statusstringnorunning, stopped, provisioning, suspended …
server.uptimestringnoReadable uptime, empty when stopped.
server.ipstringnoMain IP address, “Internal network (no public IP)” for servers without a public IP, “Waiting for IP assignment” while none is known.
server.internal_networkboolnoThe server has no public IP (internal network product).
server.osobjectnoOperating system.
server.os.namestringnoOS name.
server.os.logo_urlurlyesOS logo, null when none.
server.specsobjectnoAllocated resources (from the last inventory).
server.specs.coresintnovCPU cores, 0 when unknown.
server.specs.memory_mbintnoMemory in MB, 0 when unknown.
server.specs.disk_gbintnoBoot disk size in GB, 0 when unknown.
server.nodestringyesNode name, null unless the provider shows node names.
server.sharedboolnoShared with the customer by another customer.
server.share_rolestringyesmanage or view for shared servers, null for own ones.
server.shared_bystringyesEmail of the customer who shared the server, null for own ones.
server.provider_note_htmlhtmlyesNote from the provider, null when none.
server.lockobjectyesSet while the provider has locked the server (actions are refused), else null.
server.lock.reasonstringnoReason, empty when none.
server.lock.sincedatetimeyesLocked since, null when unknown.
server.eolobjectyesEnd-of-life notice of the operating system, null when none.
server.eol.statestringnowarning (end of life is coming), eol (reached) or hidden (no longer offered for new servers).
server.eol.datedatetimeyesEnd-of-life date, null when not given.
server.eol.messagestringnoReadable notice.
server.appobjectyesOne-click app installed on the server, null when none.
server.app.namestringnoApp name.
server.app.statestringnoinstalling, installed, failed or needs_attention.
server.app.notes_htmlhtmlyesPost-install notes, null when none.
server.app.retry_urlurlyesPOST here to retry a failed install, null when not offered.
server.urlsmapnoEndpoints of this server on the reseller routes, by name: status, metrics, spec, console, power, password (containers), reinstall_options, reinstall_same, reinstall, limits, ip (with IP zones), notes, delete, migrate_options, migrate, snapshots (with a snapshot limit), firewall.
ownerobjectnoThe customer who owns the server.
owner.idintnoCustomer id.
owner.emailstringnoEmail address.
planobjectyesThe plan the server runs on, null for custom limits.
plan.idintnoPlan id.
plan.namestringnoPlan name.
planslistnoPlans the reseller can put the server on (post plan_id to limits).
plans[].idintnoPlan id.
plans[].namestringnoPlan name.
ipamobjectnoIP addresses from the reseller’s IP pools.
ipam.zoneslistnoPools the server can take an address from (POST action=change, zone_id, empty ip = next free address).
ipam.zones[].idintnoPool id.
ipam.zones[].namestringnoPool name.
ipam.currentstringyesMain pool address of the server, null when none.
ipam.entrieslistnoPool addresses of the server (change: action=change, zone_id, ip = one of free; release: action=release, zone_id).
ipam.entries[].ipstringnoAddress.
ipam.entries[].familystringnoipv4 or ipv6.
ipam.entries[].zone_idintnoPool id.
ipam.entries[].zone_namestringnoPool name.
ipam.entries[].freelistnoFree addresses of the pool (strings, at most 50); empty for a pool that is not assigned to the reseller.
notesobjectnoProvider note on the server (the customer sees it read-only).
notes.providerstringyesCurrent note, null when none.
notes.save_urlurlnoPOST operator_note. JSON {ok, message, error}.
trafficobjectyesTraffic this month, null when the traffic feature is off.
traffic.periodstringnoMonth (YYYY-MM).
traffic.used_bytesintnoCounted bytes (in + out when there is no limit).
traffic.limit_bytesintyesMonthly limit, null for unlimited.
traffic.percentintyesUsed share of the limit, null for unlimited.
traffic.statestringnook, throttled, suspended or limit_reached.
snapshotsobjectyesSnapshots pane (endpoint snapshots), null when snapshots are off for the customer or the limit is 0.
snapshots.data_urlurlnoGET: the snapshots as table rows (endpoint snapshots). Reads the server live, use it lazily.
snapshots.create_urlurlnoPOST name, description, include_ram (1, virtual machines). JSON {ok, error}.
snapshots.rollback_urlurlnoPOST snapname. JSON {ok, error}. The server goes back to that state.
snapshots.delete_urlurlnoPOST snapname. JSON {ok, error}.
snapshots.limitintnoSnapshots the server may keep.
snapshots.ramboolnoSnapshots can include the RAM (virtual machines).
firewallobjectyesFirewall pane (endpoints firewall, firewall_presets), null when the firewall is off for the customer.
firewall.data_urlurlnoGET: the rules as table rows (endpoint firewall).
firewall.presets_urlurlnoGET: presets the customer can apply (endpoint firewall_presets).
firewall.apply_preset_urlurlnoPOST preset_id. JSON {success, error}.
firewall.add_urlurlnoPOST direction (in, out), action (ACCEPT, DROP, REJECT), enabled (1), proto, dport, sport, source, dest, comment. JSON {success, error}.
firewall.rule_url_templatestringnoPOST the same fields here ({id} = rows[].id) to change a rule (not rows[].locked).
firewall.delete_url_templatestringnoPOST here ({id} = rows[].id) to delete a rule (not rows[].locked).
build_failedobjectyesSet when creating the server failed, else null.
build_failed.refundedboolnoThe order was refunded: no Try again.
build_failed.retry_urlurlnoPOST here (with csrf_field()) to try again.
KeyTrue when
powerStart, stop and reboot.
consoleOpen the console.
reinstallReinstall the OS.
root_passwordReset the root password (containers).
snapshotsSnapshots (snapshot limit above 0).
firewallFirewall rules.
limitsChange limits and plan.
ipChange IP addresses (with IP pools).
notesEdit the provider note.
migrateMove the server to another of the reseller’s nodes.
deleteDelete the server.
ActionMethodTargetFieldsErrors
limitsPOST/reseller/guests/{host}/{type}/{vmid}/limitsplan_id: plans[].id, 0 for custom. cores: vCPU cores. memory_mb: Memory in MB. port_speed_mbit: Port speed, empty = none.That plan is not available to you.
ipPOST/reseller/guests/{host}/{type}/{vmid}/ip (JSON)action: change or release. zone_id: ipam.zones[].id or ipam.entries[].zone_id. ip: New address (change), empty = next free.IP not available in this zone.
notesPOST/reseller/guests/{host}/{type}/{vmid}/notes (JSON)operator_note: The note.none
deletePOST/reseller/guests/{host}/{type}/{vmid}/deletenonenone
retryPOST/reseller/guests/{host}/{type}/{vmid}/provision/retrynonenone
migratePOST/reseller/guests/{host}/{type}/{vmid}/migrate (JSON)target_host_id: Target connection from migrate_options. target_node: Target node from migrate_options. mode: From migrate_options.none
snapshot_createPOST/reseller/guests/{host}/{type}/{vmid}/snapshots/create (JSON)name: Snapshot name. description: Optional. include_ram: 1 to keep the RAM (virtual machines).none
snapshot_rollbackPOST/reseller/guests/{host}/{type}/{vmid}/snapshots/rollback (JSON)snapname: rows[].name of endpoint snapshots.none
snapshot_deletePOST/reseller/guests/{host}/{type}/{vmid}/snapshots/delete (JSON)snapname: rows[].name of endpoint snapshots.none
firewall_apply_presetPOST/reseller/guests/{host}/{type}/{vmid}/firewall/apply-preset (JSON)preset_id: presets[].id of endpoint firewall_presets.none
firewall_rule_addPOST/reseller/guests/{host}/{type}/{vmid}/firewall/rules (JSON)direction: in or out. action: ACCEPT, DROP or REJECT.none
firewall_rule_updatePOST/reseller/guests/{host}/{type}/{vmid}/firewall/rules/{rule} (JSON)direction: in or out. action: ACCEPT, DROP or REJECT.none
firewall_rule_deletePOST/reseller/guests/{host}/{type}/{vmid}/firewall/rules/{rule}/delete (JSON)nonenone

JSON endpoints for widgets and theme scripts.

GET /reseller/guests/{host}/{type}/{vmid}/status: Power status (DB only, poll it).

VariableTypeNullDescription
okboolnoRead worked.
statusstringnorunning, stopped, rebooting …
uptimeintnoSeconds.
ipstringnoMain IP, empty when unknown.

GET /reseller/guests/{host}/{type}/{vmid}/metrics: Samples of the last 30 minutes.

VariableTypeNullDescription
okboolnoRead worked.
pointslistnoSamples, oldest first.
points[].tstringnoSample time.
points[].cpufloatnoCPU share 0..1.
points[].memintnoMemory used (bytes).
points[].maxmemintnoMemory total (bytes).
points[].diskintnoDisk used (bytes).
points[].maxdiskintnoDisk total (bytes).
points[].netinintnoBytes received (counter).
points[].netoutintnoBytes sent (counter).

GET /reseller/guests/{host}/{type}/{vmid}/spec: Exact allocation from the stored config.

VariableTypeNullDescription
okboolnoRead worked.
specmapnoname, cores, memoryMb, disk, osLabel …

GET /reseller/guests/{host}/{type}/{vmid}/snapshots/data: Snapshots, newest first (read live from the server).

VariableTypeNullDescription
rowslistnoRows.
rows[].namestringnoSnapshot name.
rows[].descriptionstringnoDescription.
rows[].snaptimeintnoUnix time it was taken.
rows[].parentstringnoPrevious snapshot.
rows[].vmstateintno1 when the RAM is included.
totalintnoRow count.
pageintnoPage.
perPageintnoRows per page.
errorstringyesWhy the read failed (only then).

GET /reseller/guests/{host}/{type}/{vmid}/firewall/data: Firewall rules in order.

VariableTypeNullDescription
rowslistnoRows.
rows[].idintnoRule id.
rows[].directionstringnoin or out.
rows[].actionstringnoACCEPT, DROP or REJECT.
rows[].protostringnoProtocol, empty = any.
rows[].dportstringnoDestination port.
rows[].sportstringnoSource port.
rows[].sourcestringnoSource address.
rows[].deststringnoDestination address.
rows[].commentstringnoComment.
rows[].enabledintno1 when active.
rows[].lockedboolnoSet by the provider (cannot be changed).
totalintnoRow count.
pageintnoPage.
perPageintnoRows per page.
errorstringyesWhy the read failed (only then).

GET /reseller/guests/{host}/{type}/{vmid}/firewall/presets: Rule presets the customer can apply.

VariableTypeNullDescription
okboolnoRead worked.
presetslistnoPresets.
presets[].idintnoPreset id.
presets[].namestringnoName.
presets[].descriptionstringnoDescription.
{
"server": {
"name": "web",
"vmid": 100,
"type": "qemu",
"status": "running",
"uptime": "2d 3h",
"ip": "192.0.2.10",
"internal_network": false,
"os": {
"name": "Debian",
"logo_url": null
},
"specs": {
"cores": 2,
"memory_mb": 2048,
"disk_gb": 20
},
"node": null,
"shared": false,
"share_role": null,
"shared_by": null,
"provider_note_html": null,
"lock": {
"reason": "Abuse report",
"since": null
},
"eol": {
"state": "warning",
"date": null,
"message": "Debian 10 reaches end of life on 2026-12-01. Reinstall with a newer version."
},
"app": {
"name": "WordPress",
"state": "installed",
"notes_html": null,
"retry_url": null
},
"urls": []
},
"owner": {
"id": 7,
"email": "[email protected]"
},
"plan": {
"id": 3,
"name": "VPS S"
},
"plans": [
{
"id": 3,
"name": "VPS S"
}
],
"ipam": {
"zones": [
{
"id": 2,
"name": "Public v4"
}
],
"current": null,
"entries": [
{
"ip": "192.0.2.10",
"family": "ipv4",
"zone_id": 2,
"zone_name": "Public v4",
"free": [
"192.0.2.11"
]
}
]
},
"notes": {
"provider": null,
"save_url": "/reseller/guests/1/qemu/100"
},
"traffic": {
"period": "2026-11",
"used_bytes": 1073741824,
"limit_bytes": null,
"percent": null,
"state": "ok"
},
"snapshots": {
"data_url": "/portal/hosts/1/guests/qemu/100",
"create_url": "/portal/hosts/1/guests/qemu/100",
"rollback_url": "/portal/hosts/1/guests/qemu/100",
"delete_url": "/portal/hosts/1/guests/qemu/100",
"limit": 2,
"ram": true
},
"firewall": {
"data_url": "/portal/hosts/1/guests/qemu/100",
"presets_url": "/portal/hosts/1/guests/qemu/100",
"apply_preset_url": "/portal/hosts/1/guests/qemu/100",
"add_url": "/portal/hosts/1/guests/qemu/100",
"rule_url_template": "/portal/hosts/1/guests/qemu/100/firewall/rules/{id}",
"delete_url_template": "/portal/hosts/1/guests/qemu/100/firewall/rules/{id}/delete"
},
"build_failed": {
"refunded": false,
"retry_url": "/reseller/guests/1/qemu/100"
}
}

IP pools the provider assigned to the reseller (read only). Show a zone’s data_url with the table widget. Routed IPv6 prefix pools (family ipv6_prefix) have no address list.

  • Title: IP pools
  • Area: reseller portal
  • Template: templates/reseller/ip_pools.twig (reseller/ip_pools.twig)
  • URL: /reseller/ip-pools
  • Widgets: table
VariableTypeNullDescription
zoneslistnoAssigned pools.
zones[].idintnoPool id.
zones[].namestringnoName.
zones[].familystringnoipv4, ipv6 or ipv6_prefix.
zones[].cidrstringnoNetwork.
zones[].usedintnoAddresses assigned or reserved.
zones[].totalintnoAddresses in the pool.
zones[].data_urlurlyesGET: the addresses (endpoint addresses), null for a prefix pool.

JSON endpoints for widgets and theme scripts.

GET /reseller/ip-pools/{id}/data: Addresses of one pool (query: search, page, perPage, status=free|assigned|reserved).

VariableTypeNullDescription
rowslistnoAddresses.
rows[].idintnoAddress id.
rows[].ipstringnoAddress.
rows[].statusstringnofree, assigned or reserved.
rows[].guest_typestringyesqemu or lxc of the server using it, null when free or used outside the account.
rows[].vmidintyesServer id, null as above.
rows[].notestringyesNote; “Used outside your account” for other tenants.
rows[].host_namestringnoNode or cluster name, empty as above.
totalintnoRow count.
pageintnoPage.
perPageintnoRows per page.
{
"zones": [
{
"id": 3,
"name": "Public IPv4",
"family": "ipv4",
"cidr": "203.0.113.0/24",
"used": 12,
"total": 254,
"data_url": "/reseller/ip-pools/3/data"
}
]
}

Notices of the reseller, newest first. Each shows as a banner on every portal page of its customers while it runs. Creating and editing a notice opens NexoVirt’s form.

  • Title: Notices
  • Area: reseller portal
  • Template: templates/reseller/notices.twig (reseller/notices.twig)
  • URL: /reseller/notices
VariableTypeNullDescription
noticeslistnoNotices.
notices[].idintnoNotice id.
notices[].titlestringnoTitle.
notices[].levelstringnoinfo, warning or danger.
notices[].statestringnoscheduled, active or ended.
notices[].reachintnoCustomers it reaches.
notices[].dismissibleboolnoCustomers can hide the banner.
notices[].starts_atdatetimeyesStart.
notices[].ends_atdatetimeyesEnd, null when open.
notices[].edit_urlurlnoThe notice form (NexoVirt design).
notices[].delete_urlurlnoPOST here (csrf_field()) to delete it; customers stop seeing it at once.
new_urlurlnoForm for a new notice (NexoVirt design).
ActionMethodTargetFieldsErrors
deletePOST/reseller/notices/{id}/deletenonenone
{
"notices": [
{
"id": 3,
"title": "Maintenance tonight",
"level": "warning",
"state": "active",
"reach": 12,
"dismissible": true,
"starts_at": "2026-11-10 20:00:00",
"ends_at": null,
"edit_url": "/reseller/notices/3",
"delete_url": "/reseller/notices/3/delete"
}
],
"new_url": "/reseller/notices/new"
}

Orders of the reseller’s products that are set up by hand, newest first (endpoint orders, use the table widget). They are paid; the paid time starts when the server is handed over.

  • Title: Orders
  • Area: reseller portal
  • Template: templates/reseller/orders/index.twig (reseller/orders/index.twig)
  • URL: /reseller/orders
  • Widgets: table
VariableTypeNullDescription
data_urlurlnoGET: the orders as table rows (endpoint orders). Query: search, page, perPage, sort, dir, status.
order_url_templatestringnoOrder page of a row ({id} = row field).

JSON endpoints for widgets and theme scripts.

GET /reseller/orders/data: Orders of the reseller’s products (DB only).

VariableTypeNullDescription
rowslistnoRows.
rows[].idintnoOrder id (part of the order URL).
rows[].created_atdatetimenoOrdered.
rows[].customerstringnoCustomer email.
rows[].planstringnoProduct.
rows[].namestringnoServer name the customer gave.
rows[].amountmoneynoPaid.
rows[].statusstringnopending (waiting), done (handed over) or rejected.
totalintnoRow count.
pageintnoPage.
perPageintnoRows per page.
{
"data_url": "/reseller/orders/data",
"order_url_template": "/reseller/orders/{id}"
}

One order. While it waits: create the server (pick a node and storage and a network from the lists) or reject it (the full amount goes back to the customer’s balance).

  • Title: Order
  • Area: reseller portal
  • Template: templates/reseller/orders/show.twig (reseller/orders/show.twig)
  • URL: /reseller/orders/{id}
VariableTypeNullDescription
orderobjectnoThe order.
order.idintnoOrder id.
order.productstringnoProduct name.
order.customer_emailstringnoCustomer email (user name when there is none).
order.statusstringnopending, done or rejected.
order.created_atdatetimeyesOrdered.
order.amountmoneyyesPaid.
order.typestringnoqemu, lxc or service.
order.server_namestringnoServer name the customer gave, empty when none.
order.addonslistnoAdd-ons, e.g. “2 x Extra IPv4”.
order.errorstringyesWhy the last attempt failed, null when none.
order.reject_reasonstringyesReason given at rejection, null when none.
order.server_urlurlyesThe created server, null until handed over.
targetslistnoValues of the target field (node and storage), only while pending.
targets[].valuestringnoField value.
targets[].labelstringnoLabel.
networkslistnoValues of the network field (IP zone or DHCP bridge), only while pending.
networks[].valuestringnoField value.
networks[].labelstringnoLabel.
provision_urlurlyesPOST here (csrf_field()) with target and network to create the server; null when not pending.
reject_urlurlyesPOST here (csrf_field()) with an optional reason to reject and refund; null when not pending.
ActionMethodTargetFieldsErrors
provisionPOST/reseller/orders/{id}/provisiontarget: A targets value. network: A networks value.Choose the node, storage and network from the lists.
rejectPOST/reseller/orders/{id}/rejectreason: Reason for the customer (optional, up to 500 characters).none
{
"order": {
"id": 12,
"product": "VPS S",
"customer_email": "[email protected]",
"status": "pending",
"created_at": "2026-11-10 10:00:00",
"amount": "9.90 EUR",
"type": "lxc",
"server_name": "web",
"addons": [],
"error": null,
"reject_reason": null,
"server_url": null
},
"targets": [
{
"value": "1|pve1|local-lvm",
"label": "pve1: local-lvm (120 GB free)"
}
],
"networks": [
{
"value": "1|pve1|local-lvm",
"label": "pve1: local-lvm (120 GB free)"
}
],
"provision_url": "/reseller/orders/12/provision",
"reject_url": "/reseller/orders/12/reject"
}

The reseller’s products (role product, with a price, sold to its customers) or size templates (role template, sizes for the create form). Show data_url with the table widget; Edit and New open NexoVirt’s form (always in the NexoVirt design). Shop switch, delete and restore answer JSON to the widget ({success, message} or {success: false, error}); a used plan is archived instead of deleted.

  • Title: Products
  • Area: reseller portal
  • Template: templates/reseller/products.twig (reseller/products.twig)
  • URL: /reseller/products
  • Widgets: table, form
VariableTypeNullDescription
rolestringnoproduct or template.
data_urlurlnoGET: the rows of this role (endpoint plans). Query: search, page, perPage, sort, dir.
new_urlurlnoForm for a new product or size template (NexoVirt design).
edit_url_templatestringnoForm of one row, {id} = row id (NexoVirt design).
shop_switch_url_templatestringnoPOST on=1|0: show it in the shop or hide it ({id}). Products only.
delete_url_templatestringnoPOST: delete, or archive while servers or services use it ({id}).
restore_url_templatestringnoPOST: restore an archived row ({id}).
extraslistnoAdd-ons sold with the products (role product, shop licensed), else empty.
extras[].idintnoAdd-on id.
extras[].namestringnoName.
extras[].kindstringnoipv4, ipv6, ipv6_prefix, disk_gb, backup_slots …
extras[].pricemoneynoPrice per period (formatted).
extras[].delete_urlurlnoPOST here (with csrf_field()) to delete the add-on; refused while servers use it.
ActionMethodTargetFieldsErrors
shop_switchPOST/reseller/plans/{id}/shop (JSON)on: 1 to show it in the shop, 0 to hide it.Product not found.
deletePOST/reseller/plans/{id}/delete (JSON)noneNot found. Open orders wait for this one. Accept or reject them under Shop > Orders first.
restorePOST/reseller/plans/{id}/restore (JSON)noneNot found.
extra_deletePOST/reseller/plans/extras/{id}/deletenoneServers use this extra. Turn it off to stop selling it.

JSON endpoints for widgets and theme scripts.

GET /reseller/plans/data: The reseller’s own plans (query role=product|template).

VariableTypeNullDescription
rowslistnoRows.
rows[].idintnoPlan id.
rows[].namestringnoName.
rows[].coresintnovCPU cores.
rows[].memory_mbintnoMemory in MB.
rows[].disk_gbintnoDisk in GB.
rows[].traffic_limit_gbintnoMonthly traffic in GB, 0 = no limit.
rows[].runtime_daysintnoBilling period in days.
rows[].is_activeintno1 = active.
rows[].price_centsintyesPrice in cents, null for a size template.
rows[].pricestringnoFormatted price, “(hidden)” when not in the shop; empty for a size template.
rows[].shop_visibleintno1 = in the shop.
rows[].shop_nextstringnoValue for on to flip the shop switch (“1” or “0”).
rows[].archivedboolnoArchived (restore it to sell it again).
totalintnoRow count.
pageintnoPage.
perPageintnoRows per page.
{
"role": "product",
"data_url": "/reseller/plans/data?role=product",
"new_url": "/reseller/products/new",
"edit_url_template": "/reseller/products/{id}/edit",
"shop_switch_url_template": "/reseller/plans/{id}/shop",
"delete_url_template": "/reseller/plans/{id}/delete",
"restore_url_template": "/reseller/plans/{id}/restore",
"extras": [
{
"id": 4,
"name": "Extra disk",
"kind": "disk_gb",
"price": "1.00 EUR",
"delete_url": "/reseller/plans/extras/4/delete"
}
]
}

The reseller’s own sign-in security. nx.password_form() and nx.two_factor_setup() are required (when the provider requires two-factor sign-in, a new reseller lands here first); nx.passkeys() is optional. Theme scripts never run on this page.

  • Title: Security
  • Area: reseller portal
  • Template: templates/reseller/security.twig (reseller/security.twig)
  • URL: /reseller/security
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.password_form(), nx.two_factor_setup()
  • Optional blocks (at most once): nx.passkeys()
VariableTypeNullDescription
sessionslistnoActive sessions, most recent first.
sessions[].idintnoSession id.
sessions[].currentboolnoThis browser.
sessions[].ipstringnoIP address.
sessions[].agentstringnoBrowser and system.
sessions[].last_seendatetimenoLast activity.
sessions[].sign_out_urlurlyesPOST here (with csrf_field()) to end that session; null for this browser.
sign_out_others_urlurlnoPOST here (with csrf_field()) to end every other session.
sign_inslistnoRecent sign-ins, newest first.
sign_ins[].atdatetimenoTime.
sign_ins[].ipstringnoIP address.
sign_ins[].locationstringyesLocation when known.
sign_ins[].okboolnoSigned in (false = failed or refused).
two_factorobjectnoTwo-factor state.
two_factor.enabledboolnoAn authenticator app is set up.
two_factor.requiredboolnoThe provider requires a second factor for this account.
passkeys_onboolnoPasskeys can be used here (https).
ActionMethodTargetFieldsErrors
sign_outPOST/reseller/security/sessions/{id}/deletenonenone
sign_out_othersPOST/reseller/security/sessions/othersnonenone
{
"sessions": [
{
"id": 1,
"current": true,
"ip": "198.51.100.7",
"agent": "Firefox on Linux",
"last_seen": "2026-11-10 10:00:00",
"sign_out_url": "/reseller/security/sessions/2/delete"
}
],
"sign_out_others_url": "/reseller/security/sessions/others",
"sign_ins": [
{
"at": "2026-11-10 10:00:00",
"ip": "198.51.100.7",
"location": null,
"ok": true
}
],
"two_factor": {
"enabled": false,
"required": false
},
"passkeys_on": true
}

FAQ entries shown to the reseller’s customers on their Help page, in this order. Plain text, line breaks kept.

  • Title: FAQ
  • Area: reseller portal
  • Template: templates/reseller/support/faq.twig (reseller/support/faq.twig)
  • URL: /reseller/support/faq
VariableTypeNullDescription
entrieslistnoEntries, by order.
entries[].idintnoEntry id (field id when saving).
entries[].questionstringnoQuestion.
entries[].answerstringnoAnswer as plain text (for the edit form).
entries[].answer_htmlhtmlnoAnswer, escaped, line breaks kept.
entries[].sortintnoOrder.
entries[].publishedboolnoShown to customers.
entries[].delete_urlurlnoPOST here (csrf_field()) to delete the entry.
save_urlurlnoPOST here (csrf_field()) to add (id 0) or change an entry.
ActionMethodTargetFieldsErrors
savePOST/reseller/support/faqid: 0 = new entry, else the entry id. question: Question (up to 255 characters). answer: Answer (plain text, up to 10000 characters). sort: Order (0 to 9999). published: 1 = shown to customers.none
deletePOST/reseller/support/faq/{id}/deletenonenone
{
"entries": [
{
"id": 1,
"question": "How do I reset my password?",
"answer": "Open Security.",
"answer_html": "Open Security.",
"sort": 0,
"published": true,
"delete_url": "/reseller/support/faq/1/delete"
}
],
"save_url": "/reseller/support/faq"
}

One support ticket of a customer: its messages, the answer form and the status. The customer also gets each answer by email.

  • Title: Ticket
  • Area: reseller portal
  • Template: templates/reseller/support/ticket.twig (reseller/support/ticket.twig)
  • URL: /reseller/support/tickets/{id}
VariableTypeNullDescription
ticketobjectnoThe ticket.
ticket.idintnoTicket id.
ticket.numberintnoTicket number.
ticket.subjectstringnoSubject.
ticket.statusstringnoopen (waiting for you), answered or closed.
ticket.customer_emailstringnoCustomer email (user name when there is none, empty when deleted).
ticket.created_atdatetimeyesOpened.
ticket.topicstringyesTopic name, null when none.
ticket.server_urlurlyesThe server page the ticket is about, null when none or gone.
messageslistnoMessages, oldest first.
messages[].fromstringnocustomer or staff (you).
messages[].namestringnoAuthor name.
messages[].body_htmlhtmlnoMessage text, escaped, line breaks kept.
messages[].atdatetimeyesSent.
messages[].attachmentslistnoFiles of the message.
messages[].attachments[].namestringnoFile name.
messages[].attachments[].sizeintnoBytes.
messages[].attachments[].urlurlnoDownload link (GET); add ?inline=1 to show an image.
reply_urlurlnoPOST here (csrf_field(), multipart) to answer.
status_urlurlnoPOST here (csrf_field()) with status to change it.
statuseslistnoValues of the status field.
ActionMethodTargetFieldsErrors
replyPOST/reseller/support/tickets/{id}/reply (multipart)body: Message (plain text). attachments[]: Files, optional.none
statusPOST/reseller/support/tickets/{id}/statusstatus: open, answered or closed.none
{
"ticket": {
"id": 4,
"number": 482913,
"subject": "Help",
"status": "open",
"customer_email": "[email protected]",
"created_at": "2026-11-10 10:00:00",
"topic": null,
"server_url": null
},
"messages": [
{
"from": "customer",
"name": "jdoe",
"body_html": "Hello",
"at": "2026-11-10 10:00:00",
"attachments": [
{
"name": "log.txt",
"size": 1024,
"url": "/reseller/support/tickets/4/attachments/1"
}
]
}
],
"reply_url": "/reseller/support/tickets/4/reply",
"status_url": "/reseller/support/tickets/4/status",
"statuses": [
"open",
"answered",
"closed"
]
}

Support tickets of the reseller’s customers, open first (endpoint tickets, use the table widget), and the topics customers pick from.

  • Title: Tickets
  • Area: reseller portal
  • Template: templates/reseller/support/tickets.twig (reseller/support/tickets.twig)
  • URL: /reseller/support/tickets
  • Widgets: table
VariableTypeNullDescription
data_urlurlnoGET: the tickets as table rows (endpoint tickets). Query: search, page, perPage, sort, dir, status, topic.
ticket_url_templatestringnoTicket page of a row ({id} = row field).
topicslistnoTopics, by order. With at least one, customers must pick one.
topics[].idintnoTopic id (field id when saving).
topics[].namestringnoName.
topics[].sortintnoOrder.
topics[].delete_urlurlnoPOST here (csrf_field()) to delete the topic; its tickets keep their messages.
topic_save_urlurlnoPOST here (csrf_field()) to add (id 0) or rename a topic.
ActionMethodTargetFieldsErrors
topic_savePOST/reseller/support/topicsid: 0 = new topic, else the topic id. name: Name (up to 60 characters). sort: Order (0 to 9999).none
topic_deletePOST/reseller/support/topics/{id}/deletenonenone

JSON endpoints for widgets and theme scripts.

GET /reseller/support/tickets/data: Tickets of the reseller’s own customers (DB only).

VariableTypeNullDescription
rowslistnoRows.
rows[].idintnoTicket id (part of the ticket URL).
rows[].numberintnoTicket number.
rows[].subjectstringnoSubject.
rows[].statusstringnoopen (waiting for you), answered or closed.
rows[].customerstringnoCustomer user name.
rows[].topicstringnoTopic, empty when none.
rows[].last_reply_bystringnocustomer or staff.
rows[].last_reply_atdatetimenoLast message.
totalintnoRow count.
pageintnoPage.
perPageintnoRows per page.
{
"data_url": "/reseller/support/tickets/data",
"ticket_url_template": "/reseller/support/tickets/{id}",
"topics": [
{
"id": 1,
"name": "Billing",
"sort": 0,
"delete_url": "/reseller/support/topics/1/delete"
}
],
"topic_save_url": "/reseller/support/topics"
}

Account settings. nx.password_form() and nx.two_factor_setup() are required (when the provider requires two-factor sign-in, a new customer lands here first); nx.passkeys() and nx.api_keys() are optional. Theme scripts never run on this page.

  • Title: Account settings
  • Area: customer portal
  • Template: templates/security.twig (security.twig)
  • URL: /portal/security
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.password_form(), nx.two_factor_setup()
  • Optional blocks (at most once): nx.passkeys(), nx.api_keys()
VariableTypeNullDescription
billingobjectnoBilling details form.
billing.fieldsmapnoField name => optional|required (only the fields the provider asks for; country, vat_id, name, company, street, zip, city, phone, …).
billing.valuesmapnoField name => current value.
billing.countrieslistnoCountries for the country field.
billing.countries[].codestringnoISO code.
billing.countries[].namestringnoCountry name.
billing.emailstringnoSign-in email (read only, the provider changes it).
billing.save_urlurlnoPOST the fields here (with csrf_field()).
sessionslistnoActive sessions, most recent first.
sessions[].idintnoSession id.
sessions[].currentboolnoThis browser.
sessions[].ipstringnoIP address.
sessions[].agentstringnoBrowser and system.
sessions[].last_seendatetimenoLast activity.
sessions[].sign_out_urlurlyesPOST here (with csrf_field()) to end that session; null for this browser and while an admin views the account.
sign_out_others_urlurlyesPOST here (with csrf_field()) to end every other session; null while an admin views the account.
sign_inslistnoRecent sign-ins, newest first.
sign_ins[].atdatetimenoTime.
sign_ins[].ipstringnoIP address.
sign_ins[].locationstringyesLocation when known.
sign_ins[].okboolnoSigned in (false = failed or refused).
two_factorobjectnoTwo-factor state.
two_factor.enabledboolnoAn authenticator app is set up.
two_factor.requiredboolnoThe provider requires a second factor for this account.
passkeys_onboolnoPasskeys can be used here (https).
api_onboolnoThe customer API is on for this account (nx.api_keys() shows the keys).
impersonatingboolnoAn admin views the account: password, passkeys and API keys cannot be changed.
ActionMethodTargetFieldsErrors
billingPOST/portal/account<field>: Each field of billing.fields.The field is required.
sign_outPOST/portal/security/sessions/{id}/deletenonenone
sign_out_othersPOST/portal/security/sessions/othersnonenone
{
"billing": {
"fields": {
"name": "required"
},
"values": {
"name": "Jane Doe"
},
"countries": [
{
"code": "DE",
"name": "Germany"
}
],
"email": "[email protected]",
"save_url": "/portal/account"
},
"sessions": [
{
"id": 1,
"current": true,
"ip": "198.51.100.7",
"agent": "Firefox on Linux",
"last_seen": "2026-11-10 10:00:00",
"sign_out_url": "/portal/security/sessions/2/delete"
}
],
"sign_out_others_url": "/portal/security/sessions/others",
"sign_ins": [
{
"at": "2026-11-10 10:00:00",
"ip": "198.51.100.7",
"location": null,
"ok": true
}
],
"two_factor": {
"enabled": false,
"required": false
},
"passkeys_on": true,
"api_on": false,
"impersonating": false
}

Shown on the server page when its creation failed. Offer “Try again” unless the order was refunded (the limits of Try again stay on the server).

  • Title: Server could not be set up
  • Area: customer portal
  • Template: templates/servers/build_failed.twig (servers/build_failed.twig)
  • URL: /portal/hosts/{host}/guests/{type}/{vmid}
VariableTypeNullDescription
server_namestringnoName of the server.
refundedboolnoThe shop order was refunded to the balance: no Try again, order again instead.
retry_urlurlnoPOST here (with csrf_field()) to try again.
ActionMethodTargetFieldsErrors
retryPOST/portal/hosts/{host}/guests/{type}/{vmid}/provision/retrynonePlease wait a little before trying again. This server cannot be set up again from here. Please contact support.
{
"server_name": "web-1",
"refunded": false,
"retry_url": "/portal/hosts/1/guests/qemu/100/provision/retry"
}

Every server of the customer, own and shared, plus orders waiting for the provider.

  • Title: My Servers
  • Area: customer portal
  • Template: templates/servers/index.twig (servers/index.twig)
  • URL: /portal/servers
VariableTypeNullDescription
serverslistnoAll servers, own first.
servers[].namestringnoServer name.
servers[].urlurlnoThe server page.
servers[].statusstringnorunning, stopped, provisioning, suspended …
servers[].vmidintnoServer id.
servers[].ipstringnoMain IP address, “Internal network (no public IP)” for servers without a public IP, empty when unknown.
servers[].osobjectnoOperating system.
servers[].os.namestringnoOS name.
servers[].os.logo_urlurlyesOS logo, null when none.
servers[].coresintnovCPU cores.
servers[].memory_mbintnoMemory in MB.
servers[].disk_gbintnoBoot disk size in GB.
servers[].nodestringyesNode name, null unless the provider shows node names.
servers[].sharedboolnoShared with the customer by another customer.
servers[].share_rolestringyesmanage or view for shared servers, null for own ones.
servers[].expires_atdatetimeyesPaid until (shop servers), else null.
servers[].days_leftintyesDays until the paid date (shop servers), else null.
pending_orderslistnoOrders waiting for the provider to set them up.
pending_orders[].productstringnoProduct name.
pending_orders[].created_atdatetimenoWhen the order was placed.
packobjectyesThe customer’s resource pack, null when none.
pack.namestringnoPack name.
pack.remainingobjectnoWhat is still free in the pack.
pack.remaining.coresintnoFree vCPU cores.
pack.remaining.memory_mbintnoFree memory in MB.
pack.remaining.disk_gbintnoFree disk in GB.
KeyTrue when
create_serverThe customer has a resource pack and may create servers.
orderThe shop is open.
{
"servers": [
{
"name": "web",
"url": "/portal/hosts/1/guests/qemu/100",
"status": "running",
"vmid": 100,
"ip": "192.0.2.10",
"os": {
"name": "Debian",
"logo_url": null
},
"cores": 2,
"memory_mb": 2048,
"disk_gb": 20,
"node": null,
"shared": false,
"share_role": null,
"expires_at": null,
"days_left": null
}
],
"pending_orders": [
{
"product": "VPS S",
"created_at": "2026-11-10 10:00:00"
}
],
"pack": {
"name": "Starter pack",
"remaining": {
"cores": 4,
"memory_mb": 4096,
"disk_gb": 80
}
}
}

Create a server from the customer’s resource pack. nx.server_create_form() places the form (name, type, size, OS, root password, SSH keys); it renders an empty element while blocker is set. The budget is checked again on submit.

  • Title: Create server
  • Area: customer portal
  • Template: templates/servers/new.twig (servers/new.twig)
  • URL: /portal/servers/new
  • Required blocks (exactly once): nx.server_create_form()
VariableTypeNullDescription
packobjectnoThe resource pack.
pack.namestringnoName of the pack.
pack.remainingobjectnoWhat is left for new servers.
pack.remaining.coresintnovCPU cores left.
pack.remaining.memory_mbintnoMemory left in MB.
pack.remaining.disk_gbintnoDisk left in GB.
blockerstringyesWhy no server can be created right now, else null.
{
"pack": {
"name": "Developer pack",
"remaining": {
"cores": 4,
"memory_mb": 4096,
"disk_gb": 40
}
},
"blocker": null
}

Shown on the server page while the server is being created or reinstalled. Put the provisioning widget on it: it follows the job and opens the server page when it is ready.

  • Title: Server being set up
  • Area: customer portal
  • Template: templates/servers/provisioning.twig (servers/provisioning.twig)
  • URL: /portal/hosts/{host}/guests/{type}/{vmid}
  • Widgets: provisioning
VariableTypeNullDescription
server_namestringnoName of the server.
reinstallboolnoA reinstall (true) or a new server (false).
status_urlurlnoStatus endpoint of the server (data-nx-status of the provisioning widget).
provision_urlurlnoJob state endpoint (data-nx-src of the provisioning widget).
done_urlurlnoThe server page, opened when the server is ready (data-nx-done).
{
"server_name": "web-1",
"reinstall": false,
"status_url": "/portal/hosts/1/guests/qemu/100",
"provision_url": "/portal/hosts/1/guests/qemu/100",
"done_url": "/portal/hosts/1/guests/qemu/100"
}

Shown on the server page while the server waits for its setup. nx.setup_form() places the form (operating system, hostname, root password, SSH keys, DNS, swap); the server is built right after.

  • Title: Set up your server
  • Area: customer portal
  • Template: templates/servers/setup.twig (servers/setup.twig)
  • URL: /portal/hosts/{host}/guests/{type}/{vmid}
  • Required blocks (exactly once): nx.setup_form()
VariableTypeNullDescription
server_namestringnoName of the server.
typestringnoqemu (virtual machine) or lxc (container).
specobjectnoSize of the server.
spec.coresintnovCPU cores.
spec.memory_mbintnoMemory in MB.
spec.disk_gbintnoDisk in GB.
{
"server_name": "web-1",
"type": "qemu",
"spec": {
"cores": 2,
"memory_mb": 2048,
"disk_gb": 20
}
}

One server: status, power, live charts and console, network, traffic, subscription and sharing. nx.reinstall_form() and nx.root_password_form() place the reinstall and root password forms (each renders an empty element when its feature is off).

  • Title: Server
  • Area: customer portal
  • Template: templates/servers/show.twig (servers/show.twig)
  • URL: /portal/hosts/{host}/guests/{type}/{vmid}
  • Optional blocks (at most once): nx.reinstall_form(), nx.root_password_form()
  • Widgets: status, power, charts, console, table, form, copy
VariableTypeNullDescription
serverobjectnoThe server.
server.namestringnoServer name.
server.vmidintnoServer id.
server.typestringnoqemu (virtual machine) or lxc (container).
server.statusstringnorunning, stopped, provisioning, suspended …
server.uptimestringnoReadable uptime, empty when stopped.
server.ipstringnoMain IP address, “Internal network (no public IP)” for servers without a public IP, “Waiting for IP assignment” while none is known.
server.internal_networkboolnoThe server has no public IP (internal network product).
server.osobjectnoOperating system.
server.os.namestringnoOS name.
server.os.logo_urlurlyesOS logo, null when none.
server.specsobjectnoAllocated resources (from the last inventory).
server.specs.coresintnovCPU cores, 0 when unknown.
server.specs.memory_mbintnoMemory in MB, 0 when unknown.
server.specs.disk_gbintnoBoot disk size in GB, 0 when unknown.
server.nodestringyesNode name, null unless the provider shows node names.
server.sharedboolnoShared with the customer by another customer.
server.share_rolestringyesmanage or view for shared servers, null for own ones.
server.shared_bystringyesEmail of the customer who shared the server, null for own ones.
server.provider_note_htmlhtmlyesNote from the provider, null when none.
server.lockobjectyesSet while the provider has locked the server (actions are refused), else null.
server.lock.reasonstringnoReason, empty when none.
server.lock.sincedatetimeyesLocked since, null when unknown.
server.eolobjectyesEnd-of-life notice of the operating system, null when none.
server.eol.statestringnowarning (end of life is coming), eol (reached) or hidden (no longer offered for new servers).
server.eol.datedatetimeyesEnd-of-life date, null when not given.
server.eol.messagestringnoReadable notice.
server.appobjectyesOne-click app installed on the server, null when none.
server.app.namestringnoApp name.
server.app.statestringnoinstalling, installed, failed or needs_attention.
server.app.notes_htmlhtmlyesPost-install notes, null when none.
server.app.retry_urlurlyesPOST here to retry a failed install, null when not offered.
server.urlsmapnoEndpoints of this server the customer may use right now, by name (status, metrics, storage, spec, power, console, …). A name is missing when the feature is off or the role does not allow it (a view share gets only the read endpoints).
networkobjectnoAddresses and network services of the server.
network.ipv4listnoIPv4 addresses (strings).
network.ipv6_prefixeslistnoRouted IPv6 prefixes.
network.ipv6_prefixes[].prefixstringnoPrefix with length.
network.ipv6_prefixes[].on_linkboolnoThe first address is set on the server already.
network.rdnslistnoReverse DNS per address (owner with the rdns feature, else empty).
network.rdns[].idintnoAddress id (post as ip_id).
network.rdns[].ipstringnoAddress.
network.rdns[].ptrstringnoCurrent name, empty when none.
network.rdns[].statestringnosynced, pending, failed or empty.
network.forwardsobjectyesPort forwards of an internal-network server (owner only), null when the product has none.
network.forwards.limitintnoMost forwards the server may have.
network.forwards.itemslistnoForwards.
network.forwards.items[].idintnoForward id.
network.forwards.items[].protostringnotcp or udp.
network.forwards.items[].publicstringnoPublic address and port.
network.forwards.items[].portintnoPort on the server.
network.forwards.items[].delete_urlurlnoPOST here to remove the forward.
network.domainslistyesWebsites on the shared IPv4 (owner with the shared_web feature), null when not offered.
network.domains[].idintnoDomain id.
network.domains[].domainstringnoDomain name.
network.domains[].statestringnopending, waiting, active, paused or inactive.
network.domains[].check_urlurlnoPOST here to check the DNS records now.
network.domains[].delete_urlurlnoPOST here to remove the domain.
trafficobjectyesTraffic this month, null when the traffic feature is off.
traffic.periodstringnoMonth (YYYY-MM).
traffic.used_bytesintnoCounted bytes (in + out when there is no limit).
traffic.limit_bytesintyesMonthly limit, null for unlimited.
traffic.percentintyesUsed share of the limit, null for unlimited.
traffic.statestringnook, throttled, suspended or limit_reached.
subscriptionobjectyesThe shop subscription (owner only), null for servers without one.
subscription.planstringnoProduct name.
subscription.pricemoneyyesPrice of one period incl. add-ons (formatted), null when unknown.
subscription.period_daysintnoLength of one period in days.
subscription.expires_atdatetimeyesPaid until, null when none.
subscription.auto_renewboolnoRenews automatically from the balance.
subscription.cancelled_atdatetimeyesWhen the customer cancelled, null when not cancelled.
subscription.delete_atdatetimeyesWhen the server is deleted (cancelled or unpaid), null when not planned.
subscription.hourlyobjectyesSet for servers billed by the hour, else null.
subscription.hourly.price_per_hourstringnoPrice per hour (formatted, four decimals).
subscription.hourly.month_to_datemoneynoCharged this month so far.
subscription.hourly.capmoneynoMonthly maximum.
subscription.gateway_subscriptionboolnoA card or PayPal subscription pays this server.
subscription.upgradeslistnoPlans the server can be upgraded to now.
subscription.upgrades[].plan_idintnoProduct id (post as plan_id).
subscription.upgrades[].namestringnoProduct name.
subscription.upgrades[].pricemoneynoPrice to pay now.
subscription.changeslistnoPlans the server can change to at the next renewal.
subscription.changes[].plan_idintnoProduct id (post as plan_id).
subscription.changes[].namestringnoProduct name.
subscription.changes[].pricemoneynoPrice per period.
subscription.changes[].atdatetimeyesWhen it applies when already scheduled, else null.
subscription.extraslistnoAdd-ons the customer can buy now.
subscription.extras[].idintnoAdd-on id (post as extra_id).
subscription.extras[].namestringnoAdd-on name.
subscription.extras[].kindstringnoipv4, ipv6, disk_gb, backup_slots …
subscription.extras[].pricemoneynoPrice to pay now for one step.
subscription.extras[].stepintnoUnits per purchase.
subscription.extras[].maxintnoMost units that can still be bought.
subscription.ownedlistnoAdd-ons the server has.
subscription.owned[].idintnoRow id.
subscription.owned[].namestringnoAdd-on name.
subscription.owned[].quantityintnoUnits.
subscription.owned[].remove_urlurlyesPOST here to remove it, null when it cannot be removed.
subscription.urlsmapnoSubscription endpoints by name: auto_renew, renew, cancel (GET page), cancel_withdraw, usage_confirm, switch_monthly, upgrade, plan_change, plan_change_cancel, extras, checkout, subscription_cancel, delete. POST unless noted.
shareslistnoPeople the owner shared the server with (owner only, else empty).
shares[].idintnoShare id.
shares[].emailstringnoInvited address.
shares[].rolestringnomanage or view.
shares[].statestringnopending (invited) or active.
shares[].delete_urlurlnoPOST here to end the share.
my_shareobjectyesSet when the server is shared with the customer, else null.
my_share.rolestringnomanage or view.
my_share.leave_urlurlnoPOST here to leave the shared server.
snapshot_limitintnoSnapshots the server may keep (0 = none).
snapshotsobjectyesSnapshots pane (endpoint snapshots), null when snapshots are off for the customer or the limit is 0.
snapshots.data_urlurlnoGET: the snapshots as table rows (endpoint snapshots). Reads the server live, use it lazily.
snapshots.create_urlurlnoPOST name, description, include_ram (1, virtual machines). JSON {ok, error}.
snapshots.rollback_urlurlnoPOST snapname. JSON {ok, error}. The server goes back to that state.
snapshots.delete_urlurlnoPOST snapname. JSON {ok, error}.
snapshots.limitintnoSnapshots the server may keep.
snapshots.ramboolnoSnapshots can include the RAM (virtual machines).
backupsobjectyesBackups pane (endpoint backups), null when the server has no backups for the customer.
backups.ownboolnoThe customer can make backups.
backups.scheduledboolnoThe provider’s scheduled backups are shown (owner only).
backups.file_restoreboolnoSingle files can be downloaded from scheduled backups (scheduled[].can_files per backup).
backups.data_urlurlnoGET: own and scheduled backups (endpoint backups).
backups.create_urlurlyesPOST (no fields) to start a backup, null without own backups. JSON {ok, error}.
backups.restore_url_templatestringyesPOST here ({id} = backups[].id) to restore an own backup, null without own backups.
backups.delete_url_templatestringyesPOST here ({id} = backups[].id) to delete an own backup, null without own backups.
backups.scheduled_restore_url_templatestringyesPOST here ({id} = scheduled[].id) to restore a scheduled backup, null when not shown.
backups.scheduled_files_url_templatestringyesPOST path (empty = top folder, else entries[].path) here ({id} = scheduled[].id) to list files (endpoint scheduled_files), null without file restore.
backups.scheduled_download_url_templatestringyesGET link ({form.backup} = scheduled[].id, {path} = entries[].path) that downloads a file, a folder as zip; null without file restore. Size limit set by the provider.
firewallobjectyesFirewall pane (endpoints firewall, firewall_presets), null when the firewall is off for the customer.
firewall.data_urlurlnoGET: the rules as table rows (endpoint firewall).
firewall.presets_urlurlnoGET: presets the customer can apply (endpoint firewall_presets).
firewall.apply_preset_urlurlnoPOST preset_id. JSON {success, error}.
firewall.add_urlurlnoPOST direction (in, out), action (ACCEPT, DROP, REJECT), enabled (1), proto, dport, sport, source, dest, comment. JSON {success, error}.
firewall.rule_url_templatestringnoPOST the same fields here ({id} = rows[].id) to change a rule (not rows[].locked).
firewall.delete_url_templatestringnoPOST here ({id} = rows[].id) to delete a rule (not rows[].locked).
isoobjectyesCD/DVD pane of a virtual machine (endpoint iso), null when off or for containers.
iso.state_urlurlnoGET: inserted ISO and the ISOs that can be inserted (endpoint iso).
iso.insert_urlurlnoPOST iso_id (available[].id), boot_once (1 to start from it once). JSON {ok, error}.
iso.eject_urlurlnoPOST (no fields). JSON {ok, error}.
bootobjectyesBoot pane of a virtual machine (endpoint boot, owner only), null when boot settings and rescue mode are off or for containers.
boot.state_urlurlnoGET: boot settings and rescue state (endpoint boot).
boot.order_urlurlyesPOST first (disk, cd, net). JSON {ok, message, error}. Null when boot settings are off.
boot.firmware_urlurlyesPOST firmware (seabios, ovmf), only while the server is stopped. JSON {ok, message, error}. Null when boot settings are off.
boot.rescue_urlurlyesPOST (no fields) to start rescue mode (restarts the server). Null when rescue mode is off.
boot.rescue_end_urlurlyesPOST (no fields) to end rescue mode. Null when rescue mode is off.
ssh_keysobjectyesSSH keys of root inside the server (owner with the guest_ssh_keys feature), else null.
ssh_keys.data_urlurlnoGET: the last read as table rows (rows[].fingerprint, comment, type). DB only, use it with the table widget.
ssh_keys.read_urlurlnoGET: read the keys from the running server now (slow, up to 30 seconds). Answer {ok, error, keys, read_at}.
ssh_keys.add_urlurlnoPOST key (a pasted public key) or key_id (stored[].id). JSON answer {ok, error, keys}.
ssh_keys.remove_urlurlnoPOST fingerprint. JSON answer {ok, error, keys}.
ssh_keys.read_atstringyesWhen the keys were last read, null when never.
ssh_keys.storedlistnoThe customer’s stored keys that can be added.
ssh_keys.stored[].idintnoKey id (post as key_id).
ssh_keys.stored[].namestringnoName.
ssh_keys.stored[].fingerprintstringnoSHA256 fingerprint.
self_serviceboolnoCreated from the customer’s resource pack (the customer may delete it).
KeyTrue when
powerStart, stop and reboot.
consoleOpen the console.
reinstallReinstall the OS.
root_passwordReset the root password.
snapshotsSnapshots.
backupsBackups.
firewallFirewall rules.
isoInsert an ISO (virtual machines).
bootBoot order and firmware.
rescueRescue mode.
ssh_keysSSH keys of root inside the server.
shareShare the server (owner).
rdnsReverse DNS (owner).
forwardsPort forwards (owner).
domainsWebsites on the shared IPv4 (owner).
deleteDelete the server (owner, resource pack servers).
billingSubscription actions (owner, shop servers).
leaveLeave a server shared with the customer.
ActionMethodTargetFieldsErrors
share_invitePOST/portal/hosts/{host}/guests/{type}/{vmid}/sharesemail: Address to invite. role: manage or view.none
share_removePOST/portal/hosts/{host}/guests/{type}/{vmid}/shares/{share}/deletenonenone
share_leavePOST/portal/shares/{share}/leavenonenone
rdns_setPOST/portal/hosts/{host}/guests/{type}/{vmid}/rdnsip_id: network.rdns[].id ptr: Name, empty to clear.none
forward_addPOST/portal/hosts/{host}/guests/{type}/{vmid}/forwardsproto: tcp or udp. port: Port on the server.none
forward_removePOST/portal/hosts/{host}/guests/{type}/{vmid}/forwards/{forward}/deletenonenone
domain_addPOST/portal/hosts/{host}/guests/{type}/{vmid}/domainsdomain: Domain name. proxy_protocol: 1 to send the PROXY protocol header.none
domain_checkPOST/portal/hosts/{host}/guests/{type}/{vmid}/domains/{domain}/checknonenone
domain_removePOST/portal/hosts/{host}/guests/{type}/{vmid}/domains/{domain}/deletenonenone
auto_renewPOST/portal/hosts/{host}/guests/{type}/{vmid}/shop/auto-renewon: 1 or 0.none
renewPOST/portal/hosts/{host}/guests/{type}/{vmid}/shop/renewnonenone
cancelGET/portal/hosts/{host}/guests/{type}/{vmid}/shop/cancelnonenone
cancel_withdrawPOST/portal/hosts/{host}/guests/{type}/{vmid}/shop/cancel/withdrawnonenone
upgradePOST/portal/hosts/{host}/guests/{type}/{vmid}/shop/upgradeplan_id: subscription.upgrades[].plan_idnone
plan_changePOST/portal/hosts/{host}/guests/{type}/{vmid}/shop/plan-changeplan_id: subscription.changes[].plan_idnone
plan_change_cancelPOST/portal/hosts/{host}/guests/{type}/{vmid}/shop/plan-change/cancelnonenone
extra_buyPOST/portal/hosts/{host}/guests/{type}/{vmid}/shop/extrasextra_id: subscription.extras[].id quantity: Steps to buy, default 1.none
switch_monthlyPOST/portal/hosts/{host}/guests/{type}/{vmid}/shop/switch-monthlynonenone
deletePOST/portal/hosts/{host}/guests/{type}/{vmid}/deletenonenone
snapshot_createPOST/portal/hosts/{host}/guests/{type}/{vmid}/snapshots/create (JSON)name: Snapshot name. description: Optional. include_ram: 1 to keep the RAM (virtual machines).none
snapshot_rollbackPOST/portal/hosts/{host}/guests/{type}/{vmid}/snapshots/rollback (JSON)snapname: rows[].name of endpoint snapshots.none
snapshot_deletePOST/portal/hosts/{host}/guests/{type}/{vmid}/snapshots/delete (JSON)snapname: rows[].name of endpoint snapshots.none
backup_createPOST/portal/hosts/{host}/guests/{type}/{vmid}/backups (JSON)nonenone
backup_restorePOST/portal/hosts/{host}/guests/{type}/{vmid}/backups/{backup}/restore (JSON)nonenone
backup_deletePOST/portal/hosts/{host}/guests/{type}/{vmid}/backups/{backup}/delete (JSON)nonenone
scheduled_restorePOST/portal/hosts/{host}/guests/{type}/{vmid}/backups/scheduled/{backup}/restore (JSON)nonenone
scheduled_filesPOST/portal/hosts/{host}/guests/{type}/{vmid}/backups/scheduled/{backup}/files (JSON)path: Empty for the top folder, else entries[].path.none
firewall_apply_presetPOST/portal/hosts/{host}/guests/{type}/{vmid}/firewall/apply-preset (JSON)preset_id: presets[].id of endpoint firewall_presets.none
firewall_rule_addPOST/portal/hosts/{host}/guests/{type}/{vmid}/firewall/rules (JSON)direction: in or out. action: ACCEPT, DROP or REJECT. enabled: 1 to activate. proto: tcp, udp, icmp or empty. dport: Destination port. sport: Source port. source: Source address. dest: Destination address. comment: Comment.none
firewall_rule_updatePOST/portal/hosts/{host}/guests/{type}/{vmid}/firewall/rules/{rule} (JSON)direction: in or out. action: ACCEPT, DROP or REJECT. enabled: 1 to activate. proto: tcp, udp, icmp or empty. dport: Destination port. sport: Source port. source: Source address. dest: Destination address. comment: Comment.none
firewall_rule_deletePOST/portal/hosts/{host}/guests/{type}/{vmid}/firewall/rules/{rule}/delete (JSON)nonenone
iso_insertPOST/portal/hosts/{host}/guests/{type}/{vmid}/iso (JSON)iso_id: available[].id of endpoint iso. boot_once: 1 to start from it once.none
iso_ejectPOST/portal/hosts/{host}/guests/{type}/{vmid}/iso/eject (JSON)nonenone
boot_orderPOST/portal/hosts/{host}/guests/{type}/{vmid}/boot/order (JSON)first: disk, cd or net.none
boot_firmwarePOST/portal/hosts/{host}/guests/{type}/{vmid}/boot/firmware (JSON)firmware: seabios or ovmf.none
rescue_startPOST/portal/hosts/{host}/guests/{type}/{vmid}/rescue (JSON)nonenone
rescue_endPOST/portal/hosts/{host}/guests/{type}/{vmid}/rescue/end (JSON)nonenone

JSON endpoints for widgets and theme scripts.

GET /portal/hosts/{host}/guests/{type}/{vmid}/status: Power status (DB only, poll it).

VariableTypeNullDescription
okboolnoRead worked.
statusstringnorunning, stopped, rebooting …
uptimeintnoSeconds.
ipstringnoMain IP, empty when unknown.

GET /portal/hosts/{host}/guests/{type}/{vmid}/metrics: Samples of the last 30 minutes.

VariableTypeNullDescription
okboolnoRead worked.
pointslistnoSamples, oldest first.
points[].tstringnoSample time.
points[].cpufloatnoCPU share 0..1.
points[].memintnoMemory used (bytes).
points[].maxmemintnoMemory total (bytes).
points[].diskintnoDisk used (bytes).
points[].maxdiskintnoDisk total (bytes).
points[].netinintnoBytes received (counter).
points[].netoutintnoBytes sent (counter).

GET /portal/hosts/{host}/guests/{type}/{vmid}/storage: Disk usage per drive.

VariableTypeNullDescription
okboolnoRead worked.
driveslistnoDrives.
drives[].labelstringnoDrive name.
drives[].usedintyesUsed MB, null when unknown.
drives[].totalintnoSize in MB.
drives[].sourcestringnoagent or size.

GET /portal/hosts/{host}/guests/{type}/{vmid}/spec: Exact allocation from the stored config.

VariableTypeNullDescription
okboolnoRead worked.
specmapnoname, cores, memoryMb, disk, osLabel …

GET /portal/hosts/{host}/guests/{type}/{vmid}/traffic: Traffic this month.

VariableTypeNullDescription
okboolnoRead worked.
trafficmapnoperiod, shown_bytes, limit_bytes, percent, state, history …

GET /portal/hosts/{host}/guests/{type}/{vmid}/hardware-pending: Whether new RAM or vCPUs wait for a power cycle (virtual machines).

VariableTypeNullDescription
okboolnoRead worked.
pendingboolnoA power cycle applies waiting changes.
notestringnoReadable explanation, missing when nothing waits.

GET /portal/hosts/{host}/guests/{type}/{vmid}/snapshots/data: Snapshots, newest first (read live from the server).

VariableTypeNullDescription
rowslistnoRows.
rows[].namestringnoSnapshot name.
rows[].descriptionstringnoDescription.
rows[].snaptimeintnoUnix time it was taken.
rows[].parentstringnoPrevious snapshot.
rows[].vmstateintno1 when the RAM is included.
totalintnoRow count.
pageintnoPage.
perPageintnoRows per page.
errorstringyesWhy the read failed (only then).

GET /portal/hosts/{host}/guests/{type}/{vmid}/backups: Own backups and the provider’s scheduled backups.

VariableTypeNullDescription
okboolnoRead worked.
availableboolnoOwn backups are offered.
limitintnoOwn backups the server may keep.
backupslistnoOwn backups.
backups[].idintnoBackup id.
backups[].created_atstringnoWhen it was made.
backups[].size_bytesintnoSize.
backups[].statusstringnorunning, done or failed.
scheduledAccessstringnonone, view, restore or files.
scheduledlistnoScheduled backups (owner only, else empty).
scheduled[].idintnoBackup id.
scheduled[].created_atstringnoWhen it was made.
scheduled[].size_bytesintnoSize.
scheduled[].can_restoreboolnoMay be restored.
scheduled[].can_filesboolnoSingle files can be downloaded.

POST /portal/hosts/{host}/guests/{type}/{vmid}/backups/scheduled/{backup}/files: Files in one folder of a scheduled backup (POST path, empty = top folder). The first listing can take a minute. Use it with a form and data-nx-fill.

VariableTypeNullDescription
okboolnoListing worked.
errorstringyesWhy it failed (only when ok is false).
entrieslistnoFiles and folders.
entries[].pathstringnoOpaque path (post it again, or use it in the download link).
entries[].namestringnoName.
entries[].folderboolnoA folder.
entries[].sizeintnoBytes.
entries[].mtimeintnoUnix time changed.

GET /portal/hosts/{host}/guests/{type}/{vmid}/firewall/data: Firewall rules in order.

VariableTypeNullDescription
rowslistnoRows.
rows[].idintnoRule id.
rows[].directionstringnoin or out.
rows[].actionstringnoACCEPT, DROP or REJECT.
rows[].protostringnoProtocol, empty = any.
rows[].dportstringnoDestination port.
rows[].sportstringnoSource port.
rows[].sourcestringnoSource address.
rows[].deststringnoDestination address.
rows[].commentstringnoComment.
rows[].enabledintno1 when active.
rows[].lockedboolnoSet by the provider (cannot be changed).
totalintnoRow count.
pageintnoPage.
perPageintnoRows per page.
errorstringyesWhy the read failed (only then).

GET /portal/hosts/{host}/guests/{type}/{vmid}/firewall/presets: Rule presets the customer can apply.

VariableTypeNullDescription
okboolnoRead worked.
presetslistnoPresets.
presets[].idintnoPreset id.
presets[].namestringnoName.
presets[].descriptionstringnoDescription.

GET /portal/hosts/{host}/guests/{type}/{vmid}/iso: CD/DVD of a virtual machine (read live).

VariableTypeNullDescription
okboolnoRead worked.
mountedobjectyesThe inserted ISO, null when none.
mounted.namestringnoName.
mounted.boot_onceboolnoThe server starts from it once.
mounted.volidstringnoAlways empty for customers.
mounted.slotstringnoAlways empty for customers.
availablelistnoISOs that can be inserted.
available[].idintnoPost as iso_id.
available[].namestringnoName.
available[].sizeintnoBytes.
hasFreeSlotboolnoAn ISO can be inserted.

GET /portal/hosts/{host}/guests/{type}/{vmid}/boot: Boot settings and rescue mode of a virtual machine (read live).

VariableTypeNullDescription
okboolnoRead worked.
firststringnoFirst boot device: disk, cd or net.
firmwarestringnoseabios (BIOS) or ovmf (UEFI).
first_labelstringnoFirst boot device in words.
firmware_labelstringnoFirmware in words.
tpmboolnoHas a TPM (stays on UEFI).
rescueboolnoRescue mode is on.
rescueAvailableboolnoA rescue image is offered.
{
"server": {
"name": "web",
"vmid": 100,
"type": "qemu",
"status": "running",
"uptime": "2d 3h",
"ip": "192.0.2.10",
"internal_network": false,
"os": {
"name": "Debian",
"logo_url": null
},
"specs": {
"cores": 2,
"memory_mb": 2048,
"disk_gb": 20
},
"node": null,
"shared": false,
"share_role": null,
"shared_by": null,
"provider_note_html": null,
"lock": {
"reason": "Abuse report",
"since": null
},
"eol": {
"state": "warning",
"date": null,
"message": "Debian 10 reaches end of life on 2026-12-01. Reinstall with a newer version."
},
"app": {
"name": "WordPress",
"state": "installed",
"notes_html": null,
"retry_url": null
},
"urls": []
},
"network": {
"ipv4": [
"192.0.2.10"
],
"ipv6_prefixes": [
{
"prefix": "2001:db8:1::/64",
"on_link": true
}
],
"rdns": [
{
"id": 5,
"ip": "192.0.2.10",
"ptr": "web.example.com",
"state": "synced"
}
],
"forwards": {
"limit": 2,
"items": [
{
"id": 1,
"proto": "tcp",
"public": "203.0.113.1:20001",
"port": 22,
"delete_url": "/portal/hosts/1/guests/qemu/100"
}
]
},
"domains": [
{
"id": 1,
"domain": "shop.example.com",
"state": "pending",
"check_url": "/portal/hosts/1/guests/qemu/100",
"delete_url": "/portal/hosts/1/guests/qemu/100"
}
]
},
"traffic": {
"period": "2026-11",
"used_bytes": 1073741824,
"limit_bytes": null,
"percent": null,
"state": "ok"
},
"subscription": {
"plan": "VPS S",
"price": "5.00 EUR",
"period_days": 30,
"expires_at": null,
"auto_renew": true,
"cancelled_at": null,
"delete_at": null,
"hourly": {
"price_per_hour": "0.0068 EUR",
"month_to_date": "1.20 EUR",
"cap": "5.00 EUR"
},
"gateway_subscription": false,
"upgrades": [
{
"plan_id": 2,
"name": "VPS M",
"price": "2.50 EUR"
}
],
"changes": [
{
"plan_id": 3,
"name": "VPS XS",
"price": "3.00 EUR",
"at": null
}
],
"extras": [
{
"id": 1,
"name": "Extra IPv4",
"kind": "ipv4",
"price": "1.00 EUR",
"step": 1,
"max": 4
}
],
"owned": [
{
"id": 7,
"name": "Extra IPv4",
"quantity": 1,
"remove_url": null
}
],
"urls": []
},
"shares": [
{
"id": 1,
"email": "[email protected]",
"role": "view",
"state": "active",
"delete_url": "/portal/hosts/1/guests/qemu/100"
}
],
"my_share": {
"role": "view",
"leave_url": "/portal/hosts/1/guests/qemu/100"
},
"snapshot_limit": 2,
"snapshots": {
"data_url": "/portal/hosts/1/guests/qemu/100",
"create_url": "/portal/hosts/1/guests/qemu/100",
"rollback_url": "/portal/hosts/1/guests/qemu/100",
"delete_url": "/portal/hosts/1/guests/qemu/100",
"limit": 2,
"ram": true
},
"backups": {
"own": false,
"scheduled": false,
"file_restore": false,
"data_url": "/portal/hosts/1/guests/qemu/100",
"create_url": null,
"restore_url_template": null,
"delete_url_template": null,
"scheduled_restore_url_template": null,
"scheduled_files_url_template": null,
"scheduled_download_url_template": null
},
"firewall": {
"data_url": "/portal/hosts/1/guests/qemu/100",
"presets_url": "/portal/hosts/1/guests/qemu/100",
"apply_preset_url": "/portal/hosts/1/guests/qemu/100",
"add_url": "/portal/hosts/1/guests/qemu/100",
"rule_url_template": "/portal/hosts/1/guests/qemu/100/firewall/rules/{id}",
"delete_url_template": "/portal/hosts/1/guests/qemu/100/firewall/rules/{id}/delete"
},
"iso": {
"state_url": "/portal/hosts/1/guests/qemu/100",
"insert_url": "/portal/hosts/1/guests/qemu/100",
"eject_url": "/portal/hosts/1/guests/qemu/100"
},
"boot": {
"state_url": "/portal/hosts/1/guests/qemu/100",
"order_url": null,
"firmware_url": null,
"rescue_url": null,
"rescue_end_url": null
},
"ssh_keys": {
"data_url": "/portal/hosts/1/guests/qemu/100",
"read_url": "/portal/hosts/1/guests/qemu/100",
"add_url": "/portal/hosts/1/guests/qemu/100",
"remove_url": "/portal/hosts/1/guests/qemu/100",
"read_at": "2026-11-11 10:00:00",
"stored": [
{
"id": 3,
"name": "laptop",
"fingerprint": "SHA256:abc"
}
]
},
"self_service": false
}

One form posting to save_url: game_type_id (one of the types), game_image (one of the type’s images, when it has any), game_vars[<env>] (the type’s variables), confirm (type confirm_word, only for a reinstall) and password (the customer’s password). A new version, image or server type reinstalls the server; settings only apply at the next restart. Post only the variables of the picked type.

  • Title: Change game settings
  • Area: customer portal
  • Template: templates/services/game.twig (services/game.twig)
  • URL: /portal/services/{id}/game
VariableTypeNullDescription
service_namestringnoName of the game server.
gameslistnoThe game and the server types the customer may pick.
games[].slugstringnoGame key.
games[].namestringnoGame name.
games[].image_urlurlyesGame picture, null when none.
games[].typeslistnoServer types.
games[].types[].idintnoPost as game_type_id.
games[].types[].slugstringnoType key.
games[].types[].namestringnoType name.
games[].types[].descriptionstringnoShort description, may be empty.
games[].types[].imageslistnoJava versions to pick (post as game_image), empty when fixed.
games[].types[].images[].labelstringnoValue and label.
games[].types[].variableslistnoSettings the customer may change (post as game_vars[<env>]).
games[].types[].variables[].envstringnoField key.
games[].types[].variables[].labelstringnoLabel.
games[].types[].variables[].helpstringnoHint, may be empty.
games[].types[].variables[].modestringnochoice (a select of options) or text.
games[].types[].variables[].versionboolnoChanging it reinstalls the server.
games[].types[].variables[].optionslistnoChoices of a choice field.
games[].types[].variables[].options[].valuestringnoValue.
games[].types[].variables[].options[].labelstringnoLabel.
games[].types[].variables[].maxlengthintnoLongest value of a text field.
games[].types[].variables[].valuestringnoThe current value (for the current type), else the default.
currentobjectnoWhat the server runs now.
current.gamestringyesGame slug.
current.typestringyesServer type slug.
current.type_idintnoServer type id.
current.imagestringyesJava version, null when fixed.
reinstall_possibleboolnoThe customer may change version or type (then ask for confirm).
confirm_wordstringnoThe word to type into confirm for a reinstall.
save_urlurlnoPOST the form here.
back_urlurlnoThe service page.
ActionMethodTargetFieldsErrors
savePOST/portal/services/{id}/gamegame_type_id: Server type id. game_image: Java version (when the type has images). game_vars[<env>]: Setting values. confirm: confirm_word, only for a reinstall. password: The customer’s password.The password is not right. Too many attempts. Please wait a minute. Sign in as the customer to change the game settings.
{
"service_name": "My Minecraft",
"games": [
{
"slug": "minecraft",
"name": "Minecraft",
"image_url": null,
"types": [
{
"id": 3,
"slug": "paper",
"name": "Paper",
"description": "",
"images": [
{
"label": "Java 21"
}
],
"variables": [
{
"env": "MINECRAFT_VERSION",
"label": "Minecraft version",
"help": "",
"mode": "choice",
"version": true,
"options": [
{
"value": "1.21.1",
"label": "1.21.1"
}
],
"maxlength": 64,
"value": "1.21.1"
}
]
}
]
}
],
"current": {
"game": "minecraft",
"type": "paper",
"type_id": 3,
"image": null
},
"reinstall_possible": true,
"confirm_word": "REINSTALL",
"save_url": "/portal/services/1/game",
"back_url": "/portal/services/1"
}

The customer’s service products of one section: hosting, games or other (the routes hosting and games use this page too).

  • Title: My services
  • Area: customer portal
  • Template: templates/services/index.twig (services/index.twig)
  • URL: /portal/services
VariableTypeNullDescription
sectionstringnoother, hosting or games.
serviceslistnoServices of this section.
services[].namestringnoService name.
services[].urlurlnoThe service page.
services[].statusstringnopending, active, suspended, cancelled or failed.
services[].planstringnoProduct name, empty for a custom service.
services[].renews_atdatetimeyesNext renewal, null when none.
services[].pricemoneyyesPrice per period (formatted), null when not billed.
shop_openboolnoThe shop is open (show an order link).
{
"section": "other",
"services": [
{
"name": "My site",
"url": "/portal/services/1",
"status": "active",
"plan": "Web S",
"renews_at": null,
"price": null
}
],
"shop_open": true
}

One service: its state, the subscription (auto-renew, renew now, cancel, plan changes, add-ons) and, for web hosting and game servers, the panel card. “Open” posts to module.open_url (a form with target=“_blank”): NexoVirt signs the customer in and hands over to the panel. nx.remote_password_form() places the panel password form when module.password is true.

  • Title: Service
  • Area: customer portal
  • Template: templates/services/show.twig (services/show.twig)
  • URL: /portal/services/{id}
  • Optional blocks (at most once): nx.remote_password_form(), nx.ai_key()
VariableTypeNullDescription
serviceobjectnoThe service.
service.idintnoService id (for the service_* routes).
service.namestringnoService name.
service.statusstringnopending, active, suspended, cancelled or failed.
service.planstringnoProduct or package name, empty when none.
service.sectionstringnoother, hosting (web hosting) or games (game server).
service.pricemoneyyesPrice per period (formatted), null when free or not billed.
service.period_daysintnoDays per period, 0 when not billed.
service.freeboolnoFree product: renews by itself until cancelled.
service.billedboolnoThe subscription actions apply (an active or suspended service billed here).
service.paid_untildatetimeyesEnd of the paid period, null when not billed.
service.renews_atdatetimeyesNext renewal, null when cancelled or not billed.
service.delete_atdatetimeyesWhen a cancelled service ends for good, null otherwise.
service.ordered_atdatetimeyesOrdered.
service.active_sincedatetimeyesActive since, null before the activation.
service.auto_renewboolnoAuto-renew from the balance is on.
service.cancelledboolnoThe customer cancelled it (it runs until paid_until).
service.cancelled_atdatetimeyesWhen it was cancelled, null otherwise.
service.gateway_subscriptionboolnoPaid automatically by card or PayPal.
service.messagestringyesA state message for the customer (being set up, suspended, failed), null when none.
service.note_htmlhtmlyesNote from the provider (escaped, line breaks kept), null when none.
service.manage_urlurlyesManage link of a service without a panel card (https, open in a new tab), null when none.
service.usage_confirmobjectyesA free service asks the customer to confirm it is still used (post to service_usage_confirm), null otherwise.
service.usage_confirm.due_atdatetimeyesConfirm by.
service.usage_confirm.suspendedboolnoSuspended because it was not confirmed.
plan_optionslistnoOther plans to switch to now (post plan_id and quoted to service_plan).
plan_options[].plan_idintnoPlan id.
plan_options[].namestringnoPlan name.
plan_options[].pricemoneynoCharged now for the rest of the paid period (formatted, 0 when cheaper).
plan_options[].quotedintnoThe amount now in cents: post it as quoted (a higher price is refused).
plan_options[].period_pricemoneynoPrice per period after the switch.
addon_offerslistnoAdd-ons to buy (post extra_id, quantity and quoted to service_addons).
addon_offers[].idintnoAdd-on id (extra_id).
addon_offers[].namestringnoAdd-on name.
addon_offers[].pricemoneynoCharged now per unit (formatted).
addon_offers[].quotedintnoThe amount now per unit in cents: post it as quoted.
addon_offers[].period_pricemoneynoPrice per unit with every renewal.
addon_offers[].maxintnoHighest quantity.
addonslistnoBought add-ons.
addons[].idintnoRow id.
addons[].namestringnoAdd-on name.
addons[].quantityintnoQuantity.
addons[].remove_urlurlnoRemove (POST).
change_blockstringyesWhy the plan and add-ons cannot change now, null when they can.
moduleobjectyesThe panel card of a web hosting or game server service, null for other services.
module.kindstringnoplesk, hestia, pterodactyl, litellm or other.
module.labelstringnoPanel name (Plesk, HestiaCP, Pterodactyl, Pelican).
module.logo_urlurlyesPanel logo, null when none.
module.statestringnopending (being set up), waiting (setup takes longer), ready or inactive.
module.noticestringyesA note for the customer, null when none.
module.domainstringyesMain domain of a web hosting service, null when none.
module.addressstringyesGame server address, null when none.
module.domainslistnoEvery website of the account (when more than one).
module.domains[].namestringnoDomain.
module.open_urlurlyesSingle sign-on: POST here (a form, target _blank), null when not available.
module.panel_urlurlyesAddress of the panel (plain link), null when none or when open_url applies.
module.linkslistnoPages of the panel (plain links).
module.links[].labelstringnoLink text.
module.links[].urlurlnoLink.
module.usageobjectyesLive game server usage, null when unknown.
module.usage.statestringyesrunning, offline …
module.usage.cpufloatyesCPU in percent.
module.usage.memory_mbintyesMemory in MB.
module.usage.disk_mbintyesDisk in MB.
module.web_usagelistnoWhat the hosting panel reported (disk, mailboxes, …).
module.web_usage[].namestringnoWhat is counted.
module.web_usage[].usedstringnoUsed (readable).
module.web_usage[].limitstringyesLimit (readable), null when unlimited.
module.web_usage[].percentintnoUsed in percent, 0 when unlimited.
module.usage_atdatetimeyesWhen web_usage was checked, null when never.
module.gamestringyesGame, server type and version, null for web hosting.
module.game_pendingboolnoA game change is in progress.
module.game_urlurlyesChange game settings page, null when nothing may change now.
module.passwordboolnoThe customer may set the panel password (nx.remote_password_form()).
module.ai_usageobjectyesAI access usage (kind litellm), null for other services. Never the key itself: nx.ai_key() shows the base URL and the Show key / New key buttons.
module.ai_usage.billingstringnoflat (included budget) or metered (pay per use).
module.ai_usage.spend_usdstringnoSpend this period in USD (readable).
module.ai_usage.budget_usdstringyesIncluded budget in USD (readable), null when none.
module.ai_usage.chargedstringyesCharged from the balance this period (readable), null for a flat product.
module.ai_usage.runway_daysintyesDays the balance lasts, null when unknown.
module.ai_usage.balance_used_upboolnoSuspended because the balance is used up.
module.ai_usage.base_urlstringnoAPI base URL.
module.ai_usage.key_hintstringnoLast 4 characters of the key, empty when unknown.
module.ai_usage.modelslistnoUsage per model.
module.ai_usage.models[].modelstringnoModel name.
module.ai_usage.models[].requestsintnoRequests.
module.ai_usage.models[].tokensintnoTokens.
module.ai_usage.models[].spend_usdstringnoSpend in USD (readable).
module.ai_usage.updated_atdatetimeyesWhen the usage was pulled, null when never.
KeyTrue when
billingThe subscription actions apply.
cancelThe service can be cancelled (active, billed here, not cancelled yet).
ActionMethodTargetFieldsErrors
auto_renewPOST/portal/services/{id}/auto-renewon: 1 = on, 0 = off.none
renewPOST/portal/services/{id}/renewnonenone
planPOST/portal/services/{id}/planplan_id: plan_options[].plan_id. quoted: plan_options[].quoted.none
addonPOST/portal/services/{id}/addonsextra_id: addon_offers[].id. quantity: 1 to max. quoted: addon_offers[].quoted.none
addon_removePOST/portal/services/{id}/addons/{addon}/removenonenone
cancelGET/portal/services/{id}/cancelnonenone
cancel_withdrawPOST/portal/services/{id}/cancel/withdrawnonenone
usage_confirmPOST/portal/services/{id}/usage-confirmnoneToo many attempts. Please wait a minute.
subscription_cancelPOST/portal/services/{id}/subscription/cancelnonenone
openPOST/portal/services/{id}/opennoneToo many attempts. Please wait a minute.
gameGET/portal/services/{id}/gamenonenone
{
"service": {
"id": 1,
"name": "My site",
"status": "active",
"plan": "Web S",
"section": "other",
"price": "5.00 EUR",
"period_days": 30,
"free": false,
"billed": true,
"paid_until": null,
"renews_at": null,
"delete_at": null,
"ordered_at": null,
"active_since": null,
"auto_renew": true,
"cancelled": false,
"cancelled_at": null,
"gateway_subscription": false,
"message": null,
"note_html": null,
"manage_url": null,
"usage_confirm": {
"due_at": "2026-11-20 00:00:00",
"suspended": false
}
},
"plan_options": [
{
"plan_id": 2,
"name": "Web M",
"price": "2.50 EUR",
"quoted": 250,
"period_price": "10.00 EUR"
}
],
"addon_offers": [
{
"id": 3,
"name": "Extra mailbox",
"price": "0.50 EUR",
"quoted": 50,
"period_price": "1.00 EUR",
"max": 5
}
],
"addons": [
{
"id": 4,
"name": "Extra mailbox",
"quantity": 1,
"remove_url": "/portal/services/1/addons/4/remove"
}
],
"change_block": null,
"module": {
"kind": "plesk",
"label": "Plesk",
"logo_url": null,
"state": "ready",
"notice": null,
"domain": "example.com",
"address": null,
"domains": [
{
"name": "example.com"
}
],
"open_url": null,
"panel_url": null,
"links": [
{
"label": "Websites",
"url": "https://panel.example.com/list/web/"
}
],
"usage": {
"state": "running",
"cpu": 12.5,
"memory_mb": 1024,
"disk_mb": 2048
},
"web_usage": [
{
"name": "Disk",
"used": "120 MB",
"limit": "10.0 GB",
"percent": 1
}
],
"usage_at": null,
"game": null,
"game_pending": false,
"game_url": null,
"password": false,
"ai_usage": {
"billing": "flat",
"spend_usd": "$1.25",
"budget_usd": "$5.00",
"charged": null,
"runway_days": null,
"balance_used_up": false,
"base_url": "https://llm.example.com/v1",
"key_hint": "abcd",
"models": [
{
"model": "gpt-4o",
"requests": 10,
"tokens": 1200,
"spend_usd": "$0.40"
}
],
"updated_at": null
}
}
}

A server share invitation. Accepting checks again that the signed-in customer has the invited address.

  • Title: Shared server
  • Area: customer portal
  • Template: templates/shares/accept.twig (shares/accept.twig)
  • URL: /portal/shares/accept/{token}
VariableTypeNullDescription
validboolnoThe invitation can be accepted (false: expired, used or unknown; every other value is empty).
owner_emailstringnoAddress of the owner who sent the invitation; empty unless you are signed in with the invited address.
server_namestringnoName of the shared server.
rolestringnomanage or view.
accept_urlurlyesPOST here (with csrf_field()) to accept, null when not valid.
ActionMethodTargetFieldsErrors
acceptPOST/portal/shares/accept/{token}noneThis invitation is not valid for your account. Sign in with the invited email address, or ask the owner for a new invitation.
{
"valid": true,
"owner_email": "[email protected]",
"server_name": "web-1",
"role": "view",
"accept_url": "/portal/shares/accept/0123abcd"
}

Shown for a server (route server_shop_cancel) and a service (route service_cancel). A form posting reason (optional, up to 255 characters) to cancel_url cancels it: the server or service runs until paid_until, then stops, and ends for good on delete_at. An hourly server ends at once.

  • Title: Cancel your subscription
  • Area: customer portal
  • Template: templates/shop/cancel.twig (shop/cancel.twig)
  • URL: /portal/hosts/{host}/guests/{type}/{vmid}/shop/cancel
VariableTypeNullDescription
subjectstringnoserver or service.
namestringnoName of the server or service.
planstringnoProduct name, may be empty.
paid_untildatetimeyesIt keeps running until then.
delete_atdatetimeyesA server and its data are deleted (a service ends for good) then.
hourlyboolnoAn hourly server: cancelling ends and deletes it now.
gateway_subscriptionboolnoPaid automatically: no further payment is taken.
cancelled_atdatetimeyesAlready cancelled then (show no form), null otherwise.
cancel_urlurlnoPOST the form here.
back_urlurlnoKeep it: back to the server or service page.
ActionMethodTargetFieldsErrors
cancelPOST/portal/services/{id}/cancelreason: Why the customer leaves (optional).none
cancel_serverPOST/portal/hosts/{host}/guests/{type}/{vmid}/shop/cancelreason: Why the customer leaves (optional).none
{
"subject": "server",
"name": "web-1",
"plan": "VPS S",
"paid_until": "2026-12-01 00:00:00",
"delete_at": "2026-12-04 00:00:00",
"hourly": false,
"gateway_subscription": false,
"cancelled_at": null,
"cancel_url": "/portal/services/1/cancel",
"back_url": "/portal/services/1"
}

One category of the shop. Filters are a plain GET form to form_url: one select per filter (name = key, empty value = any), price_min / price_max (decimal numbers) when price is set, sort, and game when game_slug is set. Unknown values are ignored by NexoVirt. A filter is listed only when the products differ in it.

  • Title: Shop category
  • Area: customer portal
  • Template: templates/shop/category.twig (shop/category.twig)
  • URL: /portal/shop/c/{slug}
VariableTypeNullDescription
categoryobjectnoThe category.
category.namestringnoCategory name.
category.descriptionstringnoDescription, may be empty.
category.image_urlurlyesCategory picture, null when none.
category.icon_svghtmlnoThe category icon as an inline SVG (class nx-icon).
productslistnoThe products matching the filters, in the chosen order.
products[].idintnoProduct id.
products[].namestringnoProduct name as shown in the shop.
products[].taglinestringyesShort line under the name, null when none.
products[].badgestringyesHighlight badge (for example Popular), null when none.
products[].descriptionstringyesProduct description, null when none.
products[].typestringnoserver or service.
products[].type_labelstringnoVirtual machine, Container or Service; empty when the provider hides the server type.
products[].freeboolnoA free product (nothing to pay).
products[].pricemoneynoPrice per period for this customer (discounts included).
products[].list_pricemoneyyesPrice before the customer discount, null when there is no discount.
products[].periodstringnoLength of one period.
products[].period_namestringnoName of the period.
products[].setup_feemoneyyesOne-time setup fee, null when none.
products[].specsobjectyesSize of a server product, null for a service.
products[].specs.coresintnovCPU cores.
products[].specs.memory_mbintnoMemory in MB.
products[].specs.disk_gbintnoBoot disk in GB.
products[].specs.disksstringnoAll disks as text (sizes and disk types).
products[].featureslistnoFeature lines (plain text): traffic, port speed, IP addresses, CPU, backups, the provider’s own lines …
products[].gameslistnoGames of a game server product (empty otherwise).
products[].games[].namestringnoGame name.
products[].games[].image_urlurlyesGame picture, null when none.
products[].other_periodslistnoThe other billing periods of the product.
products[].other_periods[].namestringnoPeriod name.
products[].other_periods[].pricemoneynoPrice of that period.
products[].stock_leftintyesUnits left, null when not limited.
products[].stock_labelstringnoSold out, Only 3 left, or empty.
products[].sold_outboolnoNothing left to order.
products[].coveredboolnoThe customer’s balance covers the first payment.
products[].order_urlurlnoThe order page.
totalintnoProducts in the category before filtering.
filteredboolnoA filter is active (show “Clear filters”).
filterslistnoSelect filters of this category.
filters[].keystringnoGET name: cores, memory, disk, period, location, os, network or type.
filters[].labelstringnoReadable name.
filters[].optionslistnoChoices (add your own empty “Any” choice).
filters[].options[].valuestringnoGET value.
filters[].options[].labelstringnoReadable name.
filters[].options[].activeboolnoCurrently chosen.
priceobjectyesThe price range filter, null when not shown.
price.labelstringnoReadable name.
price.minstringnoLowest product price as a decimal number (placeholder).
price.maxstringnoHighest product price as a decimal number (placeholder).
price.value_minstringyesCurrent price_min, null when not set.
price.value_maxstringyesCurrent price_max, null when not set.
sortobjectnoSort order (GET name sort).
sort.valuestringnoCurrent value, empty = recommended.
sort.optionslistnoChoices.
sort.options[].valuestringnoGET value.
sort.options[].labelstringnoReadable name.
gameslistnoGame tiles of a game server category with several games (each narrows the products), else empty.
games[].namestringnoGame name.
games[].image_urlurlyesGame picture, null when none.
games[].urlurlnoThis category for that game (for the active one: without the game).
games[].activeboolnoCurrently chosen.
gameobjectyesThe one game of a category that sells a single game, else null.
game.namestringnoGame name.
game.image_urlurlyesGame picture, null when none.
game_slugstringyesThe chosen game (send it as game with the filter form), null when none.
form_urlurlnoGET the filter form here; also the link without filters.
balancemoneynoThe customer’s balance.
back_urlurlnoThe shop start page.
{
"category": {
"name": "Cloud servers",
"description": "",
"image_url": null,
"icon_svg": "<svg></svg>"
},
"products": [
{
"id": 3,
"name": "VPS S",
"tagline": null,
"badge": null,
"description": null,
"type": "server",
"type_label": "Virtual machine",
"free": false,
"price": "5.00 EUR",
"list_price": null,
"period": "30 days",
"period_name": "Monthly",
"setup_fee": null,
"specs": {
"cores": 2,
"memory_mb": 2048,
"disk_gb": 20,
"disks": "20 GB NVMe"
},
"features": [],
"games": [
{
"name": "Minecraft",
"image_url": null
}
],
"other_periods": [
{
"name": "Yearly",
"price": "50.00 EUR"
}
],
"stock_left": null,
"stock_label": "",
"sold_out": false,
"covered": true,
"order_url": "/portal/shop/3"
}
],
"total": 4,
"filtered": false,
"filters": [
{
"key": "cores",
"label": "vCPU",
"options": [
{
"value": "2",
"label": "2 vCPU or more",
"active": false
}
]
}
],
"price": {
"label": "Price",
"min": "5.00",
"max": "40.00",
"value_min": null,
"value_max": null
},
"sort": {
"value": "",
"options": [
{
"value": "2",
"label": "2 vCPU or more"
}
]
},
"games": [
{
"name": "Minecraft",
"image_url": null,
"url": "/portal/shop/c/games?game=minecraft",
"active": false
}
],
"game": {
"name": "Minecraft",
"image_url": null
},
"game_slug": null,
"form_url": "/portal/shop/c/cloud",
"balance": "20.00 EUR",
"back_url": "/portal/shop"
}

The shop start page. mode categories: one card per category (link to its page); mode products: the product cards (no categories in use, or the web hosting / game server sections, route shop_section). Prices are the customer’s own (discounts included).

  • Title: Shop
  • Area: customer portal
  • Template: templates/shop/index.twig (shop/index.twig)
  • URL: /portal/shop
VariableTypeNullDescription
modestringnocategories or products.
sectionstringyeshosting or games on the section pages, else null.
categorieslistnoCategory cards (mode categories), Other last for products without a category.
categories[].namestringnoCategory name.
categories[].descriptionstringnoDescription, may be empty.
categories[].urlurlnoThe category page.
categories[].iconstringyesIcon name (server, cloud, box, cpu, database, world, shield, rocket, stack), null when the category has an image.
categories[].icon_svghtmlnoThe icon as an inline SVG (class nx-icon, fill currentColor).
categories[].image_urlurlyesCategory picture, null when none.
categories[].countintnoNumber of products.
categories[].frommoneyyesLowest price, null when unknown.
productslistnoProduct cards (mode products).
products[].idintnoProduct id.
products[].namestringnoProduct name as shown in the shop.
products[].taglinestringyesShort line under the name, null when none.
products[].badgestringyesHighlight badge (for example Popular), null when none.
products[].descriptionstringyesProduct description, null when none.
products[].typestringnoserver or service.
products[].type_labelstringnoVirtual machine, Container or Service; empty when the provider hides the server type.
products[].freeboolnoA free product (nothing to pay).
products[].pricemoneynoPrice per period for this customer (discounts included).
products[].list_pricemoneyyesPrice before the customer discount, null when there is no discount.
products[].periodstringnoLength of one period.
products[].period_namestringnoName of the period.
products[].setup_feemoneyyesOne-time setup fee, null when none.
products[].specsobjectyesSize of a server product, null for a service.
products[].specs.coresintnovCPU cores.
products[].specs.memory_mbintnoMemory in MB.
products[].specs.disk_gbintnoBoot disk in GB.
products[].specs.disksstringnoAll disks as text (sizes and disk types).
products[].featureslistnoFeature lines (plain text): traffic, port speed, IP addresses, CPU, backups, the provider’s own lines …
products[].gameslistnoGames of a game server product (empty otherwise).
products[].games[].namestringnoGame name.
products[].games[].image_urlurlyesGame picture, null when none.
products[].other_periodslistnoThe other billing periods of the product.
products[].other_periods[].namestringnoPeriod name.
products[].other_periods[].pricemoneynoPrice of that period.
products[].stock_leftintyesUnits left, null when not limited.
products[].stock_labelstringnoSold out, Only 3 left, or empty.
products[].sold_outboolnoNothing left to order.
products[].coveredboolnoThe customer’s balance covers the first payment.
products[].order_urlurlnoThe order page.
balancemoneyyesThe customer’s balance.
discountintnoCustomer discount in percent (already in the prices), 0 when none.
openboolnoThe shop takes orders.
{
"mode": "products",
"section": null,
"categories": [
{
"name": "Cloud servers",
"description": "",
"url": "/portal/shop/c/cloud",
"icon": "server",
"icon_svg": "<svg></svg>",
"image_url": null,
"count": 3,
"from": "5.00 EUR"
}
],
"products": [
{
"id": 3,
"name": "VPS S",
"tagline": null,
"badge": null,
"description": null,
"type": "server",
"type_label": "Virtual machine",
"free": false,
"price": "5.00 EUR",
"list_price": null,
"period": "30 days",
"period_name": "Monthly",
"setup_fee": null,
"specs": {
"cores": 2,
"memory_mb": 2048,
"disk_gb": 20,
"disks": "20 GB NVMe"
},
"features": [],
"games": [
{
"name": "Minecraft",
"image_url": null
}
],
"other_periods": [
{
"name": "Yearly",
"price": "50.00 EUR"
}
],
"stock_left": null,
"stock_label": "",
"sold_out": false,
"covered": true,
"order_url": "/portal/shop/3"
}
],
"balance": "20.00 EUR",
"discount": 0,
"open": true
}

Order one product. The theme shows the product (name, specs, features, billing periods as links to their own order page); nx.order_form() places the order itself: notices (sold out, balance too low, free product), game choice of a game server, operating system, location, name, root password, SSH keys, add-ons, billing, the price summary that follows the choices, coupon, the consent checkboxes of the shop’s legal texts and the pay buttons (balance, card, PayPal; a gateway opens through a NexoVirt hand-off page). Every price is computed again by NexoVirt when the order is placed.

  • Title: Order
  • Area: customer portal
  • Template: templates/shop/order.twig (shop/order.twig)
  • URL: /portal/shop/{id}
  • Required blocks (exactly once): nx.order_form()
VariableTypeNullDescription
productobjectnoThe product.
product.idintnoProduct id.
product.namestringnoProduct name as shown in the shop.
product.taglinestringyesShort line under the name, null when none.
product.badgestringyesHighlight badge (for example Popular), null when none.
product.descriptionstringyesProduct description, null when none.
product.typestringnoserver or service.
product.type_labelstringnoVirtual machine, Container or Service; empty when the provider hides the server type.
product.freeboolnoA free product (nothing to pay).
product.pricemoneynoPrice per period for this customer (discounts included).
product.list_pricemoneyyesPrice before the customer discount, null when there is no discount.
product.periodstringnoLength of one period.
product.period_namestringnoName of the period.
product.setup_feemoneyyesOne-time setup fee, null when none.
product.specsobjectyesSize of a server product, null for a service.
product.specs.coresintnovCPU cores.
product.specs.memory_mbintnoMemory in MB.
product.specs.disk_gbintnoBoot disk in GB.
product.specs.disksstringnoAll disks as text (sizes and disk types).
product.featureslistnoFeature lines (plain text): traffic, port speed, IP addresses, CPU, backups, the provider’s own lines …
product.gameslistnoGames of a game server product (empty otherwise).
product.games[].namestringnoGame name.
product.games[].image_urlurlyesGame picture, null when none.
product.other_periodslistnoThe other billing periods of the product.
product.other_periods[].namestringnoPeriod name.
product.other_periods[].pricemoneynoPrice of that period.
product.stock_leftintyesUnits left, null when not limited.
product.stock_labelstringnoSold out, Only 3 left, or empty.
product.sold_outboolnoNothing left to order.
product.coveredboolnoThe customer’s balance covers the first payment.
product.order_urlurlnoThe order page.
product.periodslistnoBilling periods when the product has several (each its own order page), else empty.
product.periods[].namestringnoPeriod name.
product.periods[].pricemoneynoPrice of the period.
product.periods[].savingstringyesSaving against the dearest period, for example “Save 17 %”, null when none.
product.periods[].urlurlnoThe order page of that period.
product.periods[].activeboolnoThe period of this page.
product.locationslistnoLocations the customer picks from in the form (names), empty when only one.
product.networkstringyesNetwork note, for example “Internal network (no public IP)”, null for a normal public network.
product.hourlyobjectyesSet when the product can also be billed by the hour, else null.
product.hourly.price_per_hourstringnoPrice per hour (four decimals).
product.hourly.minmoneynoBalance needed to start.
balancemoneynoThe customer’s balance.
back_urlurlnoBack to the product’s category or the shop.
ActionMethodTargetFieldsErrors
placePOST/portal/shop/{id}/order(order_form): Sent by nx.order_form(): the order paid from the balance.none
checkoutPOST/portal/shop/{id}/checkout(order_form): Sent by nx.order_form(): pay at a gateway (a NexoVirt hand-off page continues there).none
{
"product": {
"id": 3,
"name": "VPS S",
"tagline": null,
"badge": null,
"description": null,
"type": "server",
"type_label": "Virtual machine",
"free": false,
"price": "5.00 EUR",
"list_price": null,
"period": "30 days",
"period_name": "Monthly",
"setup_fee": null,
"specs": {
"cores": 2,
"memory_mb": 2048,
"disk_gb": 20,
"disks": "20 GB NVMe"
},
"features": [],
"games": [
{
"name": "Minecraft",
"image_url": null
}
],
"other_periods": [
{
"name": "Yearly",
"price": "50.00 EUR"
}
],
"stock_left": null,
"stock_label": "",
"sold_out": false,
"covered": true,
"order_url": "/portal/shop/3",
"periods": [
{
"name": "Yearly",
"price": "50.00 EUR",
"saving": null,
"url": "/portal/shop/4",
"active": true
}
],
"locations": [],
"network": null,
"hourly": {
"price_per_hour": "0.0068 EUR",
"min": "0.17 EUR"
}
},
"balance": "20.00 EUR",
"back_url": "/portal/shop"
}

The customer’s stored SSH public keys, used when a server is created or reinstalled.

  • Title: SSH keys
  • Area: customer portal
  • Template: templates/ssh_keys.twig (ssh_keys.twig)
  • URL: /portal/ssh-keys
VariableTypeNullDescription
keyslistnoStored keys, oldest first.
keys[].idintnoKey id.
keys[].namestringnoName the customer gave the key.
keys[].fingerprintstringnoSHA256 fingerprint.
keys[].created_atdatetimeyesWhen the key was added.
keys[].delete_urlurlnoPOST here (with csrf_field()) to delete the key.
ActionMethodTargetFieldsErrors
addPOST/portal/ssh-keysname: Key name (optional). public_key: The OpenSSH public key.Invalid public key. Key already added.
deletePOST/portal/ssh-keys/{id}/deletenonenone
{
"keys": [
{
"id": 1,
"name": "laptop",
"fingerprint": "SHA256:Zm9vYmFy",
"created_at": "2026-11-10 10:00:00",
"delete_url": "/portal/ssh-keys/1/delete"
}
]
}

Service status: location states with 90 days of uptime, open and planned notices. Public node names only.

  • Title: Status
  • Area: customer portal
  • Template: templates/status.twig (status.twig)
  • URL: /portal/status
VariableTypeNullDescription
modestringnobuiltin, or embed when the provider’s own status page is shown.
embed_urlurlyesPage to show in a frame (mode embed), else null.
overallstringnooperational, maintenance, degraded or outage.
nodeslistnoLocations (empty in embed mode).
nodes[].namestringnoPublic name.
nodes[].statestringnooperational, maintenance or outage.
nodes[].dayslistnoOldest first.
nodes[].days[].datestringnoDay (Y-m-d).
nodes[].days[].uptimefloatyesUptime in percent, null without data.
noticeslistnoOpen notices, newest first.
notices[].titlestringnoTitle.
notices[].levelstringnomaintenance, incident, info or roadmap.
notices[].body_htmlhtmlnoText, escaped, line breaks kept.
notices[].starts_atdatetimeyesStart.
otherlistnoPlanned notices, then recently resolved ones.
other[].titlestringnoTitle.
other[].levelstringnomaintenance, incident, info or roadmap.
other[].body_htmlhtmlnoText, escaped, line breaks kept.
other[].starts_atdatetimeyesStart.
{
"mode": "builtin",
"embed_url": null,
"overall": "operational",
"nodes": [
{
"name": "Frankfurt 1",
"state": "operational",
"days": [
{
"date": "2026-11-10",
"uptime": null
}
]
}
],
"notices": [
{
"title": "Network maintenance",
"level": "maintenance",
"body_html": "",
"starts_at": "2026-11-10 10:00:00"
}
],
"other": [
{
"title": "Network maintenance",
"level": "maintenance",
"body_html": "",
"starts_at": "2026-11-10 10:00:00"
}
]
}

The customer’s support tickets and the form to open a new one.

  • Title: Tickets
  • Area: customer portal
  • Template: templates/tickets/index.twig (tickets/index.twig)
  • URL: /portal/tickets
VariableTypeNullDescription
ticketslistnoTickets, last reply first.
tickets[].numberintnoTicket number.
tickets[].subjectstringnoSubject.
tickets[].statusstringnoopen (waiting for support), answered or closed.
tickets[].updated_atdatetimeyesLast reply.
tickets[].urlurlnoThe ticket page.
serverslistnoServers a ticket can be about.
servers[].valuestringnoValue of the server field.
servers[].labelstringnoServer name.
topicslistnoTopics; when not empty the topic field is required.
topics[].idintnoValue of the topic field.
topics[].namestringnoTopic name.
ActionMethodTargetFieldsErrors
createPOST/portal/tickets (multipart)subject: Subject (3 to 150 characters). body: Message (plain text). server: A server value, optional. topic: A topic id (required when topics exist). attachments[]: Files, optional.Too many tickets in the last hour.
{
"tickets": [
{
"number": 1234,
"subject": "Help",
"status": "open",
"updated_at": "2026-11-10 10:00:00",
"url": "/portal/tickets/1234"
}
],
"servers": [
{
"value": "1:qemu:100",
"label": "web (100)"
}
],
"topics": [
{
"id": 1,
"name": "Billing"
}
]
}

One support ticket: its messages, reply form and close button.

  • Title: Ticket
  • Area: customer portal
  • Template: templates/tickets/show.twig (tickets/show.twig)
  • URL: /portal/tickets/{number}
VariableTypeNullDescription
ticketobjectnoThe ticket.
ticket.numberintnoTicket number.
ticket.subjectstringnoSubject.
ticket.statusstringnoopen (waiting for support), answered or closed.
ticket.created_atdatetimeyesOpened.
ticket.topicstringyesTopic name, null when none.
ticket.serverstringyesServer the ticket is about, null when none.
messageslistnoMessages, oldest first.
messages[].fromstringnoyou or staff.
messages[].namestringnoYou or Support.
messages[].body_htmlhtmlnoMessage text, escaped, line breaks kept.
messages[].atdatetimeyesSent.
messages[].attachmentslistnoFiles of the message.
messages[].attachments[].namestringnoFile name.
messages[].attachments[].sizeintnoBytes.
messages[].attachments[].urlurlnoDownload link (GET); add ?inline=1 to show an image.
KeyTrue when
replyThe customer may reply (always true).
closeThe ticket is not closed yet.
ActionMethodTargetFieldsErrors
replyPOST/portal/tickets/{number}/reply (multipart)body: Message (plain text). attachments[]: Files, optional.Too many messages in the last hour.
closePOST/portal/tickets/{number}/closenonenone
{
"ticket": {
"number": 1234,
"subject": "Help",
"status": "open",
"created_at": "2026-11-10 10:00:00",
"topic": null,
"server": null
},
"messages": [
{
"from": "you",
"name": "You",
"body_html": "Hello",
"at": "2026-11-10 10:00:00",
"attachments": [
{
"name": "log.txt",
"size": 1024,
"url": "/portal/tickets/1/attachments/1"
}
]
}
]
}

WireGuard access to the customer’s servers. nx.vpn_devices() is required: device list, add device, new config, revoke; the config and its private key are shown once inside the block. Theme scripts never run on this page.

  • Title: VPN
  • Area: customer portal
  • Template: templates/vpn.twig (vpn.twig)
  • URL: /portal/vpn
  • Theme JavaScript: never runs on this page
  • Required blocks (exactly once): nx.vpn_devices()
VariableTypeNullDescription
limitintnoMost devices the customer may have.
usedintnoDevices the customer has.
reachablelistnoServers reachable over the VPN.
reachable[].namestringnoServer name, empty when unknown.
reachable[].ipstringnoAddress reached through the VPN.
{
"limit": 5,
"used": 1,
"reachable": [
{
"name": "web",
"ip": "10.20.0.5"
}
]
}

NexoVirt is developed and designed by Nucez Software, your partner for custom software and web design.