API

Overview

The REST API is a thin reader over the same tables the SQL engine uses. Field names match the dataset schema. There is no parallel “API shape.”

Base URL

text
https://api.chainforge.cn

Conventions

JSON only. Pagination uses a cursor, not offset. Timestamps are ISO-8601 UTC. Hashes are 0x-prefixed. Null means unknown or not applicable, never a sentinel string.

Versioning

The current prefix is /v1. Additive fields may appear without a version bump. Removed or renamed fields require /v2.

LiveInteractive examples live on the API page. This section is the contract.