VPSnet Macro payments API

Macro payments

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/macro-payments-system/projects List macro-payment integration projects #
POST /account/macro-payments-system/projects Create a macro-payment integration project #
GET /account/macro-payments-system/projects/{id} Get one macro-payment integration project #
POST /account/macro-payments-system/projects/{id} Update a macro-payment integration project #
DELETE /account/macro-payments-system/projects/{id} Delete a macro-payment integration project #
GET /account/macro-payments-system/history List macro-payment transaction history #
GET /account/macro-payments-system/responses List macro-payment callback deliveries #
POST /account/macro-payments-system/responses/{id} Retry a failed macro-payment callback #

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-macro-payments-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-macro-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VPSnet Macro 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: Macro payments
  description: Macro payments
paths:
  /account/macro-payments-system/projects:
    get:
      tags:
      - Macro payments
      summary: List macro-payment integration projects
      description: List the caller's macro-payment (payment-gateway integration) projects. Response is an object with a records array and pagination, not a bare array. FREE (read-only).
      operationId: getMacroPaymentProjects
      x-required-scope: payments:read
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  records:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        project:
                          type: string
                        link:
                          type: string
                  pagination:
                    $ref: '#/components/schemas/pagination'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
      security:
      - apiKey: []
    post:
      tags:
      - Macro payments
      summary: Create a macro-payment integration project
      operationId: createMacroPaymentProject
      x-required-scope: payments:manage
      description: Create a project and its HTTP(S) callback destination. The callback signing password is write-only and is never returned by read endpoints.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - project
              - password
              - link
              properties:
                project:
                  type: string
                password:
                  type: string
                  writeOnly: true
                link:
                  type: string
                  format: uri
      responses:
        '200':
          description: Project created
        '401':
          $ref: '#/components/responses/UnauthorizedError'
      security:
      - apiKey: []
  /account/macro-payments-system/projects/{id}:
    get:
      tags:
      - Macro payments
      summary: Get one macro-payment integration project
      operationId: getMacroPaymentProject
      x-required-scope: payments:read
      parameters:
      - $ref: '#/components/parameters/NumericId'
      responses:
        '200':
          description: Project name and callback URL; signing password excluded
        '404':
          description: Project not found or not owned by the caller
      security:
      - apiKey: []
    post:
      tags:
      - Macro payments
      summary: Update a macro-payment integration project
      operationId: updateMacroPaymentProject
      x-required-scope: payments:manage
      parameters:
      - $ref: '#/components/parameters/NumericId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - password
              - link
              properties:
                password:
                  type: string
                  writeOnly: true
                link:
                  type: string
                  format: uri
      responses:
        '200':
          description: Project updated
        '404':
          description: Project not found or not owned by the caller
      security:
      - apiKey: []
    delete:
      tags:
      - Macro payments
      summary: Delete a macro-payment integration project
      operationId: deleteMacroPaymentProject
      x-required-scope: payments:manage
      parameters:
      - $ref: '#/components/parameters/NumericId'
      responses:
        '200':
          description: Project deleted
        '404':
          description: Project not found or not owned by the caller
      security:
      - apiKey: []
  /account/macro-payments-system/history:
    get:
      tags:
      - Macro payments
      summary: List macro-payment transaction history
      operationId: listMacroPaymentHistory
      x-required-scope: payments:read
      parameters:
      - $ref: '#/components/parameters/Page'
      responses:
        '200':
          description: Paginated transaction history
        '401':
          $ref: '#/components/responses/UnauthorizedError'
      security:
      - apiKey: []
  /account/macro-payments-system/responses:
    get:
      tags:
      - Macro payments
      summary: List macro-payment callback deliveries
      operationId: listMacroPaymentCallbackResponses
      x-required-scope: payments:read
      parameters:
      - $ref: '#/components/parameters/Page'
      responses:
        '200':
          description: Paginated callback response states
        '401':
          $ref: '#/components/responses/UnauthorizedError'
      security:
      - apiKey: []
  /account/macro-payments-system/responses/{id}:
    post:
      tags:
      - Macro payments
      summary: Retry a failed macro-payment callback
      description: Retry one failed callback owned by the caller. Callback replay is POST-only; the legacy GET alias deliberately returns 405.
      operationId: retryMacroPaymentCallback
      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:
    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
    pagination:
      description: Standard pagination envelope
      type: object
      properties:
        pages:
          type: integer
        page:
          type: integer
        perPage:
          type: integer
        total:
          type: integer
  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