tlucent
Language

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.

public
GET
/api/me

Current Clerk user mirror.

user
GET
/api/me/sites

List your sites.

user
POST
/api/me/sites

Create a new site.

user
GET
/api/me/sites/:id

Site detail incl. cache stats + recent pages.

user
PATCH
/api/me/sites/:id

Update origin URL, enabled languages, or status.

user
GET
/api/me/sites/:id/glossary

List glossary terms for a site.

user
POST
/api/me/sites/:id/glossary

Bulk upsert glossary terms.

user
GET
/api/me/sites/:id/usage?range=30d

Daily request + char + TM hit-rate series.

user
GET
/api/me/billing

Plan + status + current-period usage.

user
POST
/api/billing/checkout

Create a Creem checkout session.

user
GET
/api/admin/tenants

All tenants across customers. Bearer ADMIN_API_KEY required.

admin
POST
/api/admin/tenants/:id/suspend

Suspend a tenant (operator).

admin

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.