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

# Download a file with time-limited token



## OpenAPI

````yaml /api-reference/openapi.json get /api/storage/{bucket}/{path}/download
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/storage/{bucket}/{path}/download:
    get:
      tags:
        - Storage
      summary: Download a file with time-limited token
      operationId: StorageController_downloadFile
      parameters:
        - name: bucket
          required: true
          in: path
          schema:
            type: string
        - name: path
          required: true
          in: path
          schema:
            type: string
        - name: token
          required: true
          in: query
          description: Time-limited download token
          schema:
            type: string
      responses:
        '200':
          description: File downloaded successfully
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          description: Invalid or expired token
        '404':
          description: File not found

````