{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/preuve-ai/json-schema/preuve-ai-create-agency-analysis-request-schema.json",
  "title": "CreateAgencyAnalysisRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/preuve-ai-openapi.json#/components/schemas/CreateAgencyAnalysisRequest",
  "type": "object",
  "required": [
    "clientRunId",
    "idea"
  ],
  "properties": {
    "clientRunId": {
      "type": "string",
      "maxLength": 200,
      "description": "Idempotency key, scoped to the calling API key."
    },
    "idea": {
      "type": "string",
      "minLength": 40,
      "maxLength": 50000
    },
    "targetMarket": {
      "type": "string",
      "maxLength": 180
    },
    "targetCountry": {
      "type": "string",
      "maxLength": 80,
      "default": "global"
    },
    "stage": {
      "type": "string",
      "maxLength": 80
    },
    "budget": {
      "type": "string",
      "maxLength": 80
    },
    "language": {
      "type": "string",
      "maxLength": 12,
      "default": "en"
    },
    "scanType": {
      "type": "string",
      "enum": [
        "deep",
        "starter"
      ],
      "default": "deep",
      "description": "\"deep\" spends one shared deep project credit. \"starter\" runs a client Starter Scan that spends no credit, within the Starter fair use (see the operation). Any other value is 400 INVALID_SCAN_TYPE. A clientRunId replay keeps the scan type it was started with.\n"
    },
    "publish": {
      "type": "boolean",
      "enum": [
        false
      ],
      "description": "Not accepted here. Client share links are created in the Agency dashboard; publish=true is 400 INVALID_INPUT.\n"
    }
  }
}