List Organizations
List every organization on the platform.
Replacement for the deleted customer-realm
GET /organizations/ endpoint. Gated on require_console_user
so only a pragmatiks-employee session token reaches it — the
Clerk SDK’s JWKS check rejects customer-realm tokens, and
require_console_user rejects ConsoleMachine M2M tokens with
403. This closes the tenant-enumeration primitive that a customer
org:admin used to hold against the old endpoint.
Args: user: Authenticated ConsoleUser (unused beyond the gate). shared_client: Shared-namespace SurrealDB client.
Returns: List of organization records ordered by name.
Documentation Index
Fetch the complete documentation index at: https://docs.pragmatiks.io/llms.txt
Use this file to discover all available pages before exploring further.
Response
Successful Response
Lifecycle status of an organization.
Bootstrap states: BOOTSTRAPPING: Organization row exists, bootstrap worker has not yet finished provisioning tenant namespace resources. READY: Organization is fully provisioned and usable. BOOTSTRAP_FAILED: Bootstrap worker exhausted its retry budget. Recovery is manual during private beta: operators contact support or clear the failure via direct SurrealDB intervention.
Teardown states: DEACTIVATING: Cleanup worker is tearing down tenant resources. DELETED: Organization fully cleaned up.
bootstrapping, ready, bootstrap_failed, deactivating, deleted