Create a new organization for the authenticated user. The user becomes an admin of the organization. Use this during onboarding when a user signs in without an organization (the frontend typically redirects to Polar checkout).
WorkOS JWT token. Obtain via WorkOS AuthKit authentication flow. The token must include organization_id claim for organization-scoped endpoints.
Input for creating a new organization. The organization ID comes from WorkOS after creation.
Required fields:
name: Human-readable name for the organization (1-100 characters)1 - 100OK
Organization with the requesting user's role
WorkOS organization ID (e.g., org_01ABC...)
Organization name displayed in the dashboard.
URL-friendly slug for routing and sharing.
URL to the organization logo or avatar, if set.
Timestamp when the organization was created.
Timestamp when the organization was last updated.
User's role in this organization (e.g., 'admin', 'member')