getDomains
suspend fun Organization.getDomains(limit: Int = 20, offset: Int = 0, enrollmentMode: String? = null): ClerkResult<ClerkPaginatedResponse<OrganizationDomain>, ClerkErrorResponse>
Retrieves all domains associated with this organization.
Return
A ClerkResult containing a paginated response of OrganizationDomain objects on success, or a ClerkErrorResponse on failure.
Parameters
limit
The maximum number of domains to return per request. Default is 20.
offset
The number of domains to skip when paginating through results. Default is 0.
enrollmentMode
Filter domains by enrollment mode. Can be "manual_invitation" or "automatic_invitation". If null, all domains are returned.