Flux Authentication API

**Authentication & Authorization Endpoints** Essential API endpoints for secure authentication and authorization with the Flux network. These endpoints handle login phrase generation, message signing verification, and session management for all supported wallet types including SSP Wallet, ZelCore, MetaMask, and WalletConnect integrations. **Key Features:** - Multi-wallet authentication support - Secure login phrase generation - Cryptographic signature verification - Session token management - 5-tier permission system integration

GitHub OpenAPI

Operations 4

GET /id/loginphrase Obtain login phrase #
POST /id/verifylogin Login into Flux #
POST /id/providesign Provide Signature #
POST /id/logoutspecificsession Logs out a specific session #

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-authentication-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-authentication-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 8.20.0
  title: Flux Decentralized Cloud Authentication 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: Authentication
  description: '**Authentication & Authorization Endpoints**

    Essential API endpoints for secure authentication and authorization with the Flux network. These endpoints handle login phrase generation, message signing verification, and session management for all supported wallet types including SSP Wallet, ZelCore, MetaMask, and WalletConnect integrations.

    **Key Features:** - Multi-wallet authentication support - Secure login phrase generation - Cryptographic signature verification - Session token management - 5-tier permission system integration'
paths:
  /id/loginphrase:
    get:
      tags:
      - Authentication
      summary: Obtain login phrase
      description: 'Obtain valid Login Phrase for signing into Flux. Login Phrase is at least 40 characters, first 13 characters is server timestamp and is valid for 15 minutes.


        A phrase is issued only to a node that passes the same fitness checks as `GET /flux/health`, run in this order: local database, Syncthing, Docker, tier hardware, DOS state, applications DOS state. The first failing check is answered instead of a phrase as an error body; a DOS failure carries `name` `DOS` or `CONNERROR` and the DOS score as `code`. Since 8.19.0 the Syncthing check refuses only a node whose Syncthing FluxOS supervises (a local Syncthing on a node that is not ArcaneOS), and only once Syncthing has been measured unhealthy; a node that has not yet measured it is not refused. `GET /id/emergencyphrase` issues a phrase without these checks. **Public**'
      operationId: loginPhrase
      security: []
      x-codeSamples:
      - lang: curl
        source: 'curl -X GET "https://api.runonflux.io/id/loginphrase"

          '
      - lang: JavaScript
        source: 'const response = await fetch(''https://api.runonflux.io/id/loginphrase'');

          const data = await response.json();

          console.log(data.data); // Login phrase string

          '
      - lang: Node.js
        source: "const https = require('https');\n\nconst options = {\n  hostname: 'api.runonflux.io',\n  path: '/id/loginphrase',\n  method: 'GET'\n};\n\nconst req = https.request(options, (res) => {\n  let data = '';\n  res.on('data', chunk => data += chunk);\n  res.on('end', () => {\n    const result = JSON.parse(data);\n    console.log(result.data);\n  });\n});\nreq.end();\n"
      - lang: Python
        source: 'import requests


          response = requests.get(''https://api.runonflux.io/id/loginphrase'')

          data = response.json()

          login_phrase = data[''data'']

          print(login_phrase)

          '
      - lang: PHP
        source: '<?php

          $response = file_get_contents(''https://api.runonflux.io/id/loginphrase'');

          $data = json_decode($response, true);

          $loginPhrase = $data[''data''];

          echo $loginPhrase;

          ?>

          '
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/status'
                  data:
                    type: string
                    description: loginphrase
              example:
                status: success
                data: 1574994809615gj4ct52kzz695twl0l27np0ivkmvu2ow4lbtpwk2nvf2k
  /id/verifylogin:
    post:
      tags:
      - Authentication
      summary: Login into Flux
      description: Login into Flux by submitting correct FluxID, login phrase and signature. Note that to get the signature of the signed message you would need to do the signing on Zelcore or your BTC wallet or your ETH wallet. If success status response is returned, we can use the supplied data(zelid, loginPhrase, signature) as zelidauth header as part of api calls that require a user to be logged in. Additionally it is possible to listen for a response on websocket. ws://{Flux_IP}:16127/ws/id/{loginPhrase}. **Public**
      operationId: verifyLogin
      security: []
      x-codeSamples:
      - lang: curl
        source: "curl -X POST \"https://api.runonflux.io/id/verifylogin\" \\\n  -H \"Content-Type: text/plain\" \\\n  -d '{\n    \"zelid\": \"1CbErtneaX2QVyUfwU7JGB7VzvPgrgc3uC\",\n    \"loginPhrase\": \"1574994809615gj4ct52kzz695twl0l27np0ivkmvu2ow4lbtpwk2nvf2k\",\n    \"signature\": \"IAMZBB0p8aQ6A0Zt8uUKFLdWvPJlBypuczhaM6/R+s5bI72NQs/TPF1KYywvJlumMZyvLmk7JelDwaQbfTjqtSs=\"\n  }'\n"
      - lang: JavaScript
        source: "const loginData = {\n  zelid: \"1CbErtneaX2QVyUfwU7JGB7VzvPgrgc3uC\",\n  loginPhrase: \"1574994809615gj4ct52kzz695twl0l27np0ivkmvu2ow4lbtpwk2nvf2k\", \n  signature: \"IAMZBB0p8aQ6A0Zt8uUKFLdWvPJlBypuczhaM6/R+s5bI72NQs/TPF1KYywvJlumMZyvLmk7JelDwaQbfTjqtSs=\"\n};\n\nconst response = await fetch('https://api.runonflux.io/id/verifylogin', {\n  method: 'POST',\n  headers: { 'Content-Type': 'text/plain' },\n  body: JSON.stringify(loginData)\n});\n\nconst result = await response.json();\nconsole.log(result);\n"
      - lang: Python
        source: "import requests\nimport json\n\nlogin_data = {\n    \"zelid\": \"1CbErtneaX2QVyUfwU7JGB7VzvPgrgc3uC\",\n    \"loginPhrase\": \"1574994809615gj4ct52kzz695twl0l27np0ivkmvu2ow4lbtpwk2nvf2k\",\n    \"signature\": \"IAMZBB0p8aQ6A0Zt8uUKFLdWvPJlBypuczhaM6/R+s5bI72NQs/TPF1KYywvJlumMZyvLmk7JelDwaQbfTjqtSs=\"\n}\n\nresponse = requests.post(\n    'https://api.runonflux.io/id/verifylogin',\n    headers={'Content-Type': 'text/plain'},\n    data=json.dumps(login_data)\n)\n\nresult = response.json()\nprint(result)\n"
      requestBody:
        content:
          text/plain:
            schema:
              $ref: '#/components/schemas/FluxIDLogin'
            example:
              loginPhrase: 1575012988077darschvve5ag82g8e8sgeij4sn61842ya7ovxi9r3kba
              zelid: 1CbErtneaX2QVyUfwU7JGB7VzvPgrgc3uC
              signature: IAMZBB0p8aQ6A0Zt8uUKFLdWvPJlBypuczhaM6/R+s5bI72NQs/TPF1KYywvJlumMZyvLmk7JelDwaQbfTjqtSs=
        description: FluxID login object
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: status
                    enum:
                    - success
                    - error
                  data:
                    type: object
                    properties:
                      message:
                        type: string
                        description: explanation of status
                      zelid:
                        type: string
                        description: supplied FluxID or bitcoin P2PKH address or ethereum address
                      loginPhrase:
                        type: string
                        description: valid and active loginPhrase
                      signature:
                        type: string
                        description: signature of loginPhrase signed with zelid/btc/eth address
                      privilage:
                        type: string
                        description: Granted Flux privilege. The field is spelled `privilage` on the wire.
                        enum:
                        - user
                        - fluxteam
                        - admin
                      createdAt:
                        type: string
                        format: date-time
                        description: Session start (the login phrase timestamp)
                      expireAt:
                        type: string
                        format: date-time
                        description: Session expiry, 14 days after createdAt
              example:
                status: success
                data:
                  message: Successfully logged in
                  zelid: 1CbErtneaX2QVyUfwU7JGB7VzvPgrgc3uC
                  loginPhrase: 1575012988077darschvve5ag82g8e8sgeij4sn61842ya7ovxi9r3kba
                  signature: IAMZBB0p8aQ6A0Zt8uUKFLdWvPJlBypuczhaM6/R+s5bI72NQs/TPF1KYywvJlumMZyvLmk7JelDwaQbfTjqtSs=
                  privilage: admin
                  createdAt: '2019-11-29T07:36:28.077Z'
                  expireAt: '2019-12-13T07:36:28.077Z'
  /id/providesign:
    post:
      tags:
      - Authentication
      summary: Provide Signature
      description: Provide requested signature from signed message to return data. **Public**
      operationId: provideSign
      security: []
      requestBody:
        required: true
        content:
          text/plain:
            schema:
              type: object
              properties:
                address:
                  type: string
                  description: FluxID or any P2PKH Bitcoin address or Ethereum address
                message:
                  type: string
                  description: Login phrase message that was provided by GET /id/loginphrase
                signature:
                  type: string
                  description: Signature of signed loginPhrase with zelid/btc/eth address
            example:
              address: 1CbErtneaX2QVyUfwU7JGB7VzvPgrgc3uC
              message: 1575012988077darschvve5ag82g8e8sgeij4sn61842ya7ovxi9r3kba
              signature: IAMZBB0p8aQ6A0Zt8uUKFLdWvPJlBypuczhaM6/R+s5bI72NQs/TPF1KYywvJlumMZyvLmk7JelDwaQbfTjqtSs=
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/status'
                  data:
                    type: object
                    properties:
                      signature:
                        type: string
                        description: Signature of signed loginPhrase with FluxID
                      identifier:
                        type: string
                        description: FluxID, P2PKH or Ethereum address followed by the last 13 characters of the signed message
                      createdAt:
                        type: string
                        description: Start date and time of vaild message
                      expireAt:
                        type: string
                        description: End date and and time of valid message
                      _id:
                        type: string
                        description: ObjectID
              example:
                status: success
                data:
                  signature: IAMZBB0p8aQ6A0Zt8uUKFLdWvPJlBypuczhaM6/R+s5bI72NQs/TPF1KYywvJlumMZyvLmk7JelDwaQbfTjqtSs=
                  identifier: 1CbErtneaX2QVyUfwU7JGB7VzvPgrgc3uCya7ovxi9r3kba
                  createdAt: '2020-09-12T11:28:28.457Z'
                  expireAt: '2020-09-12T11:43:28.457Z'
                  _id: 5f6cb0bcb7e30e24063e1777
  /id/logoutspecificsession:
    post:
      tags:
      - Authentication
      summary: Logs out a specific session
      security:
      - FluxID: []
      description: Logs out the session whose `loginPhrase` is sent in the body. Any logged-in FluxID may call it; the session is found by its login phrase alone, so knowing a session's login phrase is what allows logging it out. There is no separate admin path. **User**
      operationId: logoutSpecificSession
      requestBody:
        content:
          text/plain:
            schema:
              type: object
              properties:
                loginPhrase:
                  description: Login Phrase of session we want to log out.
                  type: string
                  minLength: 40
                  example: 1574991374806spbcvsuwerl52tppx9dw5khuz8rew13mkq86gg8r2c
            example:
              loginPhrase: 1575012988077darschvve5ag82g8e8sgeij4sn61842ya7ovxi9r3kba
        description: Object containing loginPhrase
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/status'
                  data:
                    $ref: '#/components/schemas/statusmessage'
              example:
                status: success
                data:
                  message: Session successfully logged out
components:
  schemas:
    statusmessage:
      type: object
      properties:
        message:
          type: string
          description: Explanation of status
    status:
      type: string
      description: Explanation of status
      enum:
      - success
      - error
    signature:
      description: Signature of signed loginPhrase with zelid.
      type: string
      example: H+ZB3oSrsw6XkBxxlbwk33LEBJYvqtbMIm2kL9JzuoXMC6pSZd0lBHdnhJYzMTXv81zZQ7G/pkK1NvYN7cNF0GE=
    FluxIDLogin:
      type: object
      properties:
        loginPhrase:
          description: Login Phrase. Provided by GET /id/loginphrase.
          type: string
          minLength: 40
          example: 1574991374806spbcvsuwerl52tppx9dw5khuz8rew13mkq86gg8r2c
        zelid:
          description: FluxID or any P2PKH bitcoin address or ethereum address
          type: string
          minLength: 25
          maxLength: 42
          example: 1CbErtneaX2QVyUfwU7JGB7VzvPgrgc3uC
        signature:
          $ref: '#/components/schemas/signature'
  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