{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cadencz-com/json-schema/cadencz-com-learn-voice-request-schema.json",
  "title": "LearnVoiceRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cadencz-com-strategy-api-openapi.yml#/components/schemas/LearnVoiceRequest",
  "properties": {
    "posts": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "minItems": 1,
      "title": "Posts",
      "description": "5-10 of the user's past posts. The voice agent learns their tone from these."
    },
    "niche": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Niche"
    },
    "writing_notes": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Writing Notes"
    },
    "avoid_style": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Avoid Style"
    },
    "platform": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform",
      "description": "The platform these posts were written for (x, linkedin, threads, …). The tone learned from them is then used for that platform's drafts only. Omit for posts that stand for every platform."
    }
  },
  "type": "object",
  "required": [
    "posts"
  ]
}