VPSnet Private networking API

Account-owned network and port intent, reservation eligibility, and operation polling.

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 2

GET /account/networking/projects/{project}/networks/{network}/security-policy Read the network default, assigned groups and policy application status #
PUT /account/networking/projects/{project}/networks/{network}/security-policy Change the automatic policy for this network's servers without custom groups #

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-private-networking-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-private-networking-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VPSnet Private networking 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: Private networking
  description: Account-owned network and port intent, reservation eligibility, and operation polling.
paths:
  /account/networking/projects/{project}/networks/{network}/security-policy:
    get:
      tags:
      - Private networking
      operationId: getNetworkSecurityPolicy
      summary: Read the network default, assigned groups and policy application status
      security:
      - apiKey: []
      x-api-key-scopes:
      - networking:read
      responses:
        '200':
          description: Desired policy and independently confirmed application state.
          content:
            application/json:
              schema:
                $ref: ./private-networking-v1.yml#/components/schemas/NetworkSecurityPolicy
        '401':
          $ref: ./private-networking-v1.yml#/components/responses/Unauthorized
        '403':
          $ref: ./private-networking-v1.yml#/components/responses/ReadScopeRequired
        '404':
          $ref: ./private-networking-v1.yml#/components/responses/NotFound
      parameters:
      - name: project
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: network
        in: path
        required: true
        schema:
          type: string
          format: uuid
    put:
      tags:
      - Private networking
      operationId: changeNetworkDefaultPolicy
      summary: Change the automatic policy for this network's servers without custom groups
      description: Changes only the immutable automatic group's ordinary allow rules. Existing custom groups retain their restrictions. Requires networking:manage, full API-key access and open 2FA locks for the network's servers. Existing network policy generation, default-group revision, idempotency, placement, writer and chassis confirmation protections remain in force. Legacy default groups referenced by another network must first be unbound there (security_group_referenced). On an empty network or one where every port uses custom groups, the default revision may advance without a new packet-policy generation. An uncertain outcome must be recovered with the same request body and Idempotency-Key.
      security:
      - apiKey: []
      x-api-key-scopes:
      - networking:manage
      x-api-key-access: full
      parameters:
      - name: project
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: network
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - $ref: ./sdn-products-v1.yml#/components/parameters/SecurityKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: ./private-networking-v1.yml#/components/schemas/ChangeNetworkDefaultPolicy
      responses:
        '200':
          description: Accepted desired policy, or outcome unchanged. Confirmation remains in the policy state and generation fields.
          content:
            application/json:
              schema:
                type: object
                properties:
                  policy:
                    $ref: ./private-networking-v1.yml#/components/schemas/NetworkSecurityPolicy
                  policies:
                    type: array
                    items:
                      type: object
                  outcome:
                    type: string
                    enum:
                    - unchanged
        '401':
          $ref: ./private-networking-v1.yml#/components/responses/Unauthorized
        '403':
          $ref: ./private-networking-v1.yml#/components/responses/ManageScopeRequired
        '404':
          $ref: ./private-networking-v1.yml#/components/responses/NotFound
        '409':
          description: security_policy_generation_conflict, security_group_revision_conflict, security_policy_change_in_flight, security_policy_not_bound, security_policy_retired or security_group_referenced. Refresh policy before a new change.
        '422':
          description: security_policy_invalid_default, security_policy_default_unavailable, invalid fields/revisions or security_group_quota_exceeded.
        '423':
          $ref: '#/components/responses/ServiceTwoFactorLockedError'
        '503':
          $ref: ./private-networking-v1.yml#/components/responses/Unavailable
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
  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