{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/secure-flows-com/json-schema/secure-flows-com-workspace-create-request-schema.json",
  "title": "WorkspaceCreateRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/secure-flows-user-api.yaml#/components/schemas/WorkspaceCreateRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Unique workspace name (public tenant identifier)"
    },
    "acceptAnonimous": {
      "type": "boolean",
      "default": true,
      "description": "Whether anonymous Firebase users may create sessions in this workspace"
    },
    "enableSelfService": {
      "type": "boolean",
      "default": true,
      "description": "Whether end users may use the self-service dashboard for this workspace"
    },
    "planName": {
      "type": "string",
      "enum": [
        "free",
        "base",
        "pro"
      ],
      "description": "Initial billing catalog plan. Defaults to **free** when omitted."
    },
    "resellerCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional reseller referral code (e.g. from a `?reseller=` link). An unknown or\ninvalid code is silently ignored — it never blocks workspace creation.\n"
    }
  }
}