PredictAsiaX Audit API

Public tamper-evident audit chain — Merkle head/root/batches/health/anchor endpoints

GitHub OpenAPI

Operations 11

GET /v1/audit/head Latest audit_log head #
GET /v1/audit/root Fetch a specific audit_log row + inclusion proof #
GET /v1/audit/batches List recent Merkle batches #
GET /v1/audit/health Audit chain health #
GET /v1/audit/anchor Latest on-chain anchor #
GET /v1/audit/proof/{evt_id} Audit chain proof for one event #
GET /v1/audit/anchor/{num} Fetch audit anchor by on-chain tx number #
GET /v1/audit/batches/latest Latest audit batch #
GET /v1/audit/batches/{num} Audit batch by sequence number #
GET /v1/audit/events/{seq} Audit event by sequence number #
GET /v1/audit/status Audit chain health + latest anchors #

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/predictasiax-com:predictasiax-com-audit-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

predictasiax-com-audit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PredictAsiaX Network Audit API
  version: v1
  description: 'The canonical REST surface for the PredictAsiaX Network. Most /v1/*

    response is wrapped in an envelope `{ data, meta: { ts_ms, trace_id, is_simulated? } }`.

    All timestamps are `*_at_ms` integer milliseconds; all money is decimal string.'
  contact:
    email: support@predictasiax.com
  license:
    name: PredictAsiaX Builder License
    url: https://docs.predictasiax.com/legal/builder-license
servers:
- url: https://api.predictasiax.com
  description: Production
security:
- bearerAuth: []
tags:
- name: Audit
  description: Public tamper-evident audit chain — Merkle head/root/batches/health/anchor endpoints
paths:
  /v1/audit/head:
    get:
      tags:
      - Audit
      summary: Latest audit_log head
      description: Returns the newest `audit_log` row — id, prev_hash, entry_hash, actor, action, target, created_at_ms. Public; no auth.
      responses:
        '200':
          description: OK
      operationId: getV1AuditHead
      x-operation-id-source: derived
  /v1/audit/root:
    get:
      tags:
      - Audit
      summary: Fetch a specific audit_log row + inclusion proof
      description: '`?id=` returns the row plus the Merkle proof needed to verify it against the latest anchored batch root.'
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '404':
          description: NOT_FOUND
      operationId: getV1AuditRoot
      x-operation-id-source: derived
  /v1/audit/batches:
    get:
      tags:
      - Audit
      summary: List recent Merkle batches
      description: Batches are cut every ~60s. Each returns batch_id, merkle_root, first_event_id, last_event_id, count, published_at_ms, r2_manifest_url, and anchor state.
      responses:
        '200':
          description: OK
      operationId: getV1AuditBatches
      x-operation-id-source: derived
  /v1/audit/health:
    get:
      tags:
      - Audit
      summary: Audit chain health
      description: Returns lag_since_last_batch_ms, lag_since_last_anchor_ms, expected_batch_interval_ms, expected_anchor_interval_ms, and status (`healthy` / `degraded` / `stalled`). Use as an SLO probe.
      responses:
        '200':
          description: OK
      operationId: getV1AuditHealth
      x-operation-id-source: derived
  /v1/audit/anchor:
    get:
      tags:
      - Audit
      summary: Latest on-chain anchor
      description: Returns the most recent Polygon anchor tx that committed a Merkle batch root — batch_id, merkle_root, tx_hash, block_number, anchored_at_ms.
      responses:
        '200':
          description: OK
      operationId: getV1AuditAnchor
      x-operation-id-source: derived
  /v1/audit/proof/{evt_id}:
    parameters:
    - name: evt_id
      in: path
      required: true
      schema:
        type: string
        pattern: ^evt_[0-9a-zA-Z]{6,20}$
    get:
      tags:
      - Audit
      summary: Audit chain proof for one event
      description: Returns the audit event plus its hash chain link. Verify by walking prev_hash back to a published root. Public, no auth. Merkle inclusion proof will land later; today the verification method is chain_replay.
      responses:
        '200':
          description: Audit event + proof
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      event:
                        type: object
                        properties:
                          id:
                            type: string
                          prev_hash:
                            type: string
                            description: sha256 hex of the previous entry.
                          entry_hash:
                            type: string
                            description: sha256 hex of this entry.
                          actor:
                            type:
                            - string
                            - 'null'
                          action:
                            type: string
                          target:
                            type:
                            - string
                            - 'null'
                          before_json:
                            type:
                            - string
                            - 'null'
                          after_json:
                            type:
                            - string
                            - 'null'
                          created_at_ms:
                            type: integer
                            format: int64
                      verification_method:
                        type: string
                        example: chain_replay
                      notes:
                        type: string
                  meta:
                    type: object
                    properties:
                      ts_ms:
                        type: integer
                        format: int64
                      trace_id:
                        type: string
        '404':
          description: audit event not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: NOT_FOUND
                      message:
                        type: string
                      trace_id:
                        type: string
      operationId: getV1AuditProofByEvtId
      x-operation-id-source: derived
  /v1/audit/anchor/{num}:
    get:
      tags:
      - Audit
      summary: Fetch audit anchor by on-chain tx number
      parameters:
      - name: num
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      operationId: getV1AuditAnchorByNum
      x-operation-id-source: derived
  /v1/audit/batches/latest:
    get:
      tags:
      - Audit
      summary: Latest audit batch
      responses:
        '200':
          description: OK
      operationId: getV1AuditBatchesLatest
      x-operation-id-source: derived
  /v1/audit/batches/{num}:
    get:
      tags:
      - Audit
      summary: Audit batch by sequence number
      parameters:
      - name: num
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      operationId: getV1AuditBatchesByNum
      x-operation-id-source: derived
  /v1/audit/events/{seq}:
    get:
      tags:
      - Audit
      summary: Audit event by sequence number
      parameters:
      - name: seq
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      operationId: getV1AuditEventsBySeq
      x-operation-id-source: derived
  /v1/audit/status:
    get:
      tags:
      - Audit
      summary: Audit chain health + latest anchors
      responses:
        '200':
          description: OK
      operationId: getV1AuditStatus
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Send `Authorization: Bearer sk_live_*` or an OAuth 2.1 access token. `sk_live_` and OAuth tokens go through the same authenticator; capability is differentiated by tier (`sandbox` / `self_serve` / `read_live` / `trade_capped` / `trade_full` / `genesis` / `partner`). Sandbox and production share the same host and key prefix — the tier flag caps sandbox at $10/order + $100/day.'
    oracleApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Oracle api-key minted via POST /v1/provider/keys. Equivalently sent as `Authorization: Bearer <api-key>`. Write endpoints additionally require the `oracle:write` scope.'
    platformSession:
      type: apiKey
      in: header
      name: X-PAX-Session
      description: 'Platform login session (consumer app) or builder-portal OAuth token. Equivalently sent as `Authorization: Bearer <token>`. Used only by the /v1/provider/keys endpoints to mint, list, or revoke oracle api-keys.'