Roundhouse Settlements API

The settlement ledger: the feed, and one wallet's slice of it.

GitHub OpenAPI

Operations 3

GET /flows Live flow of funds #
GET /transactions Global settlement feed #
GET /entities/{wallet}/settlements Settlements for one wallet #

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/roundhouseai-io:roundhouseai-io-settlements-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

roundhouseai-io-settlements-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Roundhouse read Settlements API
  version: '0'
  summary: The x402 settlement index and agent identity record, as JSON.
  description: 'Public, read-only, and free to start — no key required. Roundhouse indexes x402

    settlements and ERC-8004 identities into one queryable record.


    Two conventions worth knowing before you build against it:


    - **An empty array is an answer; a failure is not.** A refused query returns 503

    `upstream_unavailable` naming the resource, never 200 with an empty list. On a

    settlement index "no rows" would read as "nothing ever happened".

    - **Aggregates are per-entity.** Every figure is one wallet''s or one pair''s own. Site-wide

    totals are deliberately confined to the /stats page and are not served here.


    Cursor-paginated lists carry `next_before`; pass it back as `?before=`. The leaderboard is

    the exception and pages by `?offset=`.


    Every endpoint here is also a Model Context Protocol tool at `POST /v0/mcp`, gated by the

    same API key. See https://roundhouseai.io/docs/api/mcp.'
  license:
    name: Roundhouse terms
    url: https://roundhouseai.io/terms
  contact:
    name: Roundhouse
    url: https://roundhouseai.io/docs/api
servers:
- url: https://api.roundhouseai.io/v0
  description: Canonical base URL. The API worker on its own host, isolated from the dashboard.
- url: https://roundhouseai.io/api/v0
  description: The same API through the dashboard origin. Same responses, one more hop; needs no CORS from a browser on that origin.
tags:
- name: Settlements
  description: 'The settlement ledger: the feed, and one wallet''s slice of it.'
paths:
  /flows:
    get:
      operationId: getFlows
      summary: Live flow of funds
      description: The newest settlements across every indexed chain, payer to payee. This is the same feed the `/flows` page renders.
      tags:
      - Settlements
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  flows:
                    description: 'Settlement rows, newest first, decorated with resolved display names. Each row also carries `is_self_payment` (payer = payee, annotated rather than only excluded — a third of the feed can be self-payment) and `evidence`: `{ verified, method, probability, tier }`. `verified` is THREE-VALUED — `true` a named facilitator relayed it, `false` examined with no EIP-3009 marker, and `null` gasless and authorized but NOT ESTABLISHED as x402, which is not the same as disproven. `tier` is `proven` | `probable` | `unproven` | `not_x402` | `ungraded`.'
                  next_before:
                    description: Cursor for the next page, or `null` at the end of the list.
                  meta:
                    description: 'The chain served and `as_of`. On a non-empty page `meta` also carries `page_self_payments`, `page_self_payment_usd`, `page_gross_usd` and `page_organic_usd`. All four are THIS PAGE only, as the names say: they are not site-wide figures and summing them across pages is not a total. On an EMPTY list it instead carries `dataset_last_written_at`, `dataset_row_count` and any `warnings`.'
        '503':
          description: '`upstream_unavailable` — the underlying query was refused. An empty array is a real answer; this is not one.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: limit
        in: query
        required: false
        description: Rows to return. Clamped to 100; values outside the range are clamped, not rejected.
        schema:
          type: integer
          default: 50
          minimum: 1
          maximum: 100
      - name: before
        in: query
        required: false
        description: Opaque cursor from a previous response's `next_before`. It encodes the whole sort key, tiebreaker included, so a page boundary inside a group of rows sharing a timestamp does not skip the rest. Do not parse it or build one by hand.
        schema:
          type: string
  /transactions:
    get:
      operationId: getTransactions
      summary: Global settlement feed
      description: Every indexed settlement, newest first, filterable by how confidently it is known to be an x402 payment.
      tags:
      - Settlements
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  transactions:
                    description: 'Settlement rows, newest first. Each row also carries `is_self_payment` (payer = payee, annotated rather than only excluded — a third of the feed can be self-payment) and `evidence`: `{ verified, method, probability, tier }`. `verified` is THREE-VALUED — `true` a named facilitator relayed it, `false` examined with no EIP-3009 marker, and `null` gasless and authorized but NOT ESTABLISHED as x402, which is not the same as disproven. `tier` is `proven` | `probable` | `unproven` | `not_x402` | `ungraded`.'
                  next_before:
                    description: Cursor for the next page, or `null`. Minted from the rows READ, not the rows shown, so `exclude_self_payments` cannot end the walk early.
                  meta:
                    description: 'The chain served and `as_of`. On a non-empty page `meta` also carries `page_self_payments`, `page_self_payment_usd`, `page_gross_usd` and `page_organic_usd`. All four are THIS PAGE only, as the names say: they are not site-wide figures and summing them across pages is not a total. `self_payments_excluded` is set when the page was filtered.'
        '400':
          description: '`invalid_parameter` — `min_probability` outside `[0,1]`, or `exclude_self_payments` not one of `true`/`false`/`1`/`0`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: '`upstream_unavailable` — the underlying query was refused. An empty array is a real answer; this is not one.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: limit
        in: query
        required: false
        description: Rows to return. Clamped to 100; values outside the range are clamped, not rejected.
        schema:
          type: integer
          default: 50
          minimum: 1
          maximum: 100
      - name: before
        in: query
        required: false
        description: Opaque cursor from a previous response's `next_before`. It encodes the whole sort key, tiebreaker included, so a page boundary inside a group of rows sharing a timestamp does not skip the rest. Do not parse it or build one by hand.
        schema:
          type: string
      - name: min_probability
        in: query
        required: false
        description: 'Keep only rows at or above this x402 confidence. `1.0` is proven by a named facilitator having relayed it; `0.05` is a bare transfer to a catalogued address. Read `evidence` on the row rather than thresholding this number blind — the ladder has five rungs and the gap that matters is `verified: true` against `verified: null`, not a decimal.'
        schema:
          type: number
        example: 0.5
      - name: exclude_self_payments
        in: query
        required: false
        description: 'Set to `true` to drop rows where payer = payee. Off by default: a feed is a record of what happened and a wallet paying itself did happen, so the rows are ANNOTATED (`is_self_payment`) rather than hidden. Applied after the page is read, so a filtered page can be short of `limit` while more rows remain — keep following `next_before`.'
        schema:
          type: string
          enum:
          - 'true'
          - 'false'
          - '1'
          - '0'
  /entities/{wallet}/settlements:
    get:
      operationId: getEntitySettlements
      summary: Settlements for one wallet
      description: 'Settlements where this wallet is either the payer or the payee, newest first. Walkable deeply in time order: `(payer, block_time desc)` and `(payee, block_time desc)` cover it, so page N costs what page 1 does and a wallet''s whole history can be paged for velocity or trend.'
      tags:
      - Settlements
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  wallet:
                    description: The wallet queried, lowercased.
                  settlements:
                    description: 'Settlement rows, newest first, decorated with resolved display names. Each row also carries `is_self_payment` (payer = payee, annotated rather than only excluded — a third of the feed can be self-payment) and `evidence`: `{ verified, method, probability, tier }`. `verified` is THREE-VALUED — `true` a named facilitator relayed it, `false` examined with no EIP-3009 marker, and `null` gasless and authorized but NOT ESTABLISHED as x402, which is not the same as disproven. `tier` is `proven` | `probable` | `unproven` | `not_x402` | `ungraded`.'
                  next_before:
                    description: Cursor for the next page, or `null`.
                  meta:
                    description: 'The chain served and `as_of`. On a non-empty page `meta` also carries `page_self_payments`, `page_self_payment_usd`, `page_gross_usd` and `page_organic_usd`. All four are THIS PAGE only, as the names say: they are not site-wide figures and summing them across pages is not a total.'
        '400':
          description: '`invalid_parameter` — `wallet` is not a well-formed EVM or Solana address.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: '`upstream_unavailable` — the underlying query was refused. An empty array is a real answer; this is not one.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: wallet
        in: path
        required: true
        description: 'An EVM address (`0x` + 40 hex digits; case-insensitive, lowercased before lookup) or a Solana address (base58; case-sensitive, used exactly as given). An address the index has not observed answers `coverage.known: false`, not zeros.'
        schema:
          type: string
        example: '0x6157a191c961290420c68c1aa73c84444d769055'
      - name: limit
        in: query
        required: false
        description: Rows to return. Clamped to 100; values outside the range are clamped, not rejected.
        schema:
          type: integer
          default: 50
          minimum: 1
          maximum: 100
      - name: before
        in: query
        required: false
        description: Opaque cursor from a previous response's `next_before`. It encodes the whole sort key, tiebreaker included, so a page boundary inside a group of rows sharing a timestamp does not skip the rest. Do not parse it or build one by hand.
        schema:
          type: string
components:
  schemas:
    Error:
      type: object
      description: Errors never echo the query or PostgREST's `details`/`hint`, both of which would leak the statement and its filter values.
      properties:
        error:
          type: string
          description: Stable machine-readable code.
        detail:
          type: string
          description: Human-readable explanation. May be absent.
      required:
      - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An `rh_live_…` key as a bearer token. Optional — raises rate limits.
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: The same key, as a header. Equivalent to the bearer form.