{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cekura-ai/json-schema/cekura-ai-call-log-list-schema.json",
  "title": "CallLogList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cekura-ai-observability-api-openapi.yml#/components/schemas/CallLogList",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "duration": {
      "type": "string",
      "readOnly": true,
      "description": "Call duration in minutes in MM:SS format.\nExample: `01:10`"
    },
    "success": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the call was successful.\nExample: `true` or `false`"
    },
    "is_reviewed": {
      "type": "boolean",
      "description": "Whether the call has been reviewed.\nExample: `true` or `false`"
    },
    "status": {
      "enum": [
        "success",
        "failure",
        "reviewed_success",
        "reviewed_failure"
      ],
      "type": "string",
      "x-spec-enum-id": "a5dfbbcee6f2a6ce",
      "description": "Status of the call or conversation.\nExample: `\"completed\"` or `\"failed\"`\n\n* `success` - Success\n* `failure` - Failure\n* `reviewed_success` - Reviewed Success\n* `reviewed_failure` - Reviewed Failure"
    },
    "feedback": {
      "type": "string",
      "description": "Feedback about the call.\nExample: `\"Great Call\"`"
    },
    "metrics": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CallLogListSerializerMetrics"
      },
      "readOnly": true,
      "description": "Metrics of the call"
    },
    "call_ended_reason": {
      "type": "string",
      "description": "Reason why the call ended.\nExample: \n- `\"customer-ended-call\"`\n- `\"agent-ended-call\"`\n",
      "maxLength": 100
    },
    "customer_number": {
      "type": "string",
      "description": "Customer's phone number or identifier.\nExample: \n- `\"+1234567890\"`\n- `\"customer_abc123\"`\n",
      "maxLength": 100
    },
    "agent": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Agent ID"
    },
    "agent_name": {
      "type": "string",
      "readOnly": true,
      "description": "Agent name"
    },
    "call_id": {
      "type": "string",
      "description": "Unique identifier for the call.\nExample: \n- `\"call_abc123xyz\"`\n- `\"stereo_audio_session_456\"`",
      "maxLength": 100
    },
    "trace_id": {
      "type": "string",
      "description": "OpenTelemetry trace ID (32-char hex). Set when OTel tracing is enabled.",
      "maxLength": 32
    },
    "is_log_present": {
      "type": "boolean",
      "description": "Whether provider execution logs are stored for this call."
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "When the call occurred.\nExample: `2024-03-15T10:15:45Z`"
    },
    "error_message": {
      "type": [
        "string",
        "null"
      ]
    },
    "dropoff_point": {
      "type": "string",
      "description": "Point in conversation where user disengaged.\nExample: `\"end of conversation as no queries remaining\"`",
      "maxLength": 1000
    },
    "topic": {
      "type": "string",
      "description": "Topic of the call.\nExample: \n- `\"product_inquiry\"`\n- `\"technical_support\"`\n",
      "maxLength": 1000
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "When this record was created.\nExample: `2024-03-15T10:30:45Z`"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "When this record was last updated.\nExample: `2024-03-15T10:35:11Z`"
    },
    "transcript": {
      "type": "string",
      "description": "Full text transcript of the call.\nExample: \n```text\n[00:01] Testing Agent: Hello. \n[00:02] Main Agent: Hello, how can I help you today?\n[00:03] Testing Agent: Well, I mean, sure. What time exactly are we talking about here\n[00:04] Main Agent: 6 PM.\n[00:05] Testing Agent: Great. I'll book that for you. Just a sec.\n[00:06] Main Agent: Okay.\n```\n"
    },
    "transcript_object": {
      "type": "string",
      "readOnly": true,
      "description": "Structured transcript data with timestamps.\nExample: \n```json\n[\n    {\n        \"role\": \"Testing Agent\",\n        \"content\": \"Hello\",\n        \"start_time\": 1.2,\n        \"end_time\": 1.8\n    },\n    {\n        \"role\": \"Main Agent\",\n        \"content\": \"Hello, how can I help you today?\",\n        \"start_time\": 1.8,\n        \"end_time\": 2.5\n    }\n]`"
    },
    "evaluation": {
      "type": "string",
      "readOnly": true,
      "description": "Evaluation of the call"
    }
  },
  "required": [
    "call_id"
  ],
  "$defs": {
    "CallLogListSerializerMetrics": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Metric ID"
        },
        "name": {
          "type": "string",
          "description": "Metric name"
        },
        "type": {
          "type": "string",
          "description": "Metric type"
        },
        "score": {
          "type": "number",
          "format": "double",
          "description": "Evaluated metric score, Present if metrictype is not enum"
        },
        "enum": {
          "type": "string",
          "description": "Metric enum, Present if type is enum"
        },
        "value": {
          "type": "string",
          "description": "Evaluated metric value, Present if metric type is enum"
        }
      },
      "required": [
        "enum",
        "id",
        "name",
        "score",
        "type",
        "value"
      ]
    }
  }
}