Provenance first
A published fact carries its primary source and verification time.
Read endpoints publish only active VERIFIED or AGEING records. Writes require an ingest key and an idempotency key. Every successful canonical change appends one signed ledger event.
GET/api/v1/resortsPublishable resort registry. Optional ?country=FR.
GET/api/v1/resorts/{slug}One canonical resort record.
GET/api/v1/resorts/{slug}/providersPublishable providers attached to a publishable resort.
GET/api/v1/categoriesControlled provider category vocabulary.
GET/api/v1/statsPublic registry counts.
GET/api/v1/ledger/verifyVerify the full append-only chain and configured signatures. Results are cached for up to 30 seconds per ledger head; any new append triggers a fresh full verification. verified_at reports when the check ran.
GET/api/v1/ledger/proof/{entry_hash}Portable proof for one ledger event.
GET/api/v1/ledger/latest/{subject_type}/{subject_id}Latest portable proof for a resort or provider.
X-Ingest-Key: …X-Idempotency-Key: unique-request-keyPOST/api/v1/resortsCreate, verify or update a resort through the canonical builder. A resort is matched on country + name, so re-posting a known resort appends VERIFY (unchanged) or UPDATE (changed) and never mints a duplicate.
POSTlast_verified_atOptional on both write bodies: ISO 8601 with timezone, when the primary source was actually checked. Omit to mean “now”. Migrations must send the historic value. A re-verification never moves freshness backwards; future or naive timestamps are rejected.
POST/api/v1/providersCreate, verify or update a provider.
POST/api/v1/{subject_type}/{subject_id}/deactivateAppend-only deactivation path.
A published fact carries its primary source and verification time.
STALE and UNVERIFIED records do not leak through public read routes.
Canonical builders, idempotency and the signed ledger stay in one transaction.