tenants

Create the current tenant resource when missing.

Changed on

Ensures a Tenant custom resource exists for the bearer token's active Better Auth organization. The request returns immediately with the current bootstrap state and does not wait for the tenant to become ready.

put/api/tenant

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/tenant
  • Auth: HTTP bearer

Response

Tenant exists and current bootstrap state is returned.

organization_idstring required
namespacestring required
readyboolean required
phase'BOOTSTRAPPING' | 'READY' | 'FAILED' required

Changes

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became nullable for the status