{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/voixcall-com/json-schema/voixcall-com-transcript-requested-schema.json",
  "title": "TranscriptRequested",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/voixcall-com-openapi.yml#/components/schemas/TranscriptRequested",
  "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"
      ]
    },
    "cost": {
      "$ref": "#/$defs/Money",
      "description": "What the transcript will be charged when it completes: the transcription rate per started minute of recording, the same price the app shows. Nothing is charged if transcription fails."
    },
    "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"
    },
    "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"
      ]
    }
  },
  "required": [
    "cost",
    "id",
    "object",
    "livemode",
    "call_id",
    "status",
    "summary",
    "action_items",
    "reference_numbers",
    "language",
    "duration_seconds",
    "completed_at"
  ],
  "type": "object",
  "$defs": {
    "Money": {
      "additionalProperties": false,
      "properties": {
        "amount": {
          "description": "Decimal string with two decimals.",
          "pattern": "^-?[0-9]+\\.[0-9]{2}$",
          "type": "string"
        },
        "currency": {
          "enum": [
            "USD"
          ],
          "type": "string"
        }
      },
      "required": [
        "amount",
        "currency"
      ],
      "type": "object"
    },
    "ReferenceNumber": {
      "additionalProperties": false,
      "properties": {
        "label": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "label",
        "value"
      ],
      "type": "object"
    }
  }
}