Skip to main content
POST
Create Organization

Authorizations

Authorization
string
header
required

Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.

Body

application/json
name
string
required

Organization display name.

Required string length: 2 - 80
keepCurrentActiveOrganization
boolean
default:false

When true, Better Auth keeps the current active organization instead of switching active context.

Response

Organization created

ok
boolean
required
organizationId
string
required
organization
object
required
redirectUrl
string