Skip to main content
POST
/
v1
/
console
/
tenants
Create Tenant
curl --request POST \
  --url http://localhost:8000/v1/console/tenants \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "slug": "<string>",
  "domain": "<string>",
  "lms_type": "<string>"
}
'
{
  "data": {
    "created_at": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "is_active": true,
    "name": "<string>",
    "slug": "<string>",
    "ai_config": {
      "admin_email": "<string>",
      "default_language": "<string>",
      "default_llm_model": "<string>",
      "default_stt_language": "<string>",
      "default_tts_voice": "<string>",
      "max_sessions_per_student": 123,
      "support_email": "<string>"
    },
    "allowed_origins": [],
    "branding": {
      "logo_url": "<string>",
      "primary_color": "<string>",
      "secondary_color": "<string>",
      "widget_position": "<string>"
    },
    "domain": "<string>",
    "lms_type": "<string>",
    "sso_config": {
      "is_enabled": true,
      "provider": "<string>",
      "server_url": "<string>",
      "callback_url": "<string>"
    },
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "message": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

Enter your JWT access token

Body

application/json
name
string
required
Required string length: 1 - 255
slug
string
required
Required string length: 1 - 100
Pattern: ^[a-z0-9-]+$
domain
string | null
Maximum string length: 255
lms_type
string | null
Maximum string length: 50

Response

Successful Response

data
TenantResponse · object
message
string | null
success
boolean
default:true