Documentation

Start with the quickstart, then go as deep as you need

Guides and the reference live in two places: the docs site for concepts and SDKs, and the API reference generated from the live OpenAPI spec.

Open the docs site Browse the API reference

Guides

Quickstart

Create an application, mint an API key, install an SDK, check what a customer can use, and verify webhooks.

Read quickstart

SDK reference

Server SDKs and browser and mobile sign-in SDKs. The .NET SDK is on nuget.org; the status of each other language is listed on the page.

Read sdk reference

Concepts

Applications, environments, customer organizations, roles, features, and plan limits, and how they fit together.

Read concepts

Sign-in and MFA

Hosted sign-in with passkeys, authenticator apps, and email or SMS codes, branded for your app.

Read sign-in and mfa

Guides for people building a SaaS product

Background reading that is not specific to our API: how sign-in works, how to meter usage, how to separate customers, and how to receive webhooks safely.

See all resources

Your first request

Ask what a customer is allowed to do

Create an organization API key in the console, keep it on your server, and call the runtime context endpoint before you run tenant-scoped work. The example uses a production key in TENANCYENGINE_API_KEY; a lab or staging key lives inTENANCYENGINE_API_KEY_LAB or TENANCYENGINE_API_KEY_STAGINGand is only ever sent to that platform.

curl "https://api.saasruntime.com/api/v1/runtime/applications/{applicationSlug}/context?environment=Production&tenantId={tenantId}" \
  -H "X-TenancyEngine-Api-Key: $TENANCYENGINE_API_KEY"

Looking for something else?

Read the FAQ, see what changed in the changelog, or ask us.