Skip to content

How TenancyEngine works ​

TenancyEngine gives your SaaS product the parts every B2B product needs before its first paying customer: sign-in, customer organizations with roles, plans and entitlements, and subscription billing. You keep building your product; you call TenancyEngine for the rest.

The pieces ​

PieceWhereWhat it does for you
Consoleconsole.tenancyengine.comRegister applications, manage customers and their plans, create API keys, and see activity.
Sign-in and runtime APIauth.saasruntime.com, api.saasruntime.comHosted sign-in for your end users, tokens for your app, and the API your backend calls to check features, limits, and usage.
Billingbilling.tenancyengine.comSubscriptions, invoices, and payment methods for your customers.

Core concepts ​

ConceptMeaning
ApplicationYour product. Each application has its own branding, sign-in settings, plans, and API keys.
EnvironmentDevelopment, staging, and production copies of an application, so you can try changes without touching live customers.
Customer organizationOne of your customers. Each gets an isolated workspace with its own members and roles.
Features and limitsWhat a plan includes. Your backend checks these before doing work.
API keyA server-side credential that lets your backend call the runtime API. Scope it to what the backend needs.

Design principles ​

  • One sign-in for every app. Your users sign in on a hosted page that carries your app's name, logo, and color.
  • Your app talks to the runtime API only. Production SDK configuration points at auth.saasruntime.com and api.saasruntime.com.
  • Isolation by default. Every request is scoped to a customer organization.
  • Same shape in every environment. Development, staging, and production use the same settings and endpoints.

Next steps ​

TenancyEngine platform documentation