Sovereign Hybrid Compute
Buy and run sovereign virtual machines over a single HTTP API.
Authenticate with your existing SHC login and you can compare plans, order a machine, see what you own, control power, reinstall, snapshot, back up, restore, and pay invoices -- every action built to be driven by a person or an autonomous agent.
Sovereign, not just a VPS: no public cloud underneath · owner-operated hardware · billed in Bitcoin (no card, no KYC) · delegate one box to your agent with a signed Nostr grant · backups encrypted to a key only you hold · no third-party requests on any customer surface -- all independently checkable.
this origin/user-api/v2
What you can do
One machine, from order to teardown -- in plain terms
Everything below is a normal HTTP call. The grey line on each card is rendered from the same OpenAPI operation set as the full reference.
Launch & own a VM
Compare plans, validate an order, place it -- and the machine is yours in minutes.
GET /ordering/catalog -> POST /ordering/preview -> POST /ordering/submit
Operate it
Power on/off, reboot, reinstall the OS, open a live console -- from your dashboard or your code.
PATCH /vm/{serviceId}/start · PATCH /vm/{serviceId}/reinstall · POST /vm/{serviceId}/console/session
Protect your data
Snapshot before a risky change, back up on a schedule, restore in one call. Backups are encrypted to a key only you hold.
POST /vm/{serviceId}/snapshots · POST /vm/{serviceId}/backups · POST /vm/{serviceId}/backups/restore
Pay in Bitcoin
Invoices settle over Bitcoin through BTCPay. No card on file, no KYC, no third-party processor.
GET /invoices · POST /payment/{invoiceId}/checkout
Hand it to your agent
Mint a scoped, revocable agent session and let your AI operate under a bounded key without ever seeing your password.
POST /agent-sessions · GET /agent-sessions · DELETE /agent-sessions/{sessionId}
Stay in control
Inspect what you own as the source of truth, read your activity feed, manage contacts and support -- nothing hidden.
GET /vm · GET /account · GET /events
Quickstart
Authenticate in about thirty seconds
Auth is HTTP Basic with your own SHC (Blesta) login -- or a scoped API key. Send it over TLS and call GET /account to confirm you're in. Keep the password out of your shell history: give -u the username only and let curl prompt, or use a ~/.netrc at 0600.
Rather than hand an agent your password, mint a revocable key with a scope of read, operate, or full and an expiry, then send it as Authorization: Bearer shc_live_…. Keys default to 90 days; managing keys, your password, and 2FA always stays password-only.
If 2FA is on, add the current code in X-User-Api-OTP. A missing or wrong code returns 401 with X-User-Api-OTP-Required: 1, so your client knows to prompt.
Every single-object success is wrapped as {"data": …}. Every response carries an X-Request-Id you can quote when reporting an issue -- thread it across your logs and ours.
Next: GET /ordering/catalog to see what you can buy -> POST /ordering/preview to validate -> POST /ordering/submit to place it -> GET /vm for what you own.
For your AI agent
Built for autonomous agents, not just humans
The same API your bot reads is the one you're reading now. Point an agent at the machine-readable contract and it can drive the whole lifecycle -- under a key you scope and revoke.
Connect in one step
A ready-made Model Context Protocol server exposes every operation as a typed tool. Run it locally or connect to the SHC-hosted streamable endpoint.
Use native session keys
The current contract includes agent-session create, list, inspect, revoke, and audit operations for Nostr-bound delegated access.
A primer your model already understands
A lean, plain-text operation index written for models: the rules, the endpoints, and the gotchas, with nothing to scrape.
How every call behaves
Seven rules, and the rest of the API is mechanical
You only need these when you start writing code against it. Learn them once -- they hold on every endpoint.
One response shape
Every single-object success is {"data": …}. Predictable to parse, everywhere.
Capped pagination
Lists page with sane server caps -- you can't accidentally pull the whole database.
Stable error codes
Every error carries a machine error_code like vm_locked. Stop matching on message text.
Safe retries
Writes declare Idempotency-Key or body.idempotency_key where the OpenAPI contract supports replay safety.
Honest status
Billing status and live power state are separate fields, so "active" never lies about a stopped box.
True-UTC time
Every timestamp is real UTC in one format. No timezone guessing.
Async is explicit
Long jobs return a task you poll -- no silent hangs, no lost work.
Full API reference
The complete contract, grouped by area
Every operation, parameter, request body, response code, header, and example JSON is rendered from the published OpenAPI contract. Expand a group, then an endpoint, to inspect the real 179-operation reference inline.
Loading endpoint detail...
What's new
Recent changes -- v2.4.25
The full public changelog is preserved newest-first below, from the current 2.4.25 release back through the 2.4.0 baseline. Full history also lives in CHANGELOG.md.
v2.4.252026-11-19non-breaking
Why
- The AI Serving service was live for customers, but its delivery state and granted-key metadata were not
visible through the API. These two read-only operations expose the AI serving key and status listings, so a customer or agent
can check delivery without a support ticket.
Added
GET /ai-serving/keys(listAiServingKeys) returns metadata for the authenticated client's AI Serving keys:
label, key_id, status, and the last-used timestamp as an RFC 3339 last_used. It never returns key
material, principals, idempotency values, or context references.
GET /ai-serving(listAiServingStatus) returns the authenticated client's active package-323 AI Serving services with their
delivery state, claim attempts, and whether a current key is recorded.
Security
- Both operations are read-scoped in the
client_servicesarea, callable with Basic auth or a customer API key, and exposed as
MCP tools. They change no state and are not confirmation-gated.
Contract
- Operation count: 179. Additive only: no existing operation, path, request body, response shape, auth requirement,
or enforcement behaviour changed.
v2.4.242026-07-19non-breaking
This entry covers all of the day's work. It was developed as several small iterations
(2.4.16 through 2.4.24); they are consolidated here so the history reads as one change
rather than six, which is how it should have been released in the first place.
Why
- The published contract could not be code-generated.
Problem.x-error-codedeclared two values
that normalise to the same identifier key, so openapi-python-client aborted with
ValueError: Duplicate key CLOUD_INIT_POLICY_VIOLATION. Anyone regenerating a typed client was
stuck on an older release.
- The confirmation challenge behind
409 confirmation_requiredexisted only in prose. With no
schema, a generated client could not type confirmation_id and had to guess where to read it
from - and the legacy nested location is absent in some responses.
- Fourteen confirmation-gated operations did not declare a
409at all. - Nothing in the contract said which operations are reachable as MCP tools, and the advertised
tool count was the operation count.
- Several published pages described our internal build process, named another customer, or led
with cryptographic fingerprints instead of telling you how to use the API.
Added
ConfirmationChallengeschema. Readconfirmation.confirmation_id- it is always present.
The copies nested under structuredContent are legacy and may be absent. A confirmation_id
is single-use, non-secret, and is not permission: re-send the identical request with
X-User-Api-Confirm only after an explicit yes to that specific action.
Error.confirmation(optional). Optional because409is also returned for ordinary conflicts
such as idempotency-key reuse; discriminate on error.code == "confirmation_required".
- A documented
409on the fourteen gated operations that omitted one. All 53 now declare it. x-shc-mcp-exposureon every operation:exposed(157) orhidden(20), so tooling can tell
from the contract alone which operations are available as MCP tools.
Fixed
- Removed the duplicate
x-error-codeenum value that blocked code generation. No behaviour
change: the removed spelling was never emitted, and the value the server actually returns is
unchanged.
claimAgentKeyandmintVmConsoleSessionmoved to theAccountandVirtual Machinestags
they belong to, so generated clients stop producing near-empty extra classes.
serverInfo.catalog.tool_countnow reports the tools actually served (157), not the operation
count (177).
- Corrected which operations are REST-only: it is the identity and credential class - two-factor,
password, API keys, agent sessions, Nostr identity, registration and account-contact updates -
which stay Basic+OTP-only by design.
- The docs landing page now opens with what the API is, the base URL, how to authenticate and how
confirmation works. Release fingerprints are still published, at the end, where they belong.
- The API description no longer repeats release history that is already in this changelog, and no
published page describes our internal build process or names another customer.
- Improved text contrast on this documentation site. Body copy previously dropped straight from
near-white headings to a mid-grey that measured 7.3:1 on the dark theme and only 5.1:1 on the
light one, which read as washed out and made every section look like a bright title above
faded text. Body copy now sits a step higher (12.7:1 dark, 11.2:1 light), leaving the lighter
grey for genuinely secondary details like dates, version chips and endpoint hints.
Documented
- Thirteen operations that were live but whose success response was published as an unfinalised
placeholder now carry their real response schema: the four Nostr identity operations, contact
update, downloads listing, account-manager update, order fetch and pending-order cancel,
quotation approval, support-ticket feedback, and the two read-only VM term operations. Each
schema was derived by reading the handler through to its return, not inferred from the
endpoint name, so a generated client can now type these responses instead of hand-writing them.
- One operation,
changeVirtualMachineTerm, deliberately keeps its placeholder for now. It is
the one that creates a prorated invoice, and its shape could not be confirmed to the same
standard as the others. A schema we are not certain of would be worse than an honest
placeholder, so it waits until it can be verified against a live response.
Contract
- Operation count: 177. Additive and editorial only. No operation, path, request body,
response shape, auth requirement, or enforcement behaviour changed, and the operation
fingerprint is unchanged from 2.4.15. Every 409 added documents a status these operations
already returned.
v2.4.232026-07-19non-breaking
A same-day development step toward 2.4.24. See the 2.4.24 entry for the
consolidated description of what changed and why. No operation, path, request body, response
shape, auth requirement, or enforcement behaviour changed in this step.
- Operation count: 177.
v2.4.222026-07-19non-breaking
A same-day development step toward 2.4.23. See the 2.4.23 entry for the
consolidated description of what changed and why. No operation, path, request body, response
shape, auth requirement, or enforcement behaviour changed in this step.
- Operation count: 177.
v2.4.212026-07-19non-breaking
A same-day development step toward 2.4.22. See the 2.4.22 entry for the
consolidated description of what changed and why. No operation, path, request body, response
shape, auth requirement, or enforcement behaviour changed in this step.
- Operation count: 177.
v2.4.202026-07-19non-breaking
A same-day development step toward 2.4.21. See the 2.4.21 entry for the
consolidated description of what changed and why. No operation, path, request body, response
shape, auth requirement, or enforcement behaviour changed in this step.
- Operation count: 177.
v2.4.192026-07-19non-breaking
A same-day development step toward 2.4.21. See the 2.4.21 entry for the
consolidated description of what changed and why. No operation, path, request body, response
shape, auth requirement, or enforcement behaviour changed in this step.
- Operation count: 177.
v2.4.182026-07-19non-breaking
A same-day development step toward 2.4.21. See the 2.4.21 entry for the
consolidated description of what changed and why. No operation, path, request body, response
shape, auth requirement, or enforcement behaviour changed in this step.
- Operation count: 177.
v2.4.172026-07-19non-breaking
A same-day development step toward 2.4.21. See the 2.4.21 entry for the
consolidated description of what changed and why. No operation, path, request body, response
shape, auth requirement, or enforcement behaviour changed in this step.
- Operation count: 177.
v2.4.162026-07-19non-breaking
A same-day development step toward 2.4.21. See the 2.4.21 entry for the
consolidated description of what changed and why. No operation, path, request body, response
shape, auth requirement, or enforcement behaviour changed in this step.
- Operation count: 177.
v2.4.152026-07-16non-breaking
Why
- Account owners could read their two-factor status through the API but could not manage it there; enabling or disabling two-factor still required the web account form.
- A prior native-webhook delivery migration landed in the running service ahead of a release and needed to be folded into the tracked surface so the published contract matches enforcement.
Added
POST /account/2fa/enrollment(beginTwoFactorEnrollment) mints a candidate TOTP secret and returns the key, a base32 secret, and anotpauth://provisioning URI. It does not change two-factor state.POST /account/2fa(enableTwoFactor) enables TOTP two-factor. It requires the current account password and a valid one-time code for the enrolled key.DELETE /account/2fa(disableTwoFactor) disables two-factor. It requires the current account password.
Security
- All three operations are Basic-auth-plus-OTP identity operations (area
__identity__), the same class as password change and Nostr identity linking. They are not callable with an API key or an agent session; a stored credential cannot enable or disable the account's login factor. Disabling requires re-authentication, so an active session alone cannot silently strip two-factor. - Two-factor is treated as a protection toggle: enable and disable are marked
protection_togglein the operation matrix.
Changed
- Operation count: 177. Existing operations, request/response contracts, and enforcement are unchanged.
- Webhook delivery now uses the native Webhooks path; the
callbackcolumn was widened and delivery/dead-letter bookkeeping columns were added. No customer-facing request or response contract changed.
v2.4.142026-07-15non-breaking
Security
- Reclassified VM credential retrieval as a secret-read confirmation-gated operation.
- Added first ZK backup registration confirmation requirements.
- Added coherent ZK recipient status/list/register/revoke/rekey surfaces in later staged phases.
- Made ZK rekey rotate-forward by default: future backups use the new recipient set, while existing backups stay openable by the recovery keys they were sealed to until the customer re-uploads the backups they care about.
- Documented the self-custody guarantee: SHC cannot re-seal, claw back, or reach into existing backup data; exposed recovery keys are handled by rotating forward to a fresh recipient set, like sweeping a Bitcoin key to a fresh address.
- Operation count: 174.
ZK Contracts
- Added derivation and KAT contract artifacts, PQ hybrid recipient metadata, and hygiene runbooks in later staged phases.
v2.4.132026-07-14spec-accuracy
Why
- A static audit found six operations whose advertised auth metadata was weaker than what the API has always enforced. The advertisement now tells the truth; enforcement is unchanged.
Changed
- Corrected the advertised auth scope/confirmation requirement for 6 operations to match enforcement.
linkNostrIdentity,unlinkNostrIdentity, andupdateNip05are Basic-auth-plus-OTP identity operations and were never callable with an API key; they are now advertised as identity operations and no longer appear as API-key tools.updateAccountManagerandupdateContactrequire a full-scope key (an operate key has always been rejected); the spec now advertisesfull.rekeyVirtualMachineZkBackuphas always required confirmation before executing; the catalog and tool annotations now advertisex-shc-confirm-required: trueand mark it destructive.- Operation count: 169. The operation set, request/response contracts, and enforcement behavior are unchanged; only advertised auth metadata moved, in the stricter direction.
Security
- No enforcement change. Callers that already used the documented Basic-auth flow, a full-scope key, or the confirmation flow are unaffected. Generated clients that trusted the previous weaker advertisement will now correctly require the stronger credential or confirmation up front instead of failing at call time.
v2.4.122026-07-14security-hardening
Security
- Access-mutating VM operations (SSH-key apply, ISO mount, firewall changes, console session) now require confirmation, consistent with reinstall/cancel.
- Reverse-DNS writes, ISO unmount, SSH-key removal, firewall rule edits, and cloud-init apply/revert use the same confirmation flow when they alter VM access, boot, or network-security posture.
Changed
- Operation count: 169. The operation set is unchanged; this release tightens confirmation metadata and generated guidance for existing operations.
v2.4.112026-07-14non-breaking
Why
- Managed-account users needed a single confirm-gated switch operation to act on an already accepted managed client without broadening account access.
- The public changelog also needed to preserve every deployed 2.4.x customer-facing release note in order, with no gaps between the current version and the 2.4.0 floor.
Added
POST /managed-accounts/{managedClientId}/switch(switchManagedAccount) is live and confirm-gated.- The switch response returns the effective area set already granted to the manager on the target client.
- The generated changelog now includes every public release section from
2.4.11through2.4.0.
Changed
- Operation count: 169. The API version and operation count remain on the managed-account release line.
- Subsequent acting-as calls use
X-Managed-Client-Idand remain bound to the route's native area plus the manager's target-specific grant.
Security
- Managed-account acting-as requires accepted invitations plus contact permission grants and same-company relationships.
_managedis not grantable for acting-as calls.
v2.4.102026-07-13non-breaking
Why
- The contract now carries explicit bounds for strings, integers, arrays, and free-form maps so generated clients and validators can enforce safer limits without changing routes.
- The OpenAPI 3.1 document no longer uses the OpenAPI 3.0 nullability keyword; fields that may be null are represented with JSON Schema type arrays.
- Response contracts now describe the v2 handler shapes observed on live read endpoints.
Changed
- Added schema bounds across component and operation schemas:
maxLength,minimum,maximum, integerformat,maxItems,maxProperties, and bounded value schemas for intentional maps. - Added optional
RateLimitandRateLimit-Policyresponse header modeling alongside the v2 legacy rate-limit headers andRetry-After. - Added optional
DeprecationandSunsetresponse header components for the v2-to-v3 transition. - Error responses keep
application/jsonand also advertiseapplication/problem+jsonwhere problem-shaped errors are supported, preserving JSON clients while documenting RFC 9457-compatible responses.
Fixed
- Corrected live response schemas for credit-handling thresholds, contact timestamps, permission options, documents, and orders.
v2.4.92026-07-13non-breaking
Why
- Customers and agents needed one front-door call for small groups of independent reads and guarded writes without creating an authorization shortcut.
- Batching must not amplify request capacity, bypass confirmation, or hide partial failures.
Added
POST /batch(submitBatch) submits up to 25 live/user-api/v2sub-requests using the current route convention such as/vm,/events,/event-subscriptions, and/account.- Batch responses preserve request order and echo each optional sub-request
idfor correlation. - Each sub-request is best-effort and independent: a failing item returns its own status and problem details without rolling back successful siblings.
Security
- The batch wrapper requires
Idempotency-Key; replaying the same key and body returns the cachedBatchResponsewithout re-executing sub-requests. - Each sub-request is dispatched through the same native guard chain as a standalone call: bearer scope, ownership, confirmation, rate accounting, and per-operation idempotency are all evaluated against the target operation.
Changed
- A batch of N sub-requests consumes N request-rate units, rejects nested
/batch, and rejects 26 or more sub-requests. - If any sub-request targets a confirmation-gated operation, the batch wrapper also requires
X-User-Api-Confirmas an explicit acknowledgement; guarded sub-requests still require their ownconfirmvalue.
v2.4.82026-07-13non-breaking
Why
- Customers and agents needed push delivery for the existing event feed without polling loops.
- Webhook push is outbound-sensitive, so registration and delivery both enforce public HTTPS-only egress and never follow redirects.
- Delivery authenticity must be verifiable by receivers without exposing internal implementation details.
Added
POST /event-subscriptions(createEventSubscription) creates a customer-owned webhook subscription for matching CloudEvents. It requiresIdempotency-Key, returns the HMAC signing secret only in the first201response, and returns200without the secret on idempotent replay.GET /event-subscriptions(listEventSubscriptions) lists owned subscriptions without returning secrets.GET /event-subscriptions/{eventSubscriptionId}(getEventSubscription) reads one owned subscription; cross-customer ids return not found.DELETE /event-subscriptions/{eventSubscriptionId}(deleteEventSubscription) deletes one owned subscription and stops future delivery attempts.
Security
- Subscription targets must be standard-port
httpsURLs on public hosts. Registration and delivery reject loopback, private, link-local, metadata,.local, non-HTTPS, non-standard-port, and DNS-rebound targets. - Each delivery is a CloudEvents JSON body signed with
X-SHC-Webhook-Signature: sha256=<hex>using HMAC-SHA256 over the exact raw body bytes. Receivers should compare signatures in constant time.
Changed
- Delivery is asynchronous and at least once. Each attempt carries an event id and a delivery id so receivers can dedupe; retries use bounded backoff and exhausted attempts are recorded in a dead-letter store.
v2.4.72026-07-13non-breaking
Why
- Customer cloud-init needed a safe self-service path where callers provide only cloud-init content, never host paths, storage selectors, filenames, shell fragments, or host-side transport details.
- The safe transport is a server-managed cloud-init CD-ROM built from the submitted user-data and attached as the VM's single cloud-init source.
- Validation is separate from apply so customers and agents can prove the payload is
#cloud-configbefore any VM attachment. Apply is idempotency-before-confirm, so retrying a confirmed request cannot double-attach or drift state.
Added
POST /vm/{serviceId}/cloud-init/validate(validateVirtualMachineCloudInit) validates customer#cloud-configcontent and reports the derived NoCloud seed contract without touching the VM.PUT /vm/{serviceId}/cloud-init(updateVirtualMachineCloudInit) confirm-gates the ISO build/attach path. It accepts cloud-init content only, builds the NoCloud ISO server-side, attaches it as the single CIDATA source, and returns the derived attachment metadata.DELETE /vm/{serviceId}/cloud-init(deleteVirtualMachineCloudInit) confirm-gates detach and cleanup of the managed ISO, leaving unrelated disks and ISOs untouched.
Security
- Callers provide cloud-init content only. Host paths, storage selectors, filenames, shell fragments, and host-side transport details are never request fields.
- Detach and cleanup affect only the managed cloud-init media and leave unrelated disks and media untouched.
v2.4.62026-07-13non-breaking
Why
- Customer-owned automation needed native short-lived agent identity instead of reusing account passwords or full API keys.
- The proof-of-possession design binds each session to a Nostr public key and exact request method/URL, which gives agents scoped access without broad credential custody.
Added
- Native agent session identity operations are live:
createAgentSession,listAgentSessions,getAgentSession,revokeAgentSession, andlistAgentSessionAudit. createAgentSessionmints a customer-ownedshc_agent_bearer token.Idempotency-Keyis required and the plaintext token is returned once.- Agent sessions are Nostr proof-of-possession bound. Every session bearer request must include
X-User-Api-Agent-Proofwith a NIP-98 kind 27235 event signed by the session public key and bound to the exact request method and URL. - Agent session scope is
readoroperate. - Agent session audit records are customer-readable, attributed by sessionId and agentId, traceparent-aware, and carry tamper-evident hashes under
data.tamperEvidence.
Security
- Read sessions are GET-only.
- Operate sessions still cannot manage keys, passwords, 2FA, account identity, billing money movement, contacts, managers, or agent-session material.
revokeAgentSessionis confirmation-gated. An unconfirmed revoke returns 409 and does not revoke; a confirmed revoke invalidates the session immediately.
v2.4.52026-07-13non-breaking
Why
- Customers and agents needed a single owned activity stream for lifecycle, billing, order, and payment facts instead of scraping unrelated UI pages or operator-only logs.
- The feed is read-only and domain-scoped: API audit events stay separate, while business events are normalized into a stable CloudEvents shape.
Added
GET /events(listEvents), a read-scoped, customer-owned CloudEvents feed for business-domain activity.- The feed is cursor-paginated and supports
limit,cursor, andvirtualMachineId. - Lifecycle rows, owned service lifecycle/status changes, invoice created/paid events, order created events, and customer payment events are normalized into the
CloudEventresponse shape.
Changed
- API audit events remain separate and are not emitted by this operation.
- Response bodies expose
items,nextCursor, andlinks;links.selfandlinks.nextpreserve the active query parameters for stable cursor round-trips.
v2.4.42026-07-13non-breaking
Why
- Owned VM lifecycle needed a reversible park/resume lane instead of forcing customers into cancellation or support tickets when they wanted to stop spend and later resume.
- The design keeps the action customer-scoped and test-safe: preview is read-only, standby/resume are confirm-gated, and idempotency protects retries.
Added
GET /vm/{serviceId}/standby/preview(previewVirtualMachineStandby), a read-only quote returning keep-IP and release-IP recurring/credit figures pluskeep_ip_delta.POST /vm/{serviceId}/standby(standbyVirtualMachine), a confirm-gated operate-scoped lifecycle write.POST /vm/{serviceId}/resume(resumeVirtualMachine), a confirm-gated operate-scoped lifecycle write returning active state plusresume_charge.
Changed
- Standby accepts an optional body
{ "keep_ip": boolean }with defaultfalse, requiresIdempotency-Key, and returns parked state,standby_recurring,park_credit, andip_disposition. - The first unconfirmed standby/resume call returns 409
confirmation_required. - Execute a confirmed standby/resume by re-sending the byte-identical request with the same
Idempotency-KeyandX-User-Api-Confirm. - Same key plus same body replays the cached response; same key plus a different body returns 422
idempotency_key_conflict.
v2.4.32026-07-11non-breaking
Why
- The
/user-api/v2public contract had to reflect live wire behavior exactly, including lowerCamelCase path/query parameters and snake_case body fields, so REST and MCP callers could use the same truth. - Several live operations were not fully represented in the public OpenAPI and MCP surfaces; this release closed that parity gap without changing live wire behavior.
Added
- Public-contract parity operations for orders, client documents/downloads, Nostr identity link/NIP-05/unlink, support attachment/feedback, electronic invoices, contact and manager updates, VM term options/preview/commit, and quotation approval.
- MCP path-argument coverage for
updateContactwith{contactId}andupdateAccountManagerwith{ref}. - Agent docs clarify that
llms.txtis a lean agent primer plus operation index, while full per-operation parameters, request bodies, responses, and examples live indocs/operations.md.
Changed
- Request contracts use the live wire names: path parameters keep lowerCamelCase names such as
serviceId,invoiceId,ticketId,contactId, andorderId; request body fields use the live/v2snake_case names such aspricing_id,idempotency_key,first_name,nip05_name, andrating_comment. - Query parameters keep their live contract names, including
getInvoiceElectronicstringformat,listClientDocumentssort/orderenums, andlistDownloadFilescategory_id. - Confirm metadata marks exactly the confirmation-gated operations, and idempotency placement matches the route contract.
- MCP exposure is clarified: default
tools/listreturns curated tools,X-MCP-Tools: allreturns the full tool set, and binary-response additions remain REST-only.
Fixed
cancelPendingOrderaccepts no request body.- Empty JSON objects are preserved as
{}instead of being round-tripped to[].
v2.4.22026-07-11non-breaking
Why
- Customers needed to add service options and renew an existing VM from the same self-service API surface without duplicating invoices on retries.
- The commit operations intentionally use body
idempotency_key, matching pay and upgrade conventions, because they create billing artifacts.
Added
- Existing-service add-ons:
GET /vm/{serviceId}/addons(listServiceAddons),GET /vm/{serviceId}/addons/options(getServiceAddonOptions),POST /vm/{serviceId}/addons/preview(previewServiceAddon), andPOST /vm/{serviceId}/addons(createServiceAddon). createServiceAddonis a confirm-gated spend: sendX-User-Api-Confirmafter the two-step challenge, body carriesidempotency_key, and it returns the pending add-on service plus its invoice checkout pointer.- Service renewal commit:
POST /vm/{serviceId}/renew(submitVirtualMachineRenewal), a confirm-gated spend with bodyidempotency_key. - Optional
pricing_idrenews into a different term when the account permits term changes; otherwise the current term is renewed.
Changed
- Both new spend operations use the same body
idempotency_keyconvention as pay and upgrade. - Same-key retries replay the original result; they never create a duplicate invoice.
v2.4.12026-07-02non-breaking
Why
- Request-body contracts and the MCP body convention were real server behavior but were not visible enough in the public docs, forcing integrators to infer field names and tool argument shape.
- The release made the contract explicit without changing operationIds, paths, required-field sets, request/response shapes, or enums.
Added
- Every operation that accepts a request body now carries a complete
requestBodyschema and a realistic example inopenapi.json. - A root
x-mcp-argument-conventionextension and/user-api/docs/mcp-argument-convention.mdstate how MCP tool arguments map onto REST: path/query parameters are top-level tool arguments, the entire request body is a single nestedbodyobject, and the only header tool argument isIdempotency-Key. - A per-operation
x-shc-id-placementextension documents the intentional ID-placement asymmetry: firewall rules take the rule id as a path parameter (pos, no body); backups and snapshots take the id as a body field (backup_id, withsnapshot_id/idaccepted as aliases). - A complete per-operation request reference in the docs page covers all public operations.
Changed
info.versionchanged from2.4.0to2.4.1as a documentation-only patch bump.
v2.4.02026-07-02non-breaking
Why
- The public 2.4 contract needed stable machine-readable errors, UTC timestamps, richer VM summaries, cancellation-credit mirrors, and agent/MCP result consistency so customers could automate against facts instead of screen text.
Fixed
- Missing-VM lookups on
GET /vm/{service_id}/detailandPOST /vm/{service_id}/ssh-keys/apply-livereturn 404 witherror_code: not_foundinstead of 500. GET /vm/{service_id}/summaryincludes the liveruntimeobject with state, lock, CPU percent, and memory percent; it may be null when the provider read is unavailable.- All timestamps are true UTC. Date fields such as
date_createdanddate_renewsno longer emit the prior five-hour offset. GET /vm/{service_id}/activityshows the VM's own provisioning tasks.- Orders that cannot resolve an OS template are rejected up front with 422
template_required, and package-mismatchedconfig_optionsare rejected with valid option IDs. - API responses begin with JSON; the stray plaintext banner line is gone.
Added
error.error_codeon every error, with transient retry guidance inerror.retry_after_seconds.- 409 confirmation challenges mirror the non-secret ID at
confirmation.confirmation_id. - Field aliases are dual-emitted or accepted where written:
balances/credit,items/upgradable, singularservice_id, snapshot/backup aliases, andpricing_id/pricing_ref. - Cancel responses include top-level
expected_refundandtransaction_idfrom the same customer-visible cancellation-credit model as the portal. - Firewall
actionis case-insensitive on input;GET /ssh-keyaccepts?service_id=;POST /vm/{service_id}/console/sessionaccepts optionalttlclamped to 5-300 seconds. POST /agent-keys/claimis documented.- MCP returns
structuredContent.resulton every tool result, includes alistApiKeysmetadata-only tool for full-scope keys, supports legacy tool-name aliases, and stampsserverInfo.catalog.