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

# Get asset download URL

> Get a temporary download URL for an asset file.



## OpenAPI

````yaml /api-reference/openapi.json get /assets/{asset_id}/download
openapi: 3.1.0
info:
  title: Aspect API
  description: Manage and search media in Aspect.
  version: 1.0.0
servers:
  - url: https://api.aspect.inc
security:
  - ApiKeyAuth: []
tags:
  - name: Users
  - name: API Keys
  - name: Workspaces
  - name: Projects
  - name: Directories
  - name: Assets
  - name: Attachments
  - name: Filesystem Items
  - name: Jobs
  - name: Collections
  - name: Comments
  - name: Search
  - name: Transcription
  - name: Metadata
  - name: Shares
  - name: Share Templates
  - name: Watermarks
paths:
  /assets/{asset_id}/download:
    get:
      tags:
        - Assets
      summary: Get asset download URL
      description: Get a temporary download URL for an asset file.
      operationId: get_asset_download_data
      parameters:
        - name: asset_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Asset ID
            description: The ID of the asset to download
          description: The ID of the asset to download
        - name: name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Name
            description: The name of the asset to download
          description: The name of the asset to download
        - name: variant
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/DownloadVariant'
            title: Variant
            description: File to download. ORIGINAL downloads the asset's original file.
            default: original
          description: File to download. ORIGINAL downloads the asset's original file.
        - name: prefer_custom_thumbnail
          in: query
          required: false
          schema:
            type: boolean
            title: Prefer Custom Thumbnail
            description: >-
              For the PREVIEW variant, resolve the user-set custom thumbnail
              when present, falling back to the generated preview.
            default: false
          description: >-
            For the PREVIEW variant, resolve the user-set custom thumbnail when
            present, falling back to the generated preview.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetDownloadGetResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DownloadVariant:
      type: string
      enum:
        - original
        - stream_proxy
        - preview
      title: DownloadVariant
      description: >-
        A file a user can download: the uploaded original, the web-playable
        stream proxy, or the preview image.
    AssetDownloadGetResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Resource identifier
        url:
          type: string
          title: Url
          description: Temporary URL for the upload or download
        url_expires_at:
          type: string
          format: date-time
          title: Url Expires At
          description: UTC datetime when the URL expires
      type: object
      required:
        - id
        - url
        - url_expires_at
      title: AssetDownloadGetResponse
      description: API response schema for direct asset file download URLs.
    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: Authorization
      description: Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

````

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