Skip to main content
POST
Create Organization

Authorizations

Authorization
string
header
required

API key or session token (Bearer)

Body

application/json
name
string
required

The name of the organization

slug
string
required

The slug of the organization

userId
string

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"

logo
string | null

The logo of the organization

metadata
object

The metadata of the organization

keepCurrentActiveOrganization
boolean

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

description
string | null

Response

Success