Get organization details by ID.
Returns a single organization record. Raises 404 if not found (handled by exception handler via OrganizationNotFoundError).
Returns: Organization record.
Successful Response
Organization record stored in shared SurrealDB namespace.
Represents a Clerk organization synced via webhooks. Stored in the shared namespace because organization data must be accessible before any organization context exists (e.g., during webhook processing).
Identity fields (frozen): organization_id: Clerk organization ID, used as SurrealDB record ID.
Metadata: name: Display name of the organization. slug: URL-friendly organization identifier from Clerk.
State (system-managed): status: Lifecycle status (active, deactivating, deleted).
Agent routing: main_agent_resource_id: SurrealDB resource ID of the organization's main conversation agent, used as the entry point for chat routing.
Inherited from PragmaModel: created_at: Creation timestamp (frozen). updated_at: Last update timestamp (mutable).