clerk.create_organization
Create a new organization in a connected Clerk application.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns the new organization summary.
Cost = 10 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Organization display name. | |
| slug | No | Optional URL-friendly slug for the organization. | |
| created_by | Yes | Clerk user id (user_...) of the user creating the organization. | |
| public_metadata | No | Optional public metadata as a JSON object. | |
| private_metadata | No | Optional private metadata as a JSON object. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. | |
| max_allowed_memberships | No | Optional maximum number of memberships allowed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| organization | No | Newly created Clerk organization summary. |