Roundhouse Entities API
Wallets resolved to identities, their own aggregates, and reputation.
Wallets resolved to identities, their own aggregates, and reputation.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/roundhouseai-io:roundhouseai-io-entities-api"
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.
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: 3.2.0
info:
title: Roundhouse read Entities 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: Entities
description: Wallets resolved to identities, their own aggregates, and reputation.
paths:
/agents/{wallet}:
get:
operationId: getAgent
summary: Per-agent stats and identity
description: 'One wallet in its paying role: its resolved identity and its own settlement aggregates. Every figure is that wallet''s own — there are no site-wide totals on this endpoint.'
tags:
- Entities
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
wallet:
description: The wallet queried, lowercased.
role:
description: 'The role it was queried in: `agent` or `merchant`.'
coverage:
description: '**Read this first.** `known` false means the index has never observed this address, so every figure below is a zero meaning "not observed" — not "observed to be nothing". Also `first_seen`, `last_seen`, `settlements_scanned`, `scan_truncated` and `scan_cap`.'
entities:
description: 'Resolved identity rows: display name, ENS, ERC-8004 card, role, first and last seen.'
erc8004_agents:
description: ERC-8004 registrations whose on-chain agentWallet is this address.
aggregates:
description: 'That wallet''s own totals: inbound/outbound USD and counts, distinct counterparties, chain split. `basis` says what they were computed over — `index_rollup` is the whole history, `scanned_settlements` is the capped scan and is a floor when `coverage.scan_truncated` is set. `distinct_counterparties` excludes the wallet itself on both bases. `chain_split` is the exception and carries its own `chain_split_basis`: the rollup is keyed by wallet and holds no chain dimension, so that split is ALWAYS the scan and is capped with it, whatever the object-level `basis` says.'
data_quality:
description: 'The risk annotation. **Route on `verdict`, not on `note`.** `verdict` is one of `unobserved` (never seen — nothing assessed), `patterns_detected`, `no_patterns_detected`, or `insufficient_evidence` — the last meaning the address WAS observed, nothing fired, and not enough of its history was examined for that to rule anything out. `checks` carries every check with its `threshold`, what was `observed`, its own `basis`, and `conclusive`: a check that FIRED is always conclusive (a pattern seen in a sample happened), a check that did not fire on a truncated scan is not. `note` says the same thing in a sentence and is derived from the two.'
recent:
description: 'A slice of its activity, `recent_limit` rows (default 5). 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`.'
'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: recent_limit
in: query
required: false
description: Settlement rows to embed in the profile. 0 omits them. Default 5 — this was an unbounded 25, which is most of the payload on a surface where a response is billed as context tokens.
schema:
type: integer
default: 5
minimum: 0
maximum: 50
/merchants/{wallet}:
get:
operationId: getMerchant
summary: Per-merchant stats and identity
description: The same shape as `/agents/{wallet}`, for a wallet in its receiving role.
tags:
- Entities
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
wallet:
description: The wallet queried, lowercased.
role:
description: 'The role it was queried in: `agent` or `merchant`.'
coverage:
description: '**Read this first.** `known` false means the index has never observed this address, so every figure below is a zero meaning "not observed" — not "observed to be nothing". Also `first_seen`, `last_seen`, `settlements_scanned`, `scan_truncated` and `scan_cap`.'
entities:
description: 'Resolved identity rows: display name, ENS, ERC-8004 card, role, first and last seen.'
erc8004_agents:
description: ERC-8004 registrations whose on-chain agentWallet is this address.
aggregates:
description: 'That wallet''s own totals: inbound/outbound USD and counts, distinct counterparties, chain split. `basis` says what they were computed over — `index_rollup` is the whole history, `scanned_settlements` is the capped scan and is a floor when `coverage.scan_truncated` is set. `distinct_counterparties` excludes the wallet itself on both bases. `chain_split` is the exception and carries its own `chain_split_basis`: the rollup is keyed by wallet and holds no chain dimension, so that split is ALWAYS the scan and is capped with it, whatever the object-level `basis` says.'
data_quality:
description: 'The risk annotation. **Route on `verdict`, not on `note`.** `verdict` is one of `unobserved` (never seen — nothing assessed), `patterns_detected`, `no_patterns_detected`, or `insufficient_evidence` — the last meaning the address WAS observed, nothing fired, and not enough of its history was examined for that to rule anything out. `checks` carries every check with its `threshold`, what was `observed`, its own `basis`, and `conclusive`: a check that FIRED is always conclusive (a pattern seen in a sample happened), a check that did not fire on a truncated scan is not. `note` says the same thing in a sentence and is derived from the two.'
recent:
description: 'A slice of its activity, `recent_limit` rows (default 5). 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`.'
'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: recent_limit
in: query
required: false
description: Settlement rows to embed in the profile. 0 omits them. Default 5 — this was an unbounded 25, which is most of the payload on a surface where a response is billed as context tokens.
schema:
type: integer
default: 5
minimum: 0
maximum: 50
/agents:
get:
operationId: listAgents
summary: Indexed ERC-8004 agents
description: Agents read from the on-chain IdentityRegistry, with their registration card and payment wallet. `score` is the ERC-8004 reputation score derived from on-chain feedback — it is the REGISTRY's number, not a Roundhouse rating, and it is null for every agent no counterparty has left feedback for. Roundhouse publishes no trust score of its own.
tags:
- Entities
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
agents:
description: Agent rows with identity, wallet and the ERC-8004 `score` (null where the registry holds no feedback). `x402_support` is the registration card's own declaration; `last_activity_at` and `activity_status` are the observed halves, derived from settlements and feedback.
next_before:
description: Cursor 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.
'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: q
in: query
required: false
description: Free-text search over name and description.
schema:
type: string
- name: x402_declared
in: query
required: false
description: 'Set to `true` to keep only agents whose own ERC-8004 registration card declares x402 support (`x402Support: true`). This is the agent''s CLAIM ABOUT ITSELF, copied out of a document its owner wrote, and it is not evidence of anything: four of five agents on a page of this filter had `last_activity_at: null`, `activity_status: "unknown"` and no feedback — never observed doing anything. It was named `x402` and documented as "observed on-chain x402 payments", which is the one confusion this index exists to prevent. The old name still works and means the same thing. There is no observed equivalent yet: `agents` carries no per-wallet settlement column, and the weekly activity scan that would populate one covers five agents a run against tens of thousands, so a filter built on it would answer "not observed" about agents nobody has looked at. To screen on evidence today, take the `agent_wallet` and call `get_agent` / `list_entity_settlements` with it.'
schema:
type: string
enum:
- 'true'
- name: x402
in: query
required: false
description: The earlier name for `x402_declared`, kept because it is published and a caller sending it wants the same rows. Prefer `x402_declared`, whose name says what it reads. Sending both uses `x402_declared`.
schema:
type: string
enum:
- 'true'
/wallets:
get:
operationId: listWallets
summary: Every address the index has seen
description: All settling wallets, filterable by the role they were seen in.
tags:
- Entities
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
wallets:
description: Wallet rows with role and last seen.
next_before:
description: Cursor 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.
'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: role
in: query
required: false
description: Restrict to one observed role.
schema:
type: string
enum:
- agent
- merchant
- both
- unknown
/leaderboard:
get:
operationId: getLeaderboard
summary: ERC-8004 agents by registry feedback score
description: Agents ordered by the ERC-8004 reputation score, which is the on-chain registry's number and not a Roundhouse rating. Unscored agents sort last rather than dropping out, so a board where nothing has been scored still comes back looking ordered — check `meta.page_scored_agents`, which is how many rows on the page carry a score at all. Zero means the order is the `agent_id` tie-break and nothing more. It pages by `offset` rather than a cursor, because a rank is a position and `score` is nullable — a keyset has nothing stable to compare against across the scored/unscored boundary.
tags:
- Entities
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
leaderboard:
description: Agent rows in score order, unscored last.
next_offset:
description: Offset for the next page, or `null`.
meta:
description: The chain served, `as_of`, and `page_scored_agents` — rows on this page with a non-null score. A `no_agent_on_this_page_has_a_score` warning when that is zero.
'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: offset
in: query
required: false
description: Rows to skip. Use the returned `next_offset`.
schema:
type: integer
default: 0
- name: include_spam
in: query
required: false
description: Set to `1` to include agents with no feedback, which are hidden by default.
schema:
type: string
enum:
- '1'
/agents/{agentId}/feedback:
get:
operationId: getAgentFeedback
summary: ERC-8004 feedback for one agent
description: Raw feedback entries from the ReputationRegistry for a single agent id.
tags:
- Entities
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
agent_id:
description: The id queried.
chain:
description: The chain the feedback was read from.
feedback:
description: Feedback entries.
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` — `agentId` is not a registry id, or `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: agentId
in: path
required: true
description: ERC-8004 agent id.
schema:
type: string
example: '1'
- 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: chain
in: query
required: false
description: CAIP-2 chain id. An agent id is not unique across chains.
schema:
type: string
example: eip155:8453
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.