v18

latestOpenAPI 3.0.3raw.githubusercontent.com2026-07-111422448.7 KB
Organization Management

Create Organization

Create an organization

post/auth/organization/create

Request body

namestring required

The name of the organization

slugstring required

The slug of the organization

userIdstring nullable

The user id of the organization creator. If not provided, the current user will be used. Should only be used by admins or when called by the server. server-only. Eg: "user-id"

logostring nullable

The logo of the organization

metadatastring nullable

The metadata of the organization

keepCurrentActiveOrganizationboolean nullable

Whether to keep the current active organization active after creating a new one. Eg: true

descriptionstring nullable

Response

Success

idstring nullable
namestring required
slugstring required
logostring nullable
createdAtstring date-time required
metadatastring nullable
descriptionstring nullable