TenancyEngine developer docs
Everything you need to integrate an application with TenancyEngine's SaaSRuntime platform: identity, tenants, usage metering, entitlements, and analytics, generated straight from the live API, not hand-maintained copy that drifts.
Getting started
Register an application, get an organization API key, and make your first authenticated call.
Authentication
Organization API keys vs. OIDC bearer tokens: which to use, headers, scopes, and error codes.
API reference
Every route, method, and parameter, rendered live from /api/openapi.json.
SDKs
Install TenancyEngine.Sdk (.NET) or call the API directly. Real, working code samples.
Try it live
Once you're signed in to TE Console, the API playground lets you paste one of your own organization's API keys and execute real requests against the real API, with no copy-paste curl commands required. It's gated behind your normal TenancyEngine sign-in, since it makes real calls with your real credential.
https://console.tenancyengine.com/console/developer-playground and requires an authenticated console session.
What TenancyEngine's runtime API covers
| Concern | What you get |
|---|---|
| Identity | OIDC authority, organizations, tenants, roles, claims. See Authentication. |
| Application/tenant lookup | GET /api/v1/runtime/applications/{slug}, GET /api/v1/runtime/applications/{applicationId}/tenants/{slug}. |
| Runtime context (roles, claims, offerings) | GET /api/v1/runtime/applications/{slug}/context. |
| Usage metering | POST .../usage/consume and .../usage/release. |
| Analytics | POST /api/v1/runtime/analytics/events (single and batch). |
| Entitlements / add-ons | GET /api/v1/runtime/add-ons/{code}/status. |