getOrganizationList()
Retrieves a list of organizations.
const organizations = await clerkClient.organizations. getOrganizationList();
GetOrganizationListParams
Name | Type | Description |
---|---|---|
limit? | number | The number of results to return. |
offset? | number | The number of results to skip. |
query? | string | The query to search for. |
Example
getOrganizationList({ limit })
Retrieves organization list that is filtered by the number of results:
const sessions = await clerkClient.organizations.getOrganizationList({ // returns the first 10 results limit: 10, });