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

# Upload STT dataset item

> Upload one audio clip with its transcript and append it to an STT dataset



## OpenAPI

````yaml /api-reference/openapi.json post /datasets/{dataset_id}/items/upload
openapi: 3.1.0
info:
  title: Calibrate Public API
  version: 0.1.0
  description: Programmatic API for CI/automation. Pass your key in the `X-API-Key` header.
servers:
  - url: https://api.calibrate.artpark.ai
    description: Production
security: []
paths:
  /datasets/{dataset_id}/items/upload:
    post:
      tags:
        - datasets
      summary: Upload STT dataset item
      description: >-
        Upload one audio clip with its transcript and append it to an STT
        dataset
      operationId: upload_stt_item_datasets__dataset_id__items_upload_post
      parameters:
        - name: dataset_id
          in: path
          required: true
          schema:
            type: string
            description: The STT dataset to add the item to
            examples:
              - f47ac10b-58cc-4372-a567-0e02b2c3d479
            title: Dataset Id
          description: The STT dataset to add the item to
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_stt_item_datasets__dataset_id__items_upload_post
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatasetItemResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Body_upload_stt_item_datasets__dataset_id__items_upload_post:
      properties:
        audio:
          type: string
          format: binary
          title: Audio
          description: WAV file of the spoken audio, at most 25 MB and 10 minutes long
        text:
          type: string
          title: Text
          description: Ground-truth transcript of the audio
      type: object
      required:
        - audio
        - text
      title: Body_upload_stt_item_datasets__dataset_id__items_upload_post
    DatasetItemResponse:
      properties:
        uuid:
          type: string
          maxLength: 36
          minLength: 36
          title: Uuid
          description: Dataset item ID
          examples:
            - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
        audio_path:
          anyOf:
            - type: string
            - type: 'null'
          title: Audio Path
          description: Presigned download URL for the item's audio
        text:
          type: string
          title: Text
          description: Ground-truth transcript (STT) or synthesis text (TTS)
        order_index:
          type: integer
          title: Order Index
          description: Position of the item within the dataset. The first item is 0
        created_at:
          type: string
          title: Created At
          description: When the dataset item was created (ISO 8601 UTC)
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
          description: When the dataset item was last updated (ISO 8601 UTC)
      type: object
      required:
        - uuid
        - text
        - order_index
        - created_at
      title: DatasetItemResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````

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