Skip to main content

Create organization

Creates an Organization and makes the caller the owner. Requires a Bearer session.
1 min read
post/organizations
Request example
Response
post/organizations

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Body

application/json
namestringrequired#

Responses

application/json
Created.
dataobjectrequired#
Show child attributes
idstringrequired#
namestringrequired#
handlestring#
URL slug when set; omitted when the org has no reserved handle yet.
ownerIdstringrequired#
roleenum<string>required#
Options:owneradminmember
memberCountintegerrequired#
profileCountintegerrequired#
canManagebooleanrequired#