Skip to main content
Version: v1.0.0(int)

W013: Get organization

Returns the active organization's identity row. Triggered on every authenticated page so the shell can render the org name without a second round-trip.

Steps

  1. Load the organization. Call Platform.getOrganizationById(ctx.orgId).

Returns

The organization row: { id, name, slug, isActive, createdAt, updatedAt }.

Business rules

  • Tenant scoping is automatic. The app.org_id GUC is already set by the auth middleware; the workflow trusts it.
  • Branding and billing fields are not on the org row today. Hardcoded per-org branding (legal name, address) is surfaced via the per-org branding registry consumed by W013. When the organization_settings table lands, this workflow grows a settings merge step.

Errors

  • NotFoundError. The org does not exist (data-corruption case; should not happen for an authenticated request).