PublicAML Attestation API

Signed risk verdicts for on-chain consumers.

GitHub OpenAPI

Operations 1

POST /v1/attest Issue an EIP-712 signed risk attestation for on-chain use #

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/publicaml-org:publicaml-org-attestation-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

publicaml-org-attestation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PublicAML Intelligence Attestation API
  version: 1.0.0
  summary: 'Blockchain anti-money-laundering intelligence: address risk, entity attribution and fund tracing.'
  description: 'Screen a crypto address, find out what it is and who it belongs to, and follow its money forwards to a cash-out or backwards to its funding. ## Reading a result honestly


    Three things about this data are easy to get wrong and each has cost somebody an incorrect conclusion:


    1. **An unknown address is not a clean address.** /v2/enrich puts addresses it has no data for in `not_found`, not in `entities` with a zero. A brand-new wallet is unknown, not innocent. 2. **`risk.score` is risk, not a proportion of funds.** It combines its parts by MAX, so the components in `risk.breakdown` do not sum to it. 3. **A negative is only as good as its window.** Endpoints that answer ''did this wallet do X'' report how much they actually read (`scan`, `coverage`, `partial`, `truncated`, `degraded`). A `false` next to `negative_conclusive: false` means ''nothing known'', not ''nothing happened''. ## v1 is deprecated, and what that does and does not mean


    Every `/v1/*` response carries `Deprecation: true`, `X-API-Recommended-Version: v2` and a `Link` header pointing here, and JSON object bodies also carry an `api_version` field saying the same thing. Read it as *migrate when you can*, not as *this stops working soon*: **no removal date is set**, which is exactly why no `Sunset` header is sent — that header carries a date, and inventing one would be a promise nobody made. v2 is not a different product. `/v2/enrich` calls the v1 handler and translates the shape, so the two cannot disagree about the facts. What changes is the form: no duplicated fields, and attribution arrives as `axes` — each question about an address answered separately instead of collapsed into one winning category. ## Chains


    bitcoin, ethereum, bsc and tron. The same 0x address exists on ethereum, bsc and tron and is a different wallet on each, so `chain` is part of the identity and never a hint. bitcoin''s graph is bipartite — address → transaction → address — so one hop there is half an economic step, and a `counterparty` field holds a transaction hash rather than an address. ## Auth


    Read endpoints work unauthenticated, rate-limited per client IP. Send `X-API-Key` to remove the limit and see your own pushed labels. ### The anonymous limit, in numbers


    The budget is counted in UNITS, and a unit is one ADDRESS, not one call: a batch of 60 addresses spends 60. This is the part worth reading twice, because a script that batches looks well-behaved by request count and still exhausts an hour''s budget in one call. | bucket | limit | window |

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

    | anonymous, standard endpoints (`/v2/enrich` among them) | 100 units | 1 hour |

    | anonymous, heavy endpoints (`/v1/trace`, `/v1/counterparties`, `/v1/transactions`, `/v1/address-transactions`, `/v1/address-flows`, `/v1/entity-transfers`, `/v1/tx-enrich`, `/v1/swap-through`, `/v1/cluster-mappings`) | 20 units | 1 hour |

    | authenticated (`X-API-Key` or HMAC) | no limit, unless the key was issued with a quota of its own | — |


    `/v2/enrich` costs one unit per address and draws on the standard bucket: a batch of 60 spends 60 of the 100. The same unit is what a key with a quota of its own is metered in. So the pause to configure is: none, if you send a key. Authenticating removes the limit outright rather than raising it, which is why a bulk check should carry the key even though the endpoint does not require one. A key CAN be issued with a quota — units per window, metered per key rather than per account, so several keys on one contract get independent budgets. Yours has one only if you were told so when it was issued; the `429` body says which case you are in. A rejected request answers `429` with a JSON body naming what it cost you and when to come back — `{"error": "rate limit exceeded", "cost": 60, "limit": 100, "window_sec": 3600, "retry_after": 1973}` — plus a `Retry-After` header.'
  contact:
    name: PublicAML
    url: https://publicaml.org
servers:
- url: https://intelapi.publicaml.org
  description: Production.
security:
- ApiKeyAuth: []
- {}
tags:
- name: Attestation
  description: Signed risk verdicts for on-chain consumers.
paths:
  /v1/attest:
    post:
      operationId: attestAddress
      summary: Issue an EIP-712 signed risk attestation for on-chain use
      description: 'Signs a four-field struct a smart contract can verify, so a protocol can gate on our risk reading without trusting an HTTP response. Valid for 600 seconds; there is no nonce and no revocation channel, so that window is the only bound on acting on a stale verdict.


        `attestation` is exactly what the contract expects. The risk detail beside it is UNSIGNED context for humans and off-chain callers — it is not part of what the signature covers.


        bitcoin cannot be attested at all: the struct types the subject as a Solidity address, which cannot hold a base58 or bech32 address. This endpoint also accepts the testnets SEPOLIA and NILE.


        The signed payload format is FROZEN — an extra field would change the hash and break every deployed verifier.'
      tags:
      - Attestation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - wallet_address
              - chain
              properties:
                wallet_address:
                  type: string
                  description: "The address to look up, in its normal display form.\n\n  * bitcoin  — base58 (`1…`, `3…`) or bech32/bech32m (`bc1…`, `bc1p…`). Case is SIGNIFICANT for base58; do not lowercase it. A 64-character lowercase TRANSACTION HASH is also accepted here: on bitcoin the graph is bipartite (address → transaction → address), so a transaction is a node with its own neighbours and its own findings. CoinJoin is classified on the transaction, not on the participants, and this is how you read it.\n  * ethereum, bsc — `0x` + 40 hex characters, any case.\n  * tron — base58 (`T…`, 34 characters); the `0x` 20-byte form is accepted too (it is how the graph stores TRON). Answers show TRON addresses in base58, except a field that echoes your request as sent (`/v2/risk-path` `src`)."
                chain:
                  type: string
                  enum:
                  - ethereum
                  - bsc
                  - tron
                  - SEPOLIA
                  - NILE
                  description: bitcoin is not attestable — see the description. SEPOLIA and NILE are testnets.
                include:
                  type: array
                  items:
                    type: string
                    enum:
                    - typed_data
                  description: Echo the full EIP-712 payload, as a debugging aid.
      responses:
        '200':
          description: The signed attestation.
          headers:
            Deprecation:
              description: Always `true` on /v1. The version is deprecated and still supported; no removal date is set, which is why no `Sunset` header is sent (RFC 8594 would require an actual date).
              schema:
                type: string
                enum:
                - 'true'
            Link:
              description: '`rel="successor-version"` pointing at the API documentation.'
              schema:
                type: string
            X-API-Recommended-Version:
              description: Always `v2`. The same facts in a shape without duplicated fields.
              schema:
                type: string
                enum:
                - v2
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  message:
                    type: string
                  result:
                    type: object
                    properties:
                      attestation:
                        type: object
                        description: The signed struct, exactly as the contract reads it.
                      signature:
                        type: string
                      signer:
                        type: string
                      domain:
                        type: object
                      risk_score:
                        type:
                        - number
                        - 'null'
                        description: Unsigned context.
        '400':
          description: Malformed request.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/InvalidAddressError'
                - $ref: '#/components/schemas/Error'
        '429':
          description: 'Rate limited: anonymous callers, and keys issued with a quota of their own. Authenticate to remove the limit.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: 'Refusing to sign: the signer is unconfigured, or a fact source is unavailable. Retry rather than caching a verdict.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    InvalidAddressError:
      type: object
      description: 'Returned when the address cannot be an address of the chain it was sent with. It is a self-correcting error: `detail` names the chain the format DOES belong to, so the call can be retried correctly without another lookup. It is never returned for an address that is merely unknown to us — that is `not_found` (200) or `address_not_found`.'
      required:
      - error
      - detail
      - hint
      properties:
        error:
          type: string
          const: invalid_address_format
        detail:
          type: string
          description: What is wrong and what to send instead, naming the likely chain.
          examples:
          - '''0x28c6c06298d514db089934071355e5743bf21d60'' is not a valid bitcoin address — that format belongs to ethereum, bsc or tron. Re-send with chain=''ethereum'', or send a bitcoin address.'
        hint:
          type: string
          const: Check chain matches address prefix
          description: Constant string, safe to match on.
        invalid:
          type: array
          description: POST /v2/enrich only, and only when EVERY address in the batch was malformed. A batch with at least one usable address answers 200 instead and reports the bad ones in `not_found[]`.
          items:
            type: object
            properties:
              wallet_address:
                type: string
              chain:
                type: string
              detail:
                type: string
        request_id:
          type: string
    Error:
      type: object
      description: Ordinary failure. `error` is a short machine-readable reason.
      required:
      - error
      properties:
        error:
          type: string
        detail:
          type: string
          description: Present when there is more to say.
        reason:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Public key identifier (`pk_…`). On reads it removes the rate limit and unlocks your own pushed labels. It CANNOT write. A key that is unknown, revoked or expired is refused with `401 invalid_api_key` rather than silently ignored.
    HmacTimestamp:
      type: apiKey
      in: header
      name: X-Timestamp
      description: Unix milliseconds. Must be within 5 minutes of server time.
    HmacSignature:
      type: apiKey
      in: header
      name: X-Signature
      description: Hex HMAC-SHA256 over `{timestamp}\n{METHOD}\n{path}\n{body}` keyed with your secret, where `{path}` is the request path and, ONLY when the URL has a query string, `?` plus the query exactly as sent (`/v1/webhooks/events?endpoint_id=we_1&limit=50`); without a query there is no `?` (`/v1/webhooks/endpoints`, not `/v1/webhooks/endpoints?` — that fails with `invalid_signature`). `{body}` is the raw body, empty when there is none. Required on every write. Sending X-Timestamp or X-Signature commits the request to this path — a bad signature fails outright rather than falling back to key-only auth.