Alodium Docs

API Reference

The read endpoints of the public lineage API, and where to find the parts a schema cannot describe.

This reference is generated from lineage-api 1.7.0 and covers its 27 public endpoints.

Every response from the public API carries an API-Version header, including errors and OPTIONS preflights. Compare that value with the contract version shown above to check whether the deployed API and this reference match:

curl -sD - -o /dev/null 'https://staging.alodiumscan.com/api/v1/frontiers?limit=1'

The value comes from the OpenAPI document embedded in the serving binary. It is separate from the service image release version and the /v1 route major. Browser JavaScript can read it through response.headers.get('API-Version'); the public API exposes it with Access-Control-Expose-Headers.

Every page under this section is generated from the service's own OpenAPI document, one page per endpoint, grouped the way the API groups itself. What you get there is exact: paths, parameters, response shapes, and the field descriptions the service ships.

What you do not get there is everything you need to use it. An OpenAPI document describes the shape of a call, not the conventions around it — how an identifier is written, what an integer enum means, how a cursor behaves, or how long after a write a read reflects it. That material is prose:

Using the API →

Worth reading before the first call:

AccessBase URL, and what authentication is and is not required
Identifiersbytes32 hex versus a DID's two renderings — the same value appears both ways, and one endpoint returns it as a decimal string
Enum valueskind, verdict, qualityGrade, taskType and execution come back as raw on-chain integers. This is the key
PaginationCursors are opaque and must be handed back verbatim
Eventual consistencyA write is not readable the instant it lands on chain
ErrorsThe error body's shape, and the codes it carries

If you would rather start by making a call than by reading, that page opens with a five-step walkthrough — read a CF, follow its task, campaign and frontier, then list the task’s CFs — each step a request you can paste.

Two other surfaces are documented elsewhere, and neither is in this section. The metadata documents are what a publisher writes and anchors, rather than what this API returns. The Explorer's key concepts page carries the live network and contract addresses, which stay there because they are rendered from the same code the Explorer's own pages read.

What this section does not cover

Eight of the endpoints in the service's document are deliberately absent here, and the public service withholds the same set:

  • Probes, whose contract is that an operator may change them at will — /health, /ready.
  • Internal reads — page-shaped rollups and one internal service's lookup — where publishing them would commit an external contract to an internal consumer's needs — /v1/cfs/{cf_id}/overview, /v1/datasets/{id}/overview, /v1/dids/{did}/owned, /v1/frontiers/{id}/activity, /v1/search, /v1/tasks/{id}/creation.

If an endpoint you can call is missing from these pages, that is a bug in this site rather than a policy: the list above is read out of the same Go the public service enforces its own exclusions with, so the two cannot disagree without failing this site's build.

Last updated