API reference.
For power users who want to script site creation, ingest glossary at scale, or pipe usage data into their own dashboards.
Authentication
User endpoints accept a Clerk JWT as Authorization: Bearer <jwt>.
Get a JWT by signing in to app.tlucent.com and inspecting window.Clerk.session.getToken().
JWTs are short-lived, so scripted use should fetch a fresh token per call from an
authenticated Clerk session.
Admin endpoints (operator-only) require Authorization: Bearer <ADMIN_API_KEY>.
Not available to customers.
Endpoints
POST /api/public/demo/translate Ephemeral translation for the marketing demo widget. Rate-limited to 5 req/IP/hr.
GET /api/me Current Clerk user mirror.
GET /api/me/sites List your sites.
POST /api/me/sites Create a new site.
GET /api/me/sites/:id Site detail incl. cache stats + recent pages.
PATCH /api/me/sites/:id Update origin URL, enabled languages, or status.
GET /api/me/sites/:id/glossary List glossary terms for a site.
POST /api/me/sites/:id/glossary Bulk upsert glossary terms.
GET /api/me/sites/:id/usage?range=30d Daily request + char + TM hit-rate series.
GET /api/me/billing Plan + status + current-period usage.
POST /api/billing/checkout Create a Creem checkout session.
GET /api/admin/tenants All tenants across customers. Bearer ADMIN_API_KEY required.
POST /api/admin/tenants/:id/suspend Suspend a tenant (operator).
Machine-readable spec
There's no published OpenAPI document yet — the endpoint list above is the authoritative reference. If you're wiring up a generator and want a spec file, email support@tlucent.com.