Flux Payments API

**Wallet Payment Callbacks** A rendezvous between a web page and a wallet it opens. The page mints a payment id on a node, listens on that node's `/ws/payment/` WebSocket, and gives the wallet a callback to `POST /payment/verifypayment?paymentid=`; the transaction id the wallet posts there is delivered to the waiting page. The node relays the transaction id as a claim and records nothing: it is not a payment verification. **Payment Services:** - Payment id issuance, rate-limited per caller - Wallet callback relay to the waiting browser

GitHub OpenAPI

Operations 2

GET /payment/paymentrequest Create a payment request #
POST /payment/verifypayment Deliver a wallet 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/runonflux-com:runonflux-com-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

runonflux-com-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 8.20.0
  title: Flux Decentralized Cloud Payments API
  termsOfService: https://cdn.runonflux.io/Flux_Terms_of_Service.pdf
  contact:
    name: InFlux Technologies USA LLC — Flux Development Team
    email: development@runonflux.com
    url: https://docs.runonflux.com
  license:
    name: GNU AGPLv3
    url: https://www.gnu.org/licenses/agpl-3.0.en.html
  description: '# Flux API Documentation


    Welcome to the comprehensive API reference for **Flux**, the world''s leading decentralized Web3 cloud computing platform. This documentation covers all available API endpoints for interacting with the Flux network, nodes, and decentralized applications. ## About Flux


    **Flux** is a decentralized Web3 cloud infrastructure powered by globally distributed, user-operated nodes. Built for scalability and censorship resistance, Flux eliminates single points of failure while providing enterprise-grade computing resources for deploying and managing applications. ### Key Features


    - **🌐 Decentralized Infrastructure**: ~6,400 confirmed FluxNodes worldwide providing 52,000+ CPU cores, 170TB+ RAM and 3PB+ SSD storage across three tiers (Cumulus, Nimbus, Stratus)

    - **⚡ High Performance**: Enterprise-grade computing with automatic placement, fault-domain spreading and high availability

    - **🔐 Secure by Design**: Multiple authentication methods, enterprise app encryption and runtime tampering detection

    - **💰 Cost Effective**: Competitive pricing compared to traditional cloud providers

    - **🚀 Developer Friendly**: Docker-based deployments with comprehensive API support

    - **🛡️ ArcaneOS**: Hardened, attested node operating system with hardware-backed key custody


    *Network figures are a live snapshot; query `GET /daemon/getfluxnodecount` or

    stats.runonflux.io for current totals.*


    ## API Architecture


    The Flux API uses a **seven-level permission model** to ensure secure and controlled access. Every endpoint in this document ends its description with the level it requires:


    | Permission Level | Description | Authentication Required |

    |------------------|-------------|-------------------------|

    | **Public** | Open access endpoints | ❌ No |

    | **User** (`user`) | Any FluxID with a valid signature and a live session | ✅ Yes |

    | **FluxTeam** (`fluxteam`) | Flux Team and Flux Support identities | ✅ Yes |

    | **Admin** (`admin`) | The operator of *this* node (`initial.zelid` in its config) | ✅ Yes |

    | **AdminAndFluxTeam** (`adminandfluxteam`) | Node operator **or** Flux Team | ✅ Yes |

    | **AppOwner** (`appowner`) | The FluxID that registered the application | ✅ Yes |

    | **AppOwnerAbove** (`appownerorfluxteam`) | Application owner **or** Flux Team | ✅ Yes |


    Every privilege is a set of identities and asks whether the caller is one of

    them — the compounds read **OR**, never AND. `admin` is a hardware role: the

    node operator administers the machine and is *not* a party to a customer''s

    application, so app verbs (`appstart`, `appremove`, `appkill`, `redeploy`, …)

    require **AppOwnerAbove** rather than Admin.'
servers:
- url: https://api.runonflux.io
  description: Production API Gateway - global load-balanced endpoint. Requests are served by whichever confirmed FluxNode the gateway routes to, so node-scoped endpoints (anything that reports or changes the state of one machine) should be called against a specific node instead.
- url: https://{nodeip}:16127
  description: Direct Flux Node Connection - Connect directly to specific node
  variables:
    nodeip:
      description: Flux node IP address or hostname
      default: localhost
- url: http://localhost:16127
  description: Local Development Node - For local testing
- url: https://explorer.runonflux.io
  description: Explorer API - Blockchain data and statistics
- url: https://stats.runonflux.io
  description: Network Statistics API - Real-time network metrics
tags:
- name: Payments
  description: '**Wallet Payment Callbacks**

    A rendezvous between a web page and a wallet it opens. The page mints a payment id on a node, listens on that node''s `/ws/payment/` WebSocket, and gives the wallet a callback to `POST /payment/verifypayment?paymentid=`; the transaction id the wallet posts there is delivered to the waiting page. The node relays the transaction id as a claim and records nothing: it is not a payment verification.

    **Payment Services:** - Payment id issuance, rate-limited per caller - Wallet callback relay to the waiting browser'
paths:
  /payment/paymentrequest:
    get:
      tags:
      - Payments
      summary: Create a payment request
      description: 'Issues an id for one browser-and-wallet meeting. The page that wants paying listens on this node''s WebSocket `/ws/payment/` and hands the wallet a callback to `POST /payment/verifypayment?paymentid=`; the transaction id the wallet posts there is delivered to that listener and to nothing else. The id (`_`) is unguessable, held in the issuing node''s memory for one hour, valid only on that node, and spent once delivered (or dropped when the listening socket closes before an answer). Issuance is limited per caller address (the socket peer, or the address a recognised balancer reports): more than 5 per second answers `429` `Too many payment requests`, and a caller already holding 10 pending ids answers `429` `Too many pending payment requests`. **Public**'
      operationId: paymentRequest
      security: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/status'
                  data:
                    type: object
                    properties:
                      paymentId:
                        type: string
              example:
                status: success
                data:
                  paymentId: 1772719200000_3f9a1c0e7b2d4a6f8e1c3b5d7f9a2c4e
        '429':
          description: Issuance rate (5/s) or pending-id cap (10) for this caller exceeded
  /payment/verifypayment:
    post:
      tags:
      - Payments
      summary: Deliver a wallet payment callback
      description: 'The callback a wallet posts after broadcasting its transaction. The transaction id (`transaction_id`, as ZelCore sends it, or `txid`; a string of at most 500 characters) is handed to the browser listening on `/ws/payment/` for an id minted by `GET /payment/paymentrequest` on this node, and the id is spent once the browser receives it. Nothing is verified and nothing is recorded: the transaction id is relayed as a claim, not checked against any chain (an app is paid when a transaction on chain matches its message hash). Any content type is accepted; a body no parser claims is limited to 10,000 bytes (`413`). Validation failures (`No payment ID is specified`, `Invalid payment ID format`, `No transaction ID is specified`, `Transaction ID must be a string`, `Invalid transaction ID length`, `Payment request not found or has expired`) are error envelopes. **Public**'
      operationId: verifyPayment
      security: []
      parameters:
      - in: query
        name: paymentid
        required: false
        schema:
          type: string
        description: Payment request id, when not sent in the body
        example: 1772719200000_k3j9xq2mv8p
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                paymentid:
                  type: string
                transaction_id:
                  type: string
                  description: Transaction id as sent by ZelCore
                txid:
                  type: string
                  description: Transaction id (equivalent to `transaction_id`)
            example:
              paymentid: 1772719200000_3f9a1c0e7b2d4a6f8e1c3b5d7f9a2c4e
              transaction_id: 9f2c1e...
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/status'
                  data:
                    type: object
                    properties:
                      message:
                        type: string
                      paymentId:
                        type: string
                      txid:
                        type: string
                      success_url:
                        type: string
              example:
                status: success
                data:
                  message: Payment received successfully
                  paymentId: 1772719200000_3f9a1c0e7b2d4a6f8e1c3b5d7f9a2c4e
                  txid: 9f2c1e...
                  success_url: https://home.runonflux.io/successcheckout
        '413':
          description: Request body too large
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    status:
      type: string
      description: Explanation of status
      enum:
      - success
      - error
    InternalServerError:
      type: object
      description: Internal server error
      properties:
        status:
          type: string
          enum:
          - error
        data:
          type: object
          properties:
            name:
              type: string
              example: InternalError
            message:
              type: string
              example: Internal server error occurred
            code:
              type: string
              example: INTERNAL_ERROR
  responses:
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InternalServerError'
  securitySchemes:
    FluxID:
      description: 'FluxID (formerly ZelID) is an authentication system based on Bitcoin message signing and Ethereum personal sign. The header keeps its original name, `zelidauth`: a query string of zelid, signature and loginPhrase (see Authentication Workflows for how to obtain one). An example of a header is `zelid=1CbErtneaX2QVyUfwU7JGB7VzvPgrgc3uC&signature=%2BZB3oSrsw6XkBxxlbwk33LEBJYvqtbMIm2kL9JzuoXMC6pSZd0lBHdnhJYzMTXv81zZQ7G%2FpkK1NvYN7cNF0GE%3D&loginPhrase=1574991374806spbcvsuwerl52tppx9dw5khuz8rew13mkq86gg8r2c`'
      type: apiKey
      in: header
      name: zelidauth
externalDocs:
  description: Flux Documentation & Resources Hub
  url: https://docs.runonflux.com
x-tagGroups:
- name: Getting Started
  tags:
  - Authentication
  - ID
- name: Applications
  tags:
  - Apps
  - Volume Browser
  - IOUtils
- name: Node Operations
  tags:
  - Flux
  - Benchmark
  - ArcaneOS
- name: Blockchain
  tags:
  - Daemon
  - Explorer
- name: Storage & Sync
  tags:
  - Syncthing
  - Fluxshare
  - Backup/Restore
- name: Commerce
  tags:
  - Payments