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

# Get transcriptions segments



## OpenAPI

````yaml /openapi.json get /transcriptions/{transcription_id}/segments
openapi: 3.0.0
info:
  title: Kair Voice
  version: '1.0'
servers:
  - url: http://0.0.0.0:8000/api
security: []
tags:
  - name: Admin
  - name: ApiKey
  - name: Auth
  - name: Concerns
  - name: Device
  - name: Graph
  - name: Health
  - name: Job
  - name: Session
  - name: Workshop
  - name: Workspace
paths:
  /transcriptions/{transcription_id}/segments:
    get:
      tags:
        - Session
      operationId: get-transcriptions-transcription-id-segments
      parameters:
        - name: transcription_id
          schema:
            type: string
            format: uuid
          in: path
          required: true
          deprecated: false
          explode: true
      responses:
        '200':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/TranscriptionSegmentsResponse'
        '401':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: ''
        '500':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TranscriptionSegmentsResponse:
      type: object
      title: TranscriptionSegmentsResponse
      required:
        - stats
        - segments
      properties:
        stats:
          $ref: '#/components/schemas/TranscriptionSegmentsStats'
        segments:
          type: array
          items:
            $ref: '#/components/schemas/TranscriptionSegmentResponse'
    ErrorResponse:
      type: object
      title: ErrorResponse
      required:
        - success
        - message
      properties:
        success:
          type: boolean
        message:
          type: string
    TranscriptionSegmentsStats:
      type: object
      title: TranscriptionSegmentsStats
      required:
        - segment_count
      properties:
        speaker_count:
          type: integer
          format: int32
          description: |-
            Number of distinct `speaker_label` values across the segments.
            `None` when no segments have a speaker label.
        segment_count:
          type: integer
          format: int32
        duration_ms:
          type: integer
          format: int32
          description: Total duration in milliseconds (`max(end_ms) - min(start_ms)`).
        avg_confidence:
          type: number
          format: float
          description: Mean of the `confidence` field across segments that have one.
        diarisation_model_version:
          type: string
          description: |-
            Mirror of `TranscriptionResponse.diarisation_model_version` for
            convenience so callers don't have to join the parent transcription.
    TranscriptionSegmentResponse:
      type: object
      title: TranscriptionSegmentResponse
      required:
        - id
        - transcription_id
        - start_ms
        - end_ms
        - text
      properties:
        id:
          type: string
          format: uuid
        transcription_id:
          type: string
          format: uuid
        start_ms:
          type: integer
          format: int32
        end_ms:
          type: integer
          format: int32
        speaker_label:
          type: string
        text:
          type: string
        confidence:
          type: number
          format: float

````