{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-create-organization-request-schema.json",
  "title": "CreateOrganizationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-organizations-api-openapi.yml#/components/schemas/CreateOrganizationRequest",
  "properties": {
    "organization_name": {
      "type": "string",
      "title": "Organization Name",
      "description": "Display name for the new organization."
    },
    "organization_key": {
      "type": "string",
      "title": "Organization Key",
      "description": "URL-safe slug that prefixes the organization's platform paths: 3-40 lowercase letters, numbers, and hyphens. Must be unique per environment."
    },
    "user_emails": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "User Emails",
      "description": "Optional seed members for the new organization. Each email is added as an OWNER and skips the invite flow.",
      "default": []
    }
  },
  "type": "object",
  "required": [
    "organization_name",
    "organization_key"
  ]
}