{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendraven-ai/json-schema/sendraven-ai-event-response-schema.json",
  "title": "EventResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendraven-ai-events-api-openapi.yml#/components/schemas/EventResponse",
  "type": "object",
  "required": [
    "event",
    "automations_started",
    "conversion_id"
  ],
  "properties": {
    "event": {
      "type": "string",
      "description": "The name as given."
    },
    "automations_started": {
      "type": "integer",
      "minimum": 0,
      "description": "Automations that actually enrolled the person. Exclusions, an existing active enrolment, or an automation that cannot enrol anyone are not reported, only left out of the count. 0 is not an error."
    },
    "conversion_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The conversion this event recorded, when name is a conversion goal; with a repeated id, the first one's. null when name is not a goal."
    }
  }
}