createOrganization
Tool name:
createOrganization
Description:
Creates a new organization in your Clerk instance.
Use this tool when you need to programmatically create organizations.
A name is required to create an organization. Other fields like slug,
maxAllowedMemberships, and metadata are optional.
Example use cases:
1. Creating organizations during user onboarding
2. Building a self-service organization creation flow
3. Migrating organizations from another system
.
Arguments:
- name: (string): The name of the new organization. Required.
- slug: (string, optional): A URL-friendly identifier for the organization. If not provided, created from the name.
- createdBy: (string, optional): The user ID of the user creating the organization. Defaults to the current authenticated user.
- maxAllowedMemberships: (number, optional): Maximum number of members allowed in the organization.
- publicMetadata: (Record<string,any>, optional): Public metadata for the organization.
- privateMetadata: (Record<string,any>, optional): Private metadata for the organization (backend-only).