{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transcribe-so/json-schema/transcribe-so-transcription-schema.json",
  "title": "Transcription",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transcribe-so-openapi.yml#/components/schemas/Transcription",
  "type": "object",
  "required": [
    "id",
    "status",
    "stage",
    "pipeline_code",
    "language",
    "source"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "description": "Plain integer. Doubles as the dashboard URL segment\n(`https://transcribe.so/transcriptions/<id>`).\n"
    },
    "status": {
      "type": "string",
      "description": "`pending`/`quoted` before start, `queued` while waiting for a\nconcurrency slot, `processing` while running, then `completed`,\n`failed`, or `cancelled`.\n",
      "enum": [
        "pending",
        "quoted",
        "queued",
        "processing",
        "completed",
        "failed",
        "cancelled"
      ]
    },
    "stage": {
      "type": "string"
    },
    "progress": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "pipeline_code": {
      "type": "string"
    },
    "language": {
      "type": "string"
    },
    "detected_language": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": [
        "string",
        "null"
      ],
      "description": "Input source. `realtime` marks rows created by the realtime\nsessions API (not submittable via POST /transcriptions).\n",
      "enum": [
        "youtube",
        "external_url",
        "platform_url",
        "upload",
        "realtime",
        null
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "external_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set when `source` is `external_url`. Null otherwise.\n"
    },
    "youtube_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set when `source` is `youtube`. Null otherwise. NOTE: every\nchapter / section / qna citation / posting_chapters item\nalready carries a pre-computed `url` field with the canonical\ntimestamp deep-link — use those VERBATIM in markdown links\nrather than rebuilding from this base URL. This field exists\nfor cases where you need the bare video URL without a\ntimestamp, or when you want to direct the user to the source\nwithout anchoring to a specific moment. Canonical timestamp\nformat if you ever do build one yourself: append `?t=<sec>`\n(bare integer seconds, e.g.\n`https://youtu.be/RdAY3DjSr3A?t=1121`). If the base URL\nalready has a query string, use `&t=<sec>`. Avoid HH:MM:SS\n(`?t=00:18:41`), the legacy `&start=` parameter, and the\n`?t=Ns` suffix form — `?t=Ns` was documented as valid but\ndoes not reliably seek when the link opens through ChatGPT's\nredirector (verified 2026-05-25).\n"
    },
    "duration_seconds": {
      "type": [
        "number",
        "null"
      ],
      "description": "Source media duration in seconds (server-probed via yt-dlp /\nffprobe / TUS-upload ffprobe — the caller-supplied value is\nadvisory only and replaced by the probe).\n"
    },
    "charge_usd": {
      "type": [
        "number",
        "null"
      ],
      "description": "Final customer charge in USD (2dp). Server-derived from\nduration_seconds via ceil(N/60) × pipeline retail rate ×\ntier markup. Caller-supplied values are ignored. Note: on\nGET responses `billed_minutes` and `retail_usd` are NOT\npresent (only the 202 create/retry responses carry them);\nderive locally if needed:\n`billed_minutes = ceil(duration_seconds/60)`.\n"
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "processing_started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "processing_completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_via_api_key_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "callback_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Per-request webhook target set at create time (see\n`CreateTranscriptionRequest.callback_url`). Null when none was\nsupplied. The signing secret is never returned here.\n"
    },
    "client_reference": {
      "type": [
        "string",
        "null"
      ],
      "description": "Your id for this job, set at create time (see\n`CreateTranscriptionRequest.client_reference`). Null when unset.\n"
    },
    "client_recording_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The durable recording id an upload job was created with (see\n`CreateTranscriptionRequest.client_recording_id`). Null when unset.\n"
    },
    "held_reason": {
      "type": "string",
      "enum": [
        "fair_use_window",
        "concurrency"
      ],
      "description": "Present only when `status` is `queued`: why the job waits.\n`concurrency` = the account is at its limit of jobs at once; it\nstarts when one finishes. `fair_use_window` is no longer emitted\n(the 6-hour processing window was removed).\n"
    },
    "estimated_start_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Present only when `status` is `queued`. Always null: a job waiting\nfor a free slot has no start time.\n"
    }
  }
}