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

# Inspect media metadata



## OpenAPI

````yaml /openapi.json post /api/media/inspect
openapi: 3.1.0
info:
  title: Convertly API
  version: 1.0.0
  description: >-
    Convertly provides production API endpoints for media conversion,
    compression, Image CDN delivery, Forma AI, HLS/DASH video streaming, media
    tools, async jobs, workflows, webhooks, and Convertly Storage.
  license:
    name: Proprietary
    url: https://convertly.sh/terms
servers:
  - url: https://convertly.sh
security:
  - bearerAuth: []
  - apiKeyAuth: []
paths:
  /api/media/inspect:
    post:
      tags:
        - Media Tools
      summary: Inspect media metadata
      operationId: inspectMedia
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SingleFileRequest'
      responses:
        '200':
          description: Media metadata or queued media tool job
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/InspectMediaResponse'
                  - $ref: '#/components/schemas/AsyncMediaToolJobResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '402':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
components:
  schemas:
    SingleFileRequest:
      allOf:
        - type: object
          properties:
            file:
              type: string
              format: binary
              description: Multipart upload input.
        - $ref: '#/components/schemas/RemoteSourceFields'
      description: Provide either file or sourceUrl.
    InspectMediaResponse:
      type: object
      properties:
        media:
          type: object
          additionalProperties: true
          properties:
            filename:
              type: string
            mimeType:
              type: string
            sizeBytes:
              type: integer
            kind:
              type: string
            format:
              type:
                - string
                - 'null'
            width:
              type:
                - integer
                - 'null'
            height:
              type:
                - integer
                - 'null'
            duration:
              type:
                - number
                - 'null'
            bitrateKbps:
              type:
                - number
                - 'null'
            streams:
              type: array
              items:
                type: object
                additionalProperties: true
      required:
        - media
    AsyncMediaToolJobResponse:
      type: object
      properties:
        jobId:
          type: string
          format: uuid
        status:
          const: pending
        tool:
          type: string
          enum:
            - thumbnail
            - pdf-preview
            - image-to-pdf
            - strip-metadata
            - poster-frame
            - extract-audio
            - watermark
            - inspect
            - trim
            - gif
            - storyboard
            - transform
      required:
        - jobId
        - status
        - tool
    RemoteSourceFields:
      type: object
      properties:
        sourceUrl:
          type: string
          format: uri
          description: >-
            Remote HTTP(S) file input. Use instead of file for single-file
            tools.
        async:
          type: string
          enum:
            - 'true'
            - 'false'
          default: 'false'
          description: Set true to queue the media tool as a background job.
        background:
          type: string
          enum:
            - 'true'
            - 'false'
          description: Alias for async=true.
    Error:
      type: object
      properties:
        error:
          type: string
        upgradeUrl:
          type: string
      required:
        - error
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Dashboard-generated Convertly API key. Keys currently begin with
        `cvly_`.
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Alternative API key header for server-side clients.

````