> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cooket.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# API

> Go HTTP service, canonical read models, and metadata storage.

`apps/api` is a Go service using chi and PostgreSQL. It serves liveness/readiness, public stored objects, token and market read models, wallet/creator projections, read-only CTO projections, and metadata draft/finalization writes.

All repository queries are scoped to the configured Arc Testnet chain ID. Canonical event rows and application exclusions determine public token views. Financial values are serialized as decimal integer strings so clients do not lose uint256 precision.

Token, trade, and chart responses expose `indexed_through_block` where implemented. This is the canonical indexer checkpoint observed in the database transaction, not the maximum block seen in an unrelated table. The browser uses surface-specific checkpoints for realtime reconciliation.

Metadata finalization is not chain execution. The API verifies that a canonical indexed launch matches the claimed token address, transaction hash, name, symbol, fixed supply, and creator-bound draft before publishing metadata.

The production configuration supports `https://api.cooket.fun`, but repository configuration alone does not prove that the endpoint is currently healthy. See [API reference](/docs/api-reference/overview).
