If you only need a working client, start with the Quickstart. Come back here when you are wiring secrets, using your own JWT, or rotating keys.
Flow
The diagram shows what happens when your app calls the SDK.Steps in the SDK
Auth mode
Most apps use an API key. Use one of the other modes only when you already manage auth somewhere else.- API key (recommended)
- Bring your own JWT
- Org + user login (debug only)
Key storage
Local dev
.env file. Add it to .gitignore. Load with python-dotenv.Docker / Kubernetes
Secret manager mounted as
TEX_API_KEY env var.Vercel / Netlify
Project environment variable named
TEX_API_KEY.GitHub Actions
Repository secret exposed as
${{ secrets.TEX_API_KEY }}.TEX_API_KEY from the environment automatically when api_key= is omitted.
Rotation
1
Mint key B
2
Roll out
Deploy with
TEX_API_KEY=<key B>.3
Verify
Check the dashboard’s
last_used_at value or your own logs.4
Revoke key A
Click Revoke on the old key. JWTs created from key A can keep working for up to 24h, so customers do not see a sudden failure.
Bad key
Token lifetimes. Access JWTs last 24h. Refresh JWTs last 7d. After that, the SDK exchanges your API key again. To invalidate tokens, revoke the API key they came from.
Next: multi-user memory
How
org_id / user_id / session_id partition memory.
