VPSnet Micro payments API
SMS keyword payment integrations and callback delivery.
SMS keyword payment integrations and callback delivery.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/vpsnet-com:vpsnet-com-micro-payments-api"
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.
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 Micro payments 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: Micro payments
description: SMS keyword payment integrations and callback delivery.
paths:
/account/micro-payments-system/history:
get:
tags:
- Micro payments
summary: List SMS micro-payment transaction history
operationId: listMicroPaymentHistory
x-required-scope: payments:read
parameters:
- $ref: '#/components/parameters/Page'
responses:
'200':
description: Paginated SMS payment history
'401':
$ref: '#/components/responses/UnauthorizedError'
security:
- apiKey: []
/account/micro-payments-system/keywords:
get:
tags:
- Micro payments
summary: List SMS keyword integrations
operationId: listMicroPaymentKeywords
x-required-scope: payments:read
parameters:
- $ref: '#/components/parameters/Page'
responses:
'200':
description: Paginated customer keyword integrations
security:
- apiKey: []
post:
tags:
- Micro payments
summary: Create an SMS keyword integration
operationId: createMicroPaymentKeyword
x-required-scope: payments:manage
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MicroPaymentKeywordWrite'
responses:
'200':
description: Keyword integration created
security:
- apiKey: []
/account/micro-payments-system/keywords/{id}:
get:
tags:
- Micro payments
summary: Get one SMS keyword integration
operationId: getMicroPaymentKeyword
x-required-scope: payments:read
parameters:
- $ref: '#/components/parameters/NumericId'
responses:
'200':
description: Keyword, callback URL and response text; password excluded
'404':
description: Keyword not found or not owned by the caller
security:
- apiKey: []
post:
tags:
- Micro payments
summary: Update an SMS keyword integration
operationId: updateMicroPaymentKeyword
x-required-scope: payments:manage
parameters:
- $ref: '#/components/parameters/NumericId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MicroPaymentKeywordWrite'
responses:
'200':
description: Keyword integration updated
security:
- apiKey: []
delete:
tags:
- Micro payments
summary: Delete an SMS keyword integration
operationId: deleteMicroPaymentKeyword
x-required-scope: payments:manage
parameters:
- $ref: '#/components/parameters/NumericId'
responses:
'200':
description: Keyword integration deleted
security:
- apiKey: []
/account/micro-payments-system/keywords/{id}/make-test:
post:
tags:
- Micro payments
summary: Send a test SMS-payment callback
operationId: testMicroPaymentKeyword
x-required-scope: payments:manage
parameters:
- $ref: '#/components/parameters/NumericId'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- country
- keyword
- input
- from
properties:
country:
type: integer
keyword:
type: string
input:
type: string
minLength: 4
maxLength: 100
from:
type: string
pattern: ^[0-9]{6,15}$
responses:
'200':
description: Test callback dispatched
security:
- apiKey: []
/account/micro-payments-system/responses:
get:
tags:
- Micro payments
summary: List SMS-payment callback deliveries
operationId: listMicroPaymentCallbackResponses
x-required-scope: payments:read
parameters:
- $ref: '#/components/parameters/Page'
responses:
'200':
description: Paginated callback response states
security:
- apiKey: []
/account/micro-payments-system/responses/{id}:
post:
tags:
- Micro payments
summary: Retry a failed SMS-payment callback
description: Retry one failed callback owned by the caller. Callback replay is POST-only; the legacy GET alias deliberately returns 405.
operationId: retryMicroPaymentCallback
x-required-scope: payments:manage
parameters:
- $ref: '#/components/parameters/NumericId'
responses:
'200':
description: Callback replayed
'404':
description: Failed callback not found or not owned by the caller
security:
- apiKey: []
components:
parameters:
Page:
name: page
in: query
required: false
schema:
type: integer
minimum: 1
default: 1
NumericId:
name: id
in: path
required: true
schema:
type: integer
minimum: 1
responses:
UnauthorizedError:
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
schemas:
MicroPaymentKeywordWrite:
type: object
required:
- password
- link
- returnText
properties:
keyword:
type: string
description: Required when creating; ignored when updating.
password:
type: string
writeOnly: true
description: Callback signing password.
link:
type: string
format: uri
description: HTTP(S) callback URL.
returnText:
type: string
description: SMS response text.
ErrorDetail:
type: object
description: Machine-readable remediation for the error in the same body. It repeats the error code and mirrors the actionable context that also appears as flat top-level keys. It never carries a credential value or a reveal receipt. The flat keys stay authoritative; a client that ignores error_detail keeps working unchanged.
required:
- code
properties:
code:
type: string
description: Repeats the stable error key of this response, for example apiKeyScopeMissing, actionInProgress, or rateLimited.
message_key:
type: string
description: Translation key for a customer-facing message.
reason:
type: string
description: Stable machine reason for the failure.
field:
type: string
description: Request field that caused a validation failure.
accepted:
type: array
description: Accepted values for the rejected field.
items:
type: string
credentials:
type: array
description: Names of generated credentials that forced this failure. Names only; never a value.
items:
type: string
resolution:
type: array
description: Request shapes that resolve this failure. Each entry names a request field and the exact value to send.
items:
type: object
required:
- field
- value
properties:
field:
type: string
value: {}
requires:
type: array
items:
type: string
description_key:
type: string
additionalProperties: true
discover_at:
type: string
description: Read operation and response path that advertises this requirement before the mutation is attempted.
retry_after:
type: integer
minimum: 1
description: Seconds to wait before retrying a rate-limited request. Mirrors the Retry-After header and whichever flat spelling the endpoint emits.
additionalProperties: true
ErrorEnvelope:
type: object
description: 'Error responses always carry 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 additionally repeat it inside error_detail, keyed by the error code, so one parsing strategy works across the API. The flat keys are never removed or renamed.'
required:
- success
properties:
success:
type: boolean
enum:
- false
message:
type: string
description: Optional human-readable message. Not machine-readable.
error_detail:
$ref: '#/components/schemas/ErrorDetail'
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