getOrganization()
Retrieves a single .
function getOrganization(params: GetOrganizationParams): Promise<Organization>- Name
- organizationId | slug
- Type
- string
- Description
- The ID of the organization to retrieve, or the slug of the organization to retrieve. 
 
const organizationId = 'org_123'
const response = await clerkClient.organizations.getOrganization({ organizationId })Retrieve by slug
Retrieve an organization by its slug instead of its ID.
const slug = 'my-organization-slug'
const response = await clerkClient.organizations.getOrganization({ slug })Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint GET/organizations/{organization_id}. See the BAPI reference for more information.
Feedback
Last updated on