VPSnet Snapshots API

Disk snapshots. Cloud VPS (KVM) services use /snapshots; Firecracker VPS services use /firecracker/snapshots (temporary snapshots with a free window, then billed per GB while kept). Rollback is destructive.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 8

GET /account/services/{orderNo}/snapshots List Cloud VPS disk snapshots with billing policy and usage summary #
POST /account/services/{orderNo}/snapshots Create or exactly replay a Cloud VPS disk snapshot #
POST /account/services/{orderNo}/snapshots/{snapname}/rollback Roll back to a snapshot (destroys later disk state) #
DELETE /account/services/{orderNo}/snapshots/{snapname} Delete a Cloud VPS disk snapshot #
GET /account/services/{orderNo}/firecracker/snapshots List Firecracker VPS temporary snapshots with billing state #
POST /account/services/{orderNo}/firecracker/snapshots Create a Firecracker VPS temporary snapshot (free window, then billed per GB… #
POST /account/services/{orderNo}/firecracker/snapshots/{snapshotId}/rollback Roll back a Firecracker VPS to a temporary snapshot (destroys later disk state) #
DELETE /account/services/{orderNo}/firecracker/snapshots/{snapshotId} Delete a Firecracker VPS temporary snapshot #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/vpsnet-com:vpsnet-com-snapshots-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

vpsnet-com-snapshots-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VPSnet Snapshots API
  description: 'VPSnet API reference (v1).


    Authenticated endpoints use an API key in the `X-API-KEY` header.

    Create a key in the control panel: Account → API keys

    (https://www.vpsnet.com/en/management/account/api-keys).

    Public endpoints are available under `/public/*` without authentication.

    This specification is intentionally partial and may omit fields from responses.


    Every error response follows `ErrorEnvelope`: `success: false`, a stable

    error code as a top-level boolean key, and any actionable context as

    further top-level keys (`requiredScope`, `retryAfter`/`retry_after`,

    `usageAccess`, `guestAgent`, `state`, and similar). Responses that carry

    such context now repeat it inside a nested `error_detail` object keyed by

    the same error code, so one parsing strategy works everywhere. The flat

    keys are unchanged and remain authoritative; `error_detail` is additive and

    may be ignored.

    Private networking paths resolve to private-networking-v1.yml; contract v2

    capability discovery resolves to private-networking-v2.yml. Their errors use

    reason_code alongside success=false, with explicit same-key retry advice

    for uncertain mutation outcomes.

    Service hostname/PTR operations resolve to service-identity-v1.yml. The

    isolated OpenAI-compatible inference API is published separately as

    managed-inference-v1.yml because it uses a different base URL and bearer

    credential boundary.'
  termsOfService: https://www.vpsnet.com/en/information/term-of-service
  contact:
    email: info@vpsnet.com
  version: 1.0.0
  license:
    name: VPSnet API Terms
    url: https://www.vpsnet.com/en/information/term-of-service
servers:
- url: https://api.vpsnet.com
  description: Production
tags:
- name: Snapshots
  description: Disk snapshots. Cloud VPS (KVM) services use /snapshots; Firecracker VPS services use /firecracker/snapshots (temporary snapshots with a free window, then billed per GB while kept). Rollback is destructive.
paths:
  /account/services/{orderNo}/snapshots:
    get:
      tags:
      - Snapshots
      summary: List Cloud VPS disk snapshots with billing policy and usage summary
      operationId: listSnapshots
      parameters:
      - name: orderNo
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      security:
      - apiKey: []
    post:
      tags:
      - Snapshots
      summary: Create or exactly replay a Cloud VPS disk snapshot
      description: The key is scoped to the authenticated tenant and service order. The creating intent is durable before the provider call. Reusing the key with the exact same description returns that intent; changing the payload returns 409 without creating another provider snapshot. The response and snapshot WebSocket event carry the same opaque createAttemptId so a client can correlate only its own attempt.
      operationId: createSnapshot
      parameters:
      - name: orderNo
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/VdsSnapshotCreateIdempotencyKey'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                description:
                  type:
                  - string
                  - 'null'
                idempotencyKey:
                  type: string
                  minLength: 16
                  maxLength: 190
                  description: Compatibility alias that must match the header when both are sent.
      responses:
        '200':
          description: Snapshot ready or an exact terminal replay; includes the opaque createAttemptId shared with snapshot WebSocket events.
        '202':
          description: Snapshot creation accepted or an exact pending replay; includes the opaque createAttemptId shared with snapshot WebSocket events.
        '409':
          description: Key conflict, terminal exact replay, or another snapshot action is active
        '422':
          description: Idempotency key invalid
        '423':
          $ref: '#/components/responses/ServiceTwoFactorLockedError'
      security:
      - apiKey: []
  /account/services/{orderNo}/snapshots/{snapname}/rollback:
    post:
      tags:
      - Snapshots
      summary: Roll back to a snapshot (destroys later disk state)
      operationId: rollbackSnapshot
      parameters:
      - name: orderNo
        in: path
        required: true
        schema:
          type: string
      - name: snapname
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '423':
          $ref: '#/components/responses/ServiceTwoFactorLockedError'
      security:
      - apiKey: []
  /account/services/{orderNo}/snapshots/{snapname}:
    delete:
      tags:
      - Snapshots
      summary: Delete a Cloud VPS disk snapshot
      operationId: deleteSnapshot
      parameters:
      - name: orderNo
        in: path
        required: true
        schema:
          type: string
      - name: snapname
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '423':
          $ref: '#/components/responses/ServiceTwoFactorLockedError'
      security:
      - apiKey: []
  /account/services/{orderNo}/firecracker/snapshots:
    get:
      tags:
      - Snapshots
      summary: List Firecracker VPS temporary snapshots with billing state
      operationId: listFirecrackerSnapshots
      parameters:
      - name: orderNo
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      security:
      - apiKey: []
    post:
      tags:
      - Snapshots
      summary: Create a Firecracker VPS temporary snapshot (free window, then billed per GB…
      operationId: createFirecrackerSnapshot
      parameters:
      - name: orderNo
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '409':
          description: 'actionInProgress (another action runs on the server; with moveInProgress: true while the server is being moved to another node: nothing was made or charged, try again in a few minutes), snapshotBusy (with status), snapshotCapReached (with cap, used), snapshotsNotReady, or snapshotsNotSupported.'
        '423':
          $ref: '#/components/responses/ServiceTwoFactorLockedError'
      security:
      - apiKey: []
  /account/services/{orderNo}/firecracker/snapshots/{snapshotId}/rollback:
    post:
      tags:
      - Snapshots
      summary: Roll back a Firecracker VPS to a temporary snapshot (destroys later disk state)
      operationId: rollbackFirecrackerSnapshot
      parameters:
      - name: orderNo
        in: path
        required: true
        schema:
          type: string
      - name: snapshotId
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
        '409':
          description: 'actionInProgress (another action runs on the server; with moveInProgress: true while the server is being moved to another node: nothing was changed, try again in a few minutes), snapshotBusy, or snapshotsNotSupported.'
        '423':
          $ref: '#/components/responses/ServiceTwoFactorLockedError'
      security:
      - apiKey: []
  /account/services/{orderNo}/firecracker/snapshots/{snapshotId}:
    delete:
      tags:
      - Snapshots
      summary: Delete a Firecracker VPS temporary snapshot
      operationId: deleteFirecrackerSnapshot
      parameters:
      - name: orderNo
        in: path
        required: true
        schema:
          type: string
      - name: snapshotId
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
        '409':
          description: 'actionInProgress (another action runs on the server; with moveInProgress: true while the server is being moved to another node: nothing was changed, try again in a few minutes), or snapshotBusy (with status).'
        '423':
          $ref: '#/components/responses/ServiceTwoFactorLockedError'
      security:
      - apiKey: []
components:
  responses:
    ServiceTwoFactorLockedError:
      description: 'Locked: the server''s 2FA lock is switched on and this request needs it unlocked (code serviceTwoFactorLocked with a reason). Nothing was done.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ServiceTwoFactorLockRefusal'
  schemas:
    ServiceTwoFactorLockRefusal:
      type: object
      description: 'Body of HTTP 423: the server''s 2FA lock ("2FA užraktas") is switched on and this request needs it unlocked. Nothing was done. Reading the server, renewing and paying for it (invoices, price quotes, automatic renewal on or off), and the lock''s own endpoints are never refused. unlockAvailable true means this browser session can unlock the server (POST /account/services/{orderNo}/twofa-lock/unlock) and repeat the request; false means no unlock lets this caller through.'
      required:
      - success
      - serviceTwoFactorLocked
      - code
      - reason
      - unlockAvailable
      - error_detail
      properties:
        success:
          type: boolean
          enum:
          - false
        serviceTwoFactorLocked:
          type: boolean
          enum:
          - true
          description: The flat error key; the same as code.
        code:
          type: string
          enum:
          - serviceTwoFactorLocked
        reason:
          type: string
          enum:
          - locked
          - apiKeyNotAllowed
          - assistantNotAllowed
          - impersonationNotAllowed
          - adminNeedsCustomerUnlock
          - transferNeedsLockOff
          description: 'locked - this session has no open unlock of the server (also when the lock cannot be read: the request is refused to be safe); apiKeyNotAllowed - an API key, and so the MCP, never acts on a server whose lock is switched on, unlocked or not; assistantNotAllowed - the AI assistant does not work on a locked server; impersonationNotAllowed - an administrator logged in as the customer; adminNeedsCustomerUnlock - the admin panel only; transferNeedsLockOff - a server with the lock switched on is not transferred to another account: switch the lock off first.'
        unlockAvailable:
          type: boolean
          description: True only for a browser session of the owner that can solve the unlock challenge; then the same request works after the unlock.
        orderNo:
          type: string
          example: VP88501
          description: The locked server's number, given when the request's own path does not name the server (a network, a public address, a load balancer, a security group, a VPN device, a console token, a transfer being received). Unlock that server (POST /account/services/{orderNo}/twofa-lock/unlock) and repeat the request. Absent under /account/services/{orderNo}, whose path already names it.
        error_detail:
          type: object
          description: The same values nested under the error code.
          required:
          - code
          - reason
          - unlockAvailable
          properties:
            code:
              type: string
              enum:
              - serviceTwoFactorLocked
            reason:
              type: string
            unlockAvailable:
              type: boolean
            orderNo:
              type: string
      additionalProperties: true
  parameters:
    VdsSnapshotCreateIdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: Stable tenant/order-bound key for one exact classic VDS snapshot create attempt. Reuse it after an uncertain response; never reuse it with a changed description. It is optional only for rolling compatibility with older clients, whose request cannot be replayed after a lost response.
      schema:
        type: string
        minLength: 16
        maxLength: 190
        pattern: ^[!-~]{16,190}$
  securitySchemes:
    apiKey:
      type: apiKey
      name: X-API-KEY
      in: header
      description: Account API key (`vpsnet_` + 43 characters). Every key has one request budget of 300 requests per 60 seconds by default; some operations have lower limits of their own. A refused request answers 429 with retry_after in the body and the same value in the Retry-After header, plus X-RateLimit-Limit and X-RateLimit-Remaining. API keys cannot create, change or revoke API keys (403 apiKeyForbidden, reason api_keys_cannot_manage_api_keys).
    mcpOAuth:
      type: oauth2
      description: 'AI connection (MCP client) token issued by the VPSnet OAuth 2.1 authorization server, sent as `Authorization: Bearer vpsnet_...`. Discovery: /.well-known/oauth-authorization-server/oauth/mcp. A client registers dynamically (POST /oauth/mcp/register; public, or with a secret sent by HTTP Basic or in the form body), identifies itself by a client ID metadata document URL, or uses an application the customer created in the control panel (AI connections; client ID and secret, approvable only by that account). Every client must use S256 PKCE. A `resource` parameter, when sent, must equal the VPSnet MCP server address exactly; when omitted, that address is meant. The scope names offline_access, openid, profile and email are accepted and grant nothing; any other unknown scope is refused. The customer approves the connection in the control panel; it ends 30 days after approval. Access tokens last at most 15 minutes; refresh tokens rotate on every use and a replayed one revokes the whole connection.'
      flows:
        authorizationCode:
          authorizationUrl: https://api.vpsnet.com/oauth/mcp/authorize
          tokenUrl: https://api.vpsnet.com/oauth/mcp/token
          refreshUrl: https://api.vpsnet.com/oauth/mcp/token
          scopes:
            orders:read: Inspect plans and purchase receipts on the same connection
            orders:servers: Order servers from balance within approved limits
            orders:domains: Register domains from balance within approved limits
            services:read: Read the selected services
            services:manage: Start, stop, restart and rename the selected services
            applications:read: Read applications on the selected services
            applications:manage: Install and manage applications on the selected services
            networking:read: Read account networking
            networking:manage: Change account networking (no orders or payments)
            functions:read: Read Firecracker Functions
            functions:manage: Manage Firecracker Functions
            functions:invoke: Run Functions with explicit usage-billing consent and a daily account-usage ceiling
            vm:diagnostics: Inspect OS, processes, services, ports and containers with fixed diagnostics
            vm:files:read: Read files on selected Linux servers
            vm:files:write: Create and replace files on selected Linux servers
            services:reinstall: Reinstall the selected server operating system
            services:restore: Restore or delete existing server snapshots
            vm:exec: Run commands as root on the selected Linux servers
            vm:files: Read and write files on the selected Linux servers
    sessionBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Interactive VPSnet portal session; X-API-KEY is not accepted
x-related-apis:
- name: VPSnet AI Inference API
  url: https://www.vpsnet.com/managed-inference-v1.yml