L
LTNG

LTNG Platform API

Cloudflare Workers API — internal documentation

Base URLs

Production
https://api.ltng.app
Development
https://api.ltng.dev

Architecture

Authenticated API
Client Request
Bearer token
LTNGModule-Router
Auth0 token validation
CF service binding → resource worker
Resource CFWorker
e.g. Transact-CFWorkers-Customers
CF service binding → OM worker
OM Worker
Schema definitions + storage logic
reads / writes
D1 (SQLite)
KV
R2
Public API (GET only)
Client Request
no auth required
LTNGModule-PublicRouter
Rewrites /v2/public/ → /v2/modules/
check KV cache first
cache hit → return immediately
KV Cache
Read-through; TTL-based expiry
cache miss → proxy via SERVICE_ROUTER
Resource CFWorker
Same workers as authenticated path
reads
D1 (SQLite)
KV

Authentication

Management (mgmt)
Auth0 token via ltngv2.us.auth0.com — full access, server-to-server
Client
OAuth2 access token scoped per resource (e.g. read:customers write:customers)
Public
No auth — served via /v2/public/* routes only
Loading API data...