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-ai-assistant-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: 3.2.0
info:
title: VPSnet AI Assistant 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: AI Assistant
description: Per-service VPSnet AI assistant helpers - session bootstrap, SSH key deployment, and usage/billing status. Bootstrap and SSH key deployment require an interactive portal session and reject X-API-KEY callers. API keys use the separate paid OpenAI-compatible inference API.
paths:
/account/services/{orderNo}/ai/bootstrap:
post:
tags:
- AI Assistant
summary: Mint a short-lived AI assistant session token scoped to this service
description: Returns a signed, service-bound assistant session. For a Linux Cloud VPS, service_access.sshPort contains the SSH listener port detected through the guest agent so the assistant does not assume port 22. This is an interactive portal-session endpoint; X-API-KEY authentication is rejected.
operationId: aiBootstrap
parameters:
- name: orderNo
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
'403':
description: API-key authentication is not allowed on portal AI
'409':
description: 'The assistant cannot open a session for this service now. The body carries `success: false`, a `message` and a stable `code`: service_has_no_public_ipv4 (the server has no public IPv4 address the assistant can reach), service_not_running, service_provisioning, service_quarantined, guest_agent_unavailable (Cloud VPS without a responding QEMU guest agent) or guest_identity_pending (the guest''s SSH host identity is not attested yet). Retrying returns the same answer until the service changes.'
'423':
$ref: '#/components/responses/ServiceTwoFactorLockedError'
security:
- sessionBearer: []
/account/services/{orderNo}/ai/deploy-key:
post:
tags:
- AI Assistant
summary: Deploy an SSH public key for an AI assistant session (async)
description: Deploys the session's expiring SSH key. For a Linux Cloud VPS, the action uses the SSH port signed into the session. When VPSnet has configured one dedicated AI egress address, it also adds a runtime-only firewall permission restricted to that exact address and port. The permission expires with the session and does not replace or disable existing guest firewall rules. This endpoint rejects X-API-KEY authentication.
operationId: aiDeployKey
parameters:
- name: orderNo
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
'403':
description: API-key authentication is not allowed on portal AI
'423':
$ref: '#/components/responses/ServiceTwoFactorLockedError'
security:
- sessionBearer: []
/account/services/{orderNo}/ai/balance-check:
get:
tags:
- AI Assistant
summary: Premium AI balance sufficiency and per-1M-token pricing
description: Interactive portal-assistant billing helper. X-API-KEY authentication is rejected; direct API-key AI usage uses the separate paid inference API.
operationId: aiBalanceCheck
parameters:
- name: orderNo
in: path
required: true
schema:
type: string
- name: required_eur
in: query
required: false
schema:
type: number
responses:
'200':
description: OK
'403':
description: API-key authentication is not allowed on portal AI
security:
- sessionBearer: []
/account/services/{orderNo}/ai/free-usage:
get:
tags:
- AI Assistant
summary: Free-tier weekly AI token usage (Monday-based window) and remaining allowance
description: Interactive portal-assistant allowance only. X-API-KEY authentication is rejected and the free allowance cannot be used through the customer API.
operationId: aiFreeUsage
parameters:
- name: orderNo
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
'403':
description: API-key authentication is not allowed on portal AI
security:
- sessionBearer: []
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