getOrganization()
Retrieves a single organization by the organization ID, if the ID is valid. Throws an error if the organization ID is invalid.
const organizationId = 'my-organization-id';
const organization = await clerkClient.organizations.getOrganization({ organizationId });
- Name
organizationId | slug
- Type
string
- Description
The ID of the organization to retrieve, or the slug of the organization to retrieve.
const slug = 'my-organization-slug';
const organization = await clerkClient.organizations.getOrganization({ slug });
Feedback
Last updated on