{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cekura-ai/json-schema/cekura-ai-patched-update-call-log-schema.json",
  "title": "PatchedUpdateCallLog",
  "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/PatchedUpdateCallLog",
  "type": "object",
  "properties": {
    "status": {
      "enum": [
        "success",
        "failure",
        "reviewed_success",
        "reviewed_failure"
      ],
      "type": "string",
      "x-spec-enum-id": "a5dfbbcee6f2a6ce",
      "description": "Human-reviewed call outcome. Use `success`, `failure`, `reviewed_success`, or `reviewed_failure`.\n\n* `success` - Success\n* `failure` - Failure\n* `reviewed_success` - Reviewed Success\n* `reviewed_failure` - Reviewed Failure"
    },
    "feedback": {
      "type": "string",
      "description": "Human feedback about the call."
    },
    "call_id": {
      "type": "string",
      "description": "Unique identifier for the call.\nExample: \n- `\"call_abc123xyz\"`\n- `\"stereo_audio_session_456\"`",
      "maxLength": 100
    },
    "transcript_type": {
      "enum": [
        "cekura",
        "vocera",
        "vapi",
        "retell",
        "deepgram",
        "pipecat",
        "livekit",
        "elevenlabs"
      ],
      "type": "string",
      "x-spec-enum-id": "c6022e3df55b8e81",
      "writeOnly": true,
      "description": "Format of the `transcript_json` payload. Tells Cekura how to parse roles and timestamps.\n\n- `vapi` — Vapi webhook format: `[{\"role\": \"bot\"|\"user\", \"message\": \"...\", \"time\": 0.0}]`\n- `retell` — Retell webhook format\n- `elevenlabs` — ElevenLabs format\n- `livekit` — LiveKit format\n- `pipecat` — Pipecat format\n- `deepgram` — Deepgram format\n- `cekura` (default) — `[{\"role\": \"Testing Agent\"|\"Main Agent\", \"content\": \"...\", \"start_time\": 0.0, \"end_time\": 2.5}]`. **Valid roles are `\"Testing Agent\"` and `\"Main Agent\"` only** — using `\"agent\"` or `\"user\"` will return a validation error.\n\nOmit this field to detect the supported format automatically.\n\n* `cekura` - cekura\n* `vocera` - vocera\n* `vapi` - vapi\n* `retell` - retell\n* `deepgram` - deepgram\n* `pipecat` - pipecat\n* `livekit` - livekit\n* `elevenlabs` - elevenlabs"
    },
    "transcript_json": {
      "description": "\nCall transcript in supported format (Vapi, Retell, Deepgram, ElevenLabs, Cekura)\n\nCheck the [Transcript Format](/documentation/advanced/transcript-format) documentation for more details.\n\nCekura Transcript Format Example:\n```json\n[\n   {\n      \"role\": \"Testing Agent\",\n      \"content\": \"Hello.\",\n      \"end_time\": 1.9399999,\n      \"start_time\": 1.4399999\n   },\n   {\n      \"role\": \"Main Agent\",\n      \"content\": \"Hello. I want to book appointment today. My name is John.\",\n      \"end_time\": 7.539999511718751,\n      \"start_time\": 3.1\n   },\n   {\n      \"role\": \"Testing Agent\",\n      \"content\": \"Well, I mean, sure. What time exactly are we talking about here\",\n      \"end_time\": 15.71,\n      \"start_time\": 12.01\n   },\n   {\n      \"role\": \"Main Agent\",\n      \"content\": \"6 PM.\",\n      \"end_time\": 18.269999,\n      \"start_time\": 17.609999\n   }\n]\n```\n"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "When the call occurred.\nExample: `2024-03-15T10:15:45Z`"
    },
    "duration": {
      "type": "number",
      "format": "double",
      "minimum": 0,
      "description": "Call duration in minutes as a non-negative number. For example, use `1.5` for one minute and 30 seconds."
    },
    "call_ended_reason": {
      "type": "string",
      "description": "\nReason why the call ended\nExample:\n- `\"customer-ended-call\"`\n- `\"agent-ended-call\"`\n",
      "maxLength": 100
    },
    "customer_number": {
      "type": "string",
      "description": "\nCustomer's phone number or identifier\nExample:\n- `\"+1234567890\"`\n- `\"customer_abc123\"`\n",
      "maxLength": 100
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {},
      "description": "\nAdditional call metadata. Supplied top-level keys are merged with existing metadata; supplied keys overwrite matching keys and omitted keys are preserved.\nExample:\n```json\n{\n    \"customer_id\": \"123\",\n    \"order_id\": \"ORD-12345\",\n    \"name\": \"John Doe\"\n}\n```\n"
    },
    "dynamic_variables": {
      "type": "object",
      "additionalProperties": {},
      "description": "\nDynamic variables used to replace {{variables}} in agent description. Supplied top-level keys are merged with existing variables; supplied keys overwrite matching keys and omitted keys are preserved.\nExample:\n```json\n{\n    \"subscription_id\": \"SUB-12345\",\n    \"product_type\": \"premium\"\n}\n```\n"
    },
    "reevaluate_metrics": {
      "type": "boolean",
      "writeOnly": true,
      "description": "Run metric evaluation on the call log after applying this update. Releases a call that was ingested with deferred evaluation, otherwise re-evaluates an already evaluated call. Calls whose evaluation is still running are left untouched."
    }
  }
}