{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/voixcall-com/json-schema/voixcall-com-transcript-detail-schema.json",
  "title": "TranscriptDetail",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/voixcall-com-openapi.yml#/components/schemas/TranscriptDetail",
  "additionalProperties": false,
  "properties": {
    "action_items": {
      "description": "Follow-ups from the call, redacted like summary.",
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "call_id": {
      "pattern": "^call_[0-9a-f]{32}$",
      "type": "string"
    },
    "completed_at": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "duration_seconds": {
      "description": "Length of the transcribed recording.",
      "format": "int64",
      "type": [
        "integer",
        "null"
      ]
    },
    "id": {
      "pattern": "^tr_[0-9a-f]{32}$",
      "type": "string"
    },
    "language": {
      "description": "BCP 47 tag when detected.",
      "type": [
        "string",
        "null"
      ]
    },
    "livemode": {
      "type": "boolean"
    },
    "next_utterance_offset": {
      "description": "Set when more utterances follow: the utterance_offset for the next page. null on the last page and without include=utterances.",
      "format": "int64",
      "type": [
        "integer",
        "null"
      ]
    },
    "object": {
      "description": "Always \"transcript\".",
      "enum": [
        "transcript"
      ],
      "type": "string"
    },
    "reference_numbers": {
      "description": "Facts worth copying out of the call (case ids, dates, amounts), redacted like summary with label and value checked together. An entry whose value was a sensitive number stays in the list with the value [redacted], so you know one was mentioned; the full value is only in the VoixCall app.",
      "items": {
        "$ref": "#/$defs/ReferenceNumber"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "status": {
      "description": "pending and processing: being made. completed: summary available. failed: transcription failed (it can be requested again once it has stopped retrying). expired: removed by the transcript retention period; the summary and utterances are gone. New values may appear.",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed",
        "expired"
      ],
      "type": "string"
    },
    "summary": {
      "description": "AI summary of the call, redacted: when it holds six or more digits in all, or a word such as code, OTP, PIN, password, card or account, every number in it reads [redacted]; keypad entries always do. null until completed, and once expired.",
      "type": [
        "string",
        "null"
      ]
    },
    "utterances": {
      "description": "Speaker turns, redacted, only with include=utterances on a completed transcript; null otherwise. A long transcript is returned in pages that fit the 32 KB response cap: pass next_utterance_offset as utterance_offset to continue.",
      "items": {
        "$ref": "#/$defs/Utterance"
      },
      "type": [
        "array",
        "null"
      ]
    }
  },
  "required": [
    "utterances",
    "next_utterance_offset",
    "id",
    "object",
    "livemode",
    "call_id",
    "status",
    "summary",
    "action_items",
    "reference_numbers",
    "language",
    "duration_seconds",
    "completed_at"
  ],
  "type": "object",
  "$defs": {
    "ReferenceNumber": {
      "additionalProperties": false,
      "properties": {
        "label": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "label",
        "value"
      ],
      "type": "object"
    },
    "Utterance": {
      "additionalProperties": false,
      "properties": {
        "end_seconds": {
          "description": "Offset from the start of the recording, seconds.",
          "format": "double",
          "type": "number"
        },
        "speaker": {
          "description": "You and Them on two-channel recordings; Speaker 1, Speaker 2, … when the recording is single-channel and voices were told apart automatically.",
          "type": "string"
        },
        "start_seconds": {
          "description": "Offset from the start of the recording, seconds.",
          "format": "double",
          "type": "number"
        },
        "text": {
          "description": "What was said, with every number (digits or spelled out) and keypad entry read [redacted] (SPEC §10.4).",
          "type": "string"
        }
      },
      "required": [
        "speaker",
        "start_seconds",
        "end_seconds",
        "text"
      ],
      "type": "object"
    }
  }
}