Roundhouse Discovery API

The service catalog, the relayers, and the payment graph.

GitHub OpenAPI

Operations 4

GET /endpoints Indexed x402 service directory #
GET /facilitators Relayers, per chain #
GET /graph Payment graph: nodes and payer→payee edges #
GET /health/coverage Per-dataset freshness — is a zero real? #

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-discovery-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-discovery-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Roundhouse read Discovery 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: Discovery
  description: The service catalog, the relayers, and the payment graph.
paths:
  /endpoints:
    get:
      operationId: listEndpoints
      summary: Indexed x402 service directory
      description: 'The x402 service catalog. Without `q` it is ordered by the catalog''s own reported 30-day call count (reported by the source, not indexed by Roundhouse); with `q` it is a relevance search grouped by service, so a mirror host or a listing repeated by several directories is one result. Each row carries the verified volume of the SERVICE it belongs to (settlements a known facilitator relayed, summed over every wallet the service accepts payment at, since `volume_since`), because a settlement carries no resource URL: the figure repeats on each of a service''s endpoints and is not that endpoint''s own. `concentrated` is true when one payer is at least half of 30-day volume, and `shared_pay_to` when the wallet serves many unrelated listings. A listing is a claim; the observed columns are evidence, so prefer `is_live` with non-zero `l30_unique_payers`. Note the path stays `/v0/endpoints` although the human page moved to `/services`; renaming it would break published integrations.'
      tags:
      - Discovery
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  endpoints:
                    description: Catalog rows with price, network, payTo, liveness and observed demand.
                  next_offset:
                    description: Offset for the next page, or `null` when this page was the last.
                  meta:
                    description: The chain served and `as_of`. On an EMPTY list it also carries `dataset_last_written_at`, `dataset_row_count` and any `warnings` (e.g. `endpoints_catalog_stale`) — so a zero can be read as a quiet market or a stalled ingest rather than guessed at.
        '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 200; values outside the range are clamped, not rejected.
        schema:
          type: integer
          default: 100
          minimum: 1
          maximum: 200
      - name: q
        in: query
        required: false
        description: Free-text search over name, description, tags, the service's own web description and the URL's host and path words. Every word must match (any word, when none does), and related terms are expanded, so `virtual card` and `send bank payment` find a card or payout service whose name says neither. Results are one per service.
        schema:
          type: string
      - name: group
        in: query
        required: false
        description: '`endpoint` (default) returns one endpoint per matched service. `service` returns `services`, each with its `endpoints` (up to six matches) and the service''s volume, for a caller that wants the whole service.'
        schema:
          type: string
          enum:
          - endpoint
          - service
          default: endpoint
      - name: offset
        in: query
        required: false
        description: Rows to skip. Use the returned `next_offset`.
        schema:
          type: integer
          default: 0
      - name: fields
        in: query
        required: false
        description: '`compact` returns name, resource, price, network, payTo and liveness only — no description, icon or tags — which is roughly a third of the payload.'
        schema:
          type: string
          enum:
          - full
          - compact
          default: full
  /facilitators:
    get:
      operationId: listFacilitators
      summary: Relayers, per chain
      description: 'The facilitators seen relaying settlements, with their known relayer wallets. Paged: this used to return up to 200 rows unpaged, most of their columns null. Null-valued columns are omitted from each row.'
      tags:
      - Discovery
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  chain:
                    description: The chain served — this deployment's default when none was named.
                  facilitators:
                    description: Facilitator rows, busiest first. Null-valued fields are omitted.
                  next_offset:
                    description: Offset for the next page, or `null`.
                  meta:
                    description: The chain served and `as_of`. On an EMPTY list it also carries `dataset_last_written_at`, `dataset_row_count` and any `warnings` (e.g. `endpoints_catalog_stale`) — so a zero can be read as a quiet market or a stalled ingest rather than guessed at.
        '400':
          description: '`invalid_parameter` — `chain` is not an indexed chain.'
          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: chain
        in: query
        required: false
        description: CAIP-2 chain id. Defaults to the chain this deployment indexes (`eip155:8453` in production, `eip155:84532` on staging) — the same default every endpoint on this API uses. A chain the index does not carry is refused with 400 listing the supported set, never answered with an empty list.
        schema:
          type: string
        example: eip155:8453
      - name: limit
        in: query
        required: false
        description: Rows to return. Clamped to 200; values outside the range are clamped, not rejected.
        schema:
          type: integer
          default: 25
          minimum: 1
          maximum: 200
      - name: offset
        in: query
        required: false
        description: Rows to skip. Use the returned `next_offset`.
        schema:
          type: integer
          default: 0
      - name: enriched_only
        in: query
        required: false
        description: Keep only relayers whose nonce and gas balance have been read. A row without `enriched_at` has nothing populated but its address.
        schema:
          type: string
          enum:
          - 'true'
  /graph:
    get:
      operationId: getGraph
      summary: 'Payment graph: nodes and payer→payee edges'
      description: 'Entities as nodes and settlements aggregated into edges, over a bounded window. Two window forms, and exactly one may be sent: `window=N` is a row count running to the live tip (briefly cacheable); `days=N` covers **whole UTC days only**, excluding today, so an answer is stable for the day. Use `days` for anything an agent will cache. Self-payments are excluded from BOTH edges and node totals and counted in `meta.excluded`, so `sum(node.window_usd)` is exactly twice `sum(edge.usd)`.'
      tags:
      - Discovery
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  applied:
                    description: 'Every parameter as APPLIED, not as requested — both windows, the edge cap, the facilitator caps, the chain, the filters. Read this rather than assuming the request was honoured verbatim. `days` and `window` can BOTH be non-null: a wallet-focused day window is read row by row, so a row cap applies inside the declared range and `complete` says whether it bit.'
                  complete:
                    description: Whether the declared window was read in full. False means a row cap stopped the read inside the range — the response then covers the newest `applied.window` settlements in it, not the whole of it, and `meta.warnings` says so. Only `?days=` with `?wallet=` can be false.
                  days:
                    description: The whole-UTC-day window applied, or `null` on the `window=N` path.
                  since:
                    description: Inclusive start of the day window, or `null` on the `window=N` path.
                  until:
                    description: Exclusive end of the day window (midnight today), or `null` on the `window=N` path.
                  since_day:
                    description: The `since` bound as a UTC date, or `null`.
                  until_day:
                    description: The `until` bound as a UTC date, or `null`.
                  mode:
                    description: '`daily` when the answer came from the per-day rollup, which covers the window exactly; `raw` when it was folded from settlement rows.'
                  bucket:
                    description: 'What one source row represented: `day` under `mode: daily`, `settlement` under `raw`.'
                  truncated:
                    description: True when the edge cap dropped edges the window contained.
                  nodes:
                    description: 'One entry per wallet: role, display name, ENS, and its window totals.'
                  edges:
                    description: Aggregated payer→payee pairs with volume and count.
                  series:
                    description: Per-day bucket totals across the window. `null` on the `window=N` path, which is a row count with no day grain to bucket into.
                  facilitators:
                    description: Relayers seen in the window, largest first and capped to `applied.facilitators`. `usd`/`count` are the relayer's own window totals; `links` name only wallets present in `nodes`, capped to `applied.facilitator_links`, with `links_total` and `links_truncated` beside them.
                  window:
                    description: 'How the window was read: rows requested, fetched and used.'
                  meta:
                    description: 'The chain served, `as_of`, and `excluded` — the self-payments, low-confidence rows, over-cap edges and over-cap facilitators the window held but the graph does not show, so node and edge totals can be reconciled. `below_min_usd` is `null` when `min_usd` was sent: that filter runs at read time, so its exclusions never reach this response and cannot be counted.'
        '400':
          description: '`invalid_parameter` — `days` and `window` both sent, `days` out of `[1,180]`, `min_probability` out of `[0,1]`, a malformed `wallet`, or a `chain` the index does not carry.'
          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: window
        in: query
        required: false
        description: Row count back from the live tip. Mutually exclusive with `days` — sending both is refused with 400, not silently resolved in favour of one.
        schema:
          type: integer
          default: 500
          minimum: 50
          maximum: 1000
      - name: days
        in: query
        required: false
        description: 'Whole UTC days, excluding today, honoured exactly: `days=1` is one day. Mutually exclusive with `window`. Out of `[1,180]` is refused rather than clamped.'
        schema:
          type: integer
          minimum: 1
          maximum: 180
      - name: wallet
        in: query
        required: false
        description: Restrict to edges touching this wallet. Must be a well-formed EVM address (case-insensitive) or Solana address (base58, case-sensitive).
        schema:
          type: string
      - name: chain
        in: query
        required: false
        description: CAIP-2 chain id. Defaults to the chain this deployment indexes (`eip155:8453` in production, `eip155:84532` on staging) — the same default every endpoint on this API uses. A chain the index does not carry is refused with 400 listing the supported set, never answered with an empty list.
        schema:
          type: string
        example: eip155:8453
      - name: via
        in: query
        required: false
        description: Restrict to settlements relayed by this facilitator key or wallet.
        schema:
          type: string
      - name: min_usd
        in: query
        required: false
        description: Drop settlements below this USD value.
        schema:
          type: number
      - name: min_probability
        in: query
        required: false
        description: Minimum x402 confidence, in `[0,1]`. Default 0.5.
        schema:
          type: number
          default: 0.5
          minimum: 0
          maximum: 1
      - name: edges
        in: query
        required: false
        description: Hard cap on edges returned, highest volume first. Honoured exactly; `truncated` says whether it bit.
        schema:
          type: integer
          minimum: 1
          maximum: 4000
  /health/coverage:
    get:
      operationId: getCoverage
      summary: Per-dataset freshness — is a zero real?
      description: 'What each dataset behind this API last had written to it, and how far behind its own cadence that is. This is how a caller tells a quiet market from a stalled ingest: six datasets feed this surface and they fail independently, so an empty `/endpoints` while `/flows` runs live is a stopped catalog crawl, not an empty catalog. No key required — a caller deciding whether to believe an empty list must be able to ask without one, and nothing here is anybody''s data.'
      tags:
      - Discovery
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  as_of:
                    description: When the report was taken.
                  chain:
                    description: The chain this deployment indexes.
                  datasets:
                    description: 'One entry per dataset: `last_written_at`, `row_count`, `indexer_lag_seconds`, the `stale_after_seconds` threshold and the `stale` verdict. A null `row_count` means the probe failed and is NOT zero.'
                  warnings:
                    description: The datasets currently over their staleness threshold, by name.
        '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'
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.