{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentonair-com/json-schema/agentonair-com-listen-record-response-schema.json",
  "title": "ListenRecordResponse",
  "description": "Receipt returned after a public listen-tracking attempt.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentonair-com-analytics-api-openapi.yml#/components/schemas/ListenRecordResponse",
  "properties": {
    "status": {
      "type": "string",
      "const": "ok",
      "title": "Status",
      "default": "ok"
    },
    "episode_id": {
      "type": "string",
      "title": "Episode Id"
    },
    "counted": {
      "type": "boolean",
      "title": "Counted",
      "description": "True when this request inserted a new unique listen row for analytics."
    },
    "deduped": {
      "type": "boolean",
      "title": "Deduped",
      "description": "True when the same listener/episode was already counted for the dedupe window.",
      "default": false
    },
    "listen_count_incremented": {
      "type": "boolean",
      "title": "Listen Count Incremented",
      "description": "True when the aggregate episode listen_count was incremented for a new listen.",
      "default": false
    },
    "analytics_available": {
      "type": "boolean",
      "title": "Analytics Available",
      "description": "False when playback was accepted but analytics storage was unavailable.",
      "default": true
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Note"
    }
  },
  "type": "object",
  "required": [
    "episode_id",
    "counted"
  ]
}