{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cadencz-com/json-schema/cadencz-com-onboarding-start-request-schema.json",
  "title": "OnboardingStartRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cadencz-com-onboarding-api-openapi.yml#/components/schemas/OnboardingStartRequest",
  "properties": {
    "url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000,
          "minLength": 4
        },
        {
          "type": "null"
        }
      ],
      "title": "Url",
      "description": "The website to analyze."
    },
    "brief": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 50000
        },
        {
          "type": "null"
        }
      ],
      "title": "Brief",
      "description": "A written description of the product, used instead of a website: what it is, who it is for, the problem, the benefits, the tone."
    },
    "company_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 160
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Name",
      "description": "The brand or product name. Required with a brief."
    },
    "platforms": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 20
        },
        {
          "type": "null"
        }
      ],
      "title": "Platforms",
      "description": "Where the first week should be written for. Saved to the strategy before the run starts."
    },
    "goals": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 12
        },
        {
          "type": "null"
        }
      ],
      "title": "Goals",
      "description": "What the posts are for — ids from the goal catalogue (promote, learnings, engage, build_in_public, grow, authority). Saved to the strategy before the run."
    },
    "brain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brain Id",
      "description": "Target an existing brain."
    },
    "new_brain": {
      "type": "boolean",
      "title": "New Brain",
      "description": "Force a fresh brain (plan-capped).",
      "default": false
    },
    "refresh": {
      "type": "boolean",
      "title": "Refresh",
      "description": "Re-read the brain's data only — its plan is left untouched.",
      "default": false
    }
  },
  "type": "object"
}