Skip to content

Content API ​

Read-only content served through the KHAWI API. Clients do not call Strapi directly.

Endpoints ​

text
GET /api/v1/content/pages/{slug}
GET /api/v1/content/faqs
GET /api/v1/content/help-articles
GET /api/v1/content/safety-guides
GET /api/v1/content/announcements
GET /api/v1/content/legal/{slug}

Reference data ​

text
GET /api/v1/content/reference/vehicle-types
GET /api/v1/content/reference/relationship-types
GET /api/v1/content/reference/journey-categories
GET /api/v1/content/reference/service-areas
GET /api/v1/content/reference/commute-hubs
GET /api/v1/content/reference/organisations
GET /api/v1/content/reference/communities

Rules ​

  • Read-only. Content is authored in Strapi, never through this API.
  • Published only. Draft and scheduled content are not served.
  • Cached. Content changes rarely and is read constantly; serve from cache with revalidation.
  • Validated on read. Malformed content degrades to a fallback rather than propagating a broken payload to clients.
  • No admin surface. No endpoint here exposes Strapi's admin or content-management API.

Why proxy content at all ​

Direct Strapi access from a client would couple the frontend to Strapi's internal API shape. Proxying means:

  • a stable frontend contract that survives a Strapi version change
  • controlled exposure — only published, public content crosses the boundary
  • validation and caching at the edge
  • one place to audit who read what

Content vs policy ​

This API serves content. It does not serve active policy.

Active policy is a policy_version in PostgreSQL, evaluated by the compliance engine. Strapi holds policy drafts; the admin API activates versions. A client reading this endpoint gets reference data — never the rules currently governing eligibility.

See Strapi Overview and Strapi Policies.

Degradation ​

If Strapi is unavailable, serve cached or last-known content. Journeys, bookings and compliance decisions are unaffected — Strapi owns none of them.

KHAWI — same route, go together.