FeatServe 1.0 · API Documentation

Point-in-time feature serving fundamentals

FeatServe 1.0 is the Kryptur console and same-origin REST proxy for FEATSRV — an open-source point-in-time feature store for insurance and actuarial ML. It guarantees temporal correctness so training and online inference never see future feature values.

Fundamentals

Point-in-time correctness

Every feature value is joined as-of an event_timestamp. SCD Type 2 history (for example address or credit band) is resolved so only information available at prediction time enters the training row — eliminating look-ahead leakage.

Online Redis store

Policy and claim lookups serve low-latency features from Redis (typically under 10 ms on the deployed VPS). Use GET /online/policy/{id} and GET /online/claim/{id} via the same-origin proxy.

Offline PIT training

POST /pit-training and POST /offline materialize leakage-free DataFrames for underwriting, pricing, and fraud models — backed by Feast, Dask, and PySpark engines in FEATSRV.

Leakage audit

POST /leakage-audit flags rows where feature_timestamp is after event_timestamp, ranked by severity across actuarial portfolios.

Authentication

Requests to /api/featserve/* forward to the FEATSRV FastAPI backend. Pass the API key with the x-api-key header. The console falls back to Nimbus demo JSON when live backends are unreachable.

curl -H "x-api-key: YOUR_KEY" \
  https://www.kryptur.com/api/featserve/health

REST endpoints

Proxy base: /api/featserve — all paths below are relative to the Kryptur origin.

MethodPathSummary
GET/api/featserve/healthService health and store status (Redis + parquet).
GET/api/featserve/online/policy/{id}Real-time policy feature lookup from the online Redis store.
GET/api/featserve/online/claim/{id}Real-time claim feature lookup for underwriting and fraud models.
POST/api/featserve/pit-trainingBuild a leakage-free point-in-time training set from entity timestamps.
POST/api/featserve/offlineBatch offline feature materialization for actuarial ML pipelines.
POST/api/featserve/leakage-auditDetect feature timestamps that leak information after the event timestamp.
GET/api/featserve/feature-importanceRanked feature importance across underwriting, pricing, and fraud models.

Live console tabs

  • Overview — KPIs, request volume, recent CLI activity, and service mix.
  • Data Lineage — source-to-consumer feature flow through the PIT store.
  • Risk & Leakage — portfolio exposure, trend window, and audit findings table.
  • Feature Importance — underwriting, pricing, and fraud model rankings.
  • Training & Batch — PIT training preview and offline batch payloads.
  • Online Lookups — interactive policy and claim Redis lookups.
Launch console