API Overview
The internal service layer under src/services/api/.
All data access is centralised in ~90 services under src/services/api/, most extending a shared BaseApiService. These are an internal, typed service layer — not a public REST API. Access is enforced by Supabase Row-Level Security plus role/entitlement checks.
- Reads/writes go through Supabase (tables, views, and SECURITY DEFINER RPCs).
- Sensitive actions (KYB decisions, verification attestations, credit issuance) go through admin RPCs, not direct table writes.
- Heavy or third-party work (AI, OCR, Stripe, social publishing) runs in Supabase edge functions.
See API Reference for services grouped by domain, and Edge Functions for the serverless jobs.