> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heardraft.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get transcription task

> Retrieves the current status and, once `ready`, the full text, recording duration, and millisecond-timestamped transcript segments for a task submitted by the same workspace.




## OpenAPI

````yaml /openapi.yaml get /api/v1/transcriptions/{id}
openapi: 3.1.0
info:
  title: HearDraft Transcription API
  version: 1.0.0
  description: >
    Submit audio or video recordings from your backend and retrieve timestamped
    transcripts with millisecond precision. Every transcription task created
    through the API is synced into the owning HearDraft workspace so your team
    can replay audio, edit passages, and export TXT, Markdown, CSV, JSON, SRT,
    or VTT.
servers:
  - url: https://heardraft.com
    description: Production API
security:
  - BearerAuth: []
tags:
  - name: Transcriptions
    description: Submit recordings and poll transcription results.
paths:
  /api/v1/transcriptions/{id}:
    get:
      tags:
        - Transcriptions
      summary: Get transcription task
      description: >
        Retrieves the current status and, once `ready`, the full text, recording
        duration, and millisecond-timestamped transcript segments for a task
        submitted by the same workspace.
      operationId: getTranscription
      parameters:
        - name: id
          in: path
          required: true
          description: >-
            UUID of the transcription task returned by `POST
            /api/v1/transcriptions`.
          schema:
            type: string
            format: uuid
            example: 8b1e23fa-4c2b-4a8e-9b19-1d63df06a012
      responses:
        '200':
          description: Current transcription task state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TranscriptionTask'
        '401':
          description: Missing or invalid Bearer API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Workspace does not have an active annual plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: >-
            Task does not exist for this workspace or has expired
            (`TASK_NOT_FOUND`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Workspace rate limit exceeded (120 requests per minute).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    TranscriptionTask:
      type: object
      required:
        - id
        - sourceId
        - status
        - expiresAt
        - result
        - error
      properties:
        id:
          type: string
          format: uuid
          description: Unique transcription job ID.
          example: 8b1e23fa-4c2b-4a8e-9b19-1d63df06a012
        sourceId:
          type: string
          format: uuid
          description: >-
            Source ID inside the HearDraft workspace where this recording and
            transcript appear.
          example: 1f9c2810-79a4-4f25-8f55-c2e60ad1a4be
        status:
          type: string
          enum:
            - queued
            - running
            - ready
            - failed
            - canceled
          description: Current processing status of the transcription task.
          example: ready
        expiresAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            ISO-8601 expiration timestamp, or `null` when retained on an active
            paid plan.
          example: null
        result:
          oneOf:
            - $ref: '#/components/schemas/TranscriptionResult'
            - type: 'null'
        error:
          oneOf:
            - type: object
              required:
                - code
                - message
              properties:
                code:
                  type: string
                  example: TRANSCRIPTION_FAILED
                message:
                  type: string
                  example: Transcription could not finish.
            - type: 'null'
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: INVALID_IDEMPOTENCY_KEY
            message:
              type: string
              example: >-
                Send an Idempotency-Key with 8–128 letters, digits, dots,
                underscores or hyphens.
    TranscriptionResult:
      type: object
      required:
        - text
        - durationSeconds
        - segments
      properties:
        text:
          type: string
          description: Full transcript joined with newline separators.
          example: |-
            Welcome back everyone.
            Let's review the interview timeline before Friday.
        durationSeconds:
          type: number
          description: Total duration of the original recording in seconds.
          example: 142.4
        segments:
          type: array
          items:
            $ref: '#/components/schemas/TranscriptSegment'
    TranscriptSegment:
      type: object
      required:
        - text
        - startMs
        - endMs
      properties:
        text:
          type: string
          description: Spoken text for this passage.
          example: Let's review the interview timeline before Friday.
        startMs:
          type: integer
          minimum: 0
          description: Segment start time in milliseconds.
          example: 4200
        endMs:
          type: integer
          minimum: 0
          description: Segment end time in milliseconds.
          example: 8650
        speaker:
          type:
            - string
            - 'null'
          description: Optional speaker label assigned to this segment.
          example: Speaker 1
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key generated in HearDraft
        (`https://heardraft.com/app/developers/api`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.