{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendraven-ai/json-schema/sendraven-ai-conversion-goal-schema.json",
  "title": "ConversionGoal",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendraven-ai-conversion-goals-api-openapi.yml#/components/schemas/ConversionGoal",
  "type": "object",
  "required": [
    "id",
    "event_name",
    "window_days",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "event_name": {
      "type": "string",
      "description": "The event name, matched exactly against name on POST /v1/events. Unique within the workspace."
    },
    "window_days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 30,
      "description": "How many days before the conversion a click may be and still earn the credit."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}