{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vaquill-ai/json-schema/vaquill-ai-draft-create-request-schema.json",
  "title": "DraftCreateRequest",
  "description": "Start a generation. There is no synchronous create.\n\n`jurisdiction` is deliberately absent and fixed at US: this is a US-only\nproduct (OPINIONS.md), and a field whose only accepted value is the default\nis a field a customer has to discover before they can ignore it.\n`governingLawState` is required for the same reason it is required\ninternally: a US draft with no pinned governing law cites nothing.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vaquill-ai-drafting-api-openapi.yml#/components/schemas/DraftCreateRequest",
  "properties": {
    "category": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Category",
      "description": "What kind of document to generate, as a category slug. Validated against the live vocabulary when the generation starts."
    },
    "title": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Title",
      "description": "Title for the generated draft."
    },
    "governingLawState": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1,
      "title": "Governinglawstate",
      "description": "Governing law to pin. Accepts a code (`ca`), a name (`California`) or the sentinel `federal`. Required: a US draft with no pinned governing law cites nothing."
    },
    "tone": {
      "type": "string",
      "enum": [
        "protective",
        "balanced",
        "permissive"
      ],
      "title": "Tone",
      "description": "How protective the generated language should be: `protective`, `balanced` or `permissive`.",
      "default": "balanced"
    },
    "specialInstructions": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40000
        },
        {
          "type": "null"
        }
      ],
      "title": "Specialinstructions",
      "description": "Anything specific this draft needs, in your own words."
    },
    "variables": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Variables",
      "description": "Template variable values, for example `{\"party_a_name\": \"Acme Corp\"}`. Which keys mean anything is a property of the category, so this is deliberately free-form. Unfilled placeholders are counted on export."
    },
    "practiceArea": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Practicearea",
      "description": "Practice area for the draft. Inferred from the category when omitted."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "category",
    "title",
    "governingLawState"
  ]
}