Skip to content

Docs

get_transcript

Read one transcription run's status and, once ready, its text, segments and subtitle files.

Read one transcription run's status and, once ready, its text, segments and subtitle files.

Access and cost

  • Kind: query
  • Scope: workspace
  • Actors: member, agent
  • Credits: Free
  • Requires confirmation: false
  • Accepts idempotency key: false

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "transcriptId": {
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "transcriptId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "transcript": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "workspaceId": {
          "format": "uuid",
          "type": "string"
        },
        "mediaAssetId": {
          "format": "uuid",
          "type": "string"
        },
        "status": {
          "enum": [
            "pending",
            "processing",
            "ready",
            "failed"
          ],
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "language": {
          "type": [
            "string",
            "null"
          ]
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "segments": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "startMs": {
                "type": "number"
              },
              "endMs": {
                "type": "number"
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "startMs",
              "endMs",
              "text"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "srt": {
          "type": [
            "string",
            "null"
          ]
        },
        "vtt": {
          "type": [
            "string",
            "null"
          ]
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "workspaceId",
        "mediaAssetId",
        "status",
        "provider",
        "language",
        "text",
        "segments",
        "srt",
        "vtt",
        "error",
        "createdAt",
        "updatedAt"
      ],
      "type": "object"
    }
  },
  "required": [
    "transcript"
  ],
  "type": "object"
}

Errors

[
  "not_found"
]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true,
  "title": "Get a transcript"
}