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

# Post apitransfers preview metadata

> Run metadata extraction on a not-yet-completed upload, without persisting.

Used by the staging UX: after the browser PUTs the file to MinIO but
before calling /complete/, the UI fetches a metadata preview so the user
can review/edit/discard before committing the asset.

Source-size cap (``METADATA_PREVIEW_MAX_BYTES``, default 100 MB) keeps
the preview path fast and avoids surprise multi-GB downloads from the
repo agent into the console pod.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/transfers/{id}/preview-metadata/
openapi: 3.0.3
info:
  title: Console API
  version: 1.0.0
  description: Central control plane API for the Dataerai platform.
servers:
  - url: https://{server}
    description: Your Dataerai deployment (the API is served under /api)
    variables:
      server:
        default: your-deployment.dataerai.com
        description: Host of your Dataerai deployment
security: []
paths:
  /api/transfers/{id}/preview-metadata/:
    post:
      tags:
        - api
      description: >-
        Run metadata extraction on a not-yet-completed upload, without
        persisting.


        Used by the staging UX: after the browser PUTs the file to MinIO but

        before calling /complete/, the UI fetches a metadata preview so the user

        can review/edit/discard before committing the asset.


        Source-size cap (``METADATA_PREVIEW_MAX_BYTES``, default 100 MB) keeps

        the preview path fast and avoids surprise multi-GB downloads from the

        repo agent into the console pod.
      operationId: api_transfers_preview_metadata_create
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransferMetadataPreviewResponse'
          description: ''
        '404':
          description: No response body
        '413':
          description: No response body
        '503':
          description: No response body
      security:
        - cookieAuthCsrfExempt: []
components:
  schemas:
    TransferMetadataPreviewResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/MetadataPreviewStatusEnum'
        metadata:
          nullable: true
        data_type:
          type: string
          nullable: true
        data_type_confidence:
          type: number
          format: double
          nullable: true
        error:
          type: string
          nullable: true
      required:
        - data_type
        - data_type_confidence
        - error
        - metadata
        - status
    MetadataPreviewStatusEnum:
      enum:
        - succeeded
        - skipped
        - failed
      type: string
      description: |-
        * `succeeded` - Succeeded
        * `skipped` - Skipped
        * `failed` - Failed

````