Skip to content

Organizations

List my organizations
organizations.list() -> OrganizationListResponse
GET/v1/organizations
Create organization
organizations.create(OrganizationCreateParams**kwargs) -> OrganizationCreateResponse
POST/v1/organizations
ModelsExpand Collapse
class OrganizationListResponse:

Envelope for the caller’s organization memberships (paginated).

organizations: List[Organization]
id: str

Prefixed organization identifier (org_<base64-encoded-uuid>).

idp_org_id: Optional[str]

IdP-issued tenant id (WorkOS org id).

idp_provider: Optional[Literal["workos", "vitable"]]
  • workos - WorkOS
  • vitable - Vitable
One of the following:
"workos"
"vitable"
name: str

Human-readable organization name.

super_in: bool

Whether this organization reads across every organization.

type: Optional[Literal["BROKERAGE", "TPA", "GENERAL_AGENT", 3 more]]
  • BROKERAGE - Brokerage
  • TPA - TPA
  • GENERAL_AGENT - General Agent
  • CHANNEL_PARTNER - Channel Partner
  • CONSULTING_FIRM - Consulting Firm
  • API_PLATFORM - API Platform
One of the following:
"BROKERAGE"
"TPA"
"GENERAL_AGENT"
"CHANNEL_PARTNER"
"CONSULTING_FIRM"
"API_PLATFORM"
total: int

Total number of organizations the caller belongs to.

class OrganizationCreateResponse:
id: str

Prefixed organization identifier (org_<base64-encoded-uuid>).

idp_org_id: Optional[str]

IdP-issued tenant id (WorkOS org id).

idp_provider: Optional[Literal["workos", "vitable"]]
  • workos - WorkOS
  • vitable - Vitable
One of the following:
"workos"
"vitable"
name: str

Human-readable organization name.

super_in: bool

Whether this organization reads across every organization.

type: Optional[Literal["BROKERAGE", "TPA", "GENERAL_AGENT", 3 more]]
  • BROKERAGE - Brokerage
  • TPA - TPA
  • GENERAL_AGENT - General Agent
  • CHANNEL_PARTNER - Channel Partner
  • CONSULTING_FIRM - Consulting Firm
  • API_PLATFORM - API Platform
One of the following:
"BROKERAGE"
"TPA"
"GENERAL_AGENT"
"CHANNEL_PARTNER"
"CONSULTING_FIRM"
"API_PLATFORM"