Skip to main content
POST
/
api
/
public
/
organizations
Create an organization
curl --request POST \
  --url https://charts.basedash.com/api/public/organizations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "customAiContext": "<string>",
  "skipOnboarding": true,
  "fullEmbedEnabled": true,
  "embedAllowedOrigins": [
    "<string>"
  ],
  "slug": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "customAiContext": "<string>",
    "onboardingStatus": "STARTED",
    "fullEmbedEnabled": true,
    "embedAllowedOrigins": [
      "<string>"
    ],
    "embedJwtSecret": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer token format: Bearer bd_key_<secret>

Body

application/json
name
string
required

Name of the organization

Minimum string length: 1
customAiContext
string

Custom context for AI features

skipOnboarding
boolean

Skip onboarding flow

fullEmbedEnabled
boolean

Enable full embed functionality

embedAllowedOrigins
string[]

Allowed origins for embedding

slug
string

URL-friendly slug

Response

Organization created successfully

data
object
required