{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coppica-com/json-schema/coppica-com-extract-request-schema.json",
  "title": "ExtractRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coppica-com-openapi.yml#/components/schemas/ExtractRequest",
  "type": "object",
  "properties": {
    "client_id": {
      "type": "string",
      "format": "uuid"
    },
    "text": {
      "type": "string",
      "description": "The copy to analyze. Required unless output_id is given."
    },
    "output_id": {
      "type": "string",
      "format": "uuid",
      "description": "Tag an output that already exists for this client (for example a writing run before it launches). Its techniques are stored against it, so diagnose returns them. Uses the output's own copy when text is omitted. Cannot be combined with persist:false."
    },
    "context_hint": {
      "type": "string",
      "maxLength": 500,
      "description": "Optional context, e.g. \"a Facebook ad for a chiropractor\"."
    },
    "label": {
      "type": "string",
      "description": "Optional label for the stored output."
    },
    "persist": {
      "type": "boolean",
      "default": true,
      "description": "Store a bot_outputs row so you can report outcomes against the returned output_id."
    }
  },
  "required": [
    "client_id"
  ]
}