▲SKI REFERENCE
API v1.3

Canonical ski facts,
with proof attached.

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.

Public reads

No authentication
GET/api/v1/resorts

Publishable resort registry. Optional ?country=FR.

GET/api/v1/resorts/{slug}

One canonical resort record.

GET/api/v1/resorts/{slug}/providers

Publishable providers attached to a publishable resort.

GET/api/v1/categories

Controlled provider category vocabulary.

GET/api/v1/stats

Public registry counts.

Integrity

Public verification
GET/api/v1/ledger/verify

Verify 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.

Authenticated writes

Ingestion runtime only
X-Ingest-Key: …X-Idempotency-Key: unique-request-key
POST/api/v1/resorts

Create, 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_at

Optional 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/providers

Create, verify or update a provider.

POST/api/v1/{subject_type}/{subject_id}/deactivate

Append-only deactivation path.

01

Provenance first

A published fact carries its primary source and verification time.

02

Fail closed

STALE and UNVERIFIED records do not leak through public read routes.

03

One write path

Canonical builders, idempotency and the signed ledger stay in one transaction.