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

# Download an owned file

> Redirects to a short-lived presigned download URL. Missing, non-ready, and files owned by another tenant all return the same 404 response.



## OpenAPI

````yaml /api-reference/mobilerun-va-chat.yaml get /agents/files/{fileId}/download
openapi: 3.1.0
info:
  title: Mobilerun VA Chat
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /agents/files/{fileId}/download:
    get:
      tags:
        - Files
      summary: Download an owned file
      description: >-
        Redirects to a short-lived presigned download URL. Missing, non-ready,
        and files owned by another tenant all return the same 404 response.
      operationId: filesDownload
      parameters:
        - in: path
          name: fileId
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '302':
          description: Redirect to a short-lived presigned download URL
          headers:
            Content-Disposition:
              schema:
                type: string
            Location:
              schema:
                format: uri
                type: string
        '401':
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                required:
                  - message
                type: object
          description: >-
            Not found (also used when caller does not own the file, to avoid
            leaking fileId existence)
        '500':
          description: Internal Server Error
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Mobilerun from '@mobilerun/sdk';

            const client = new Mobilerun({
              apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
            });

            await client.files.download('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
        - lang: Python
          source: |-
            import os
            from mobilerun_sdk import Mobilerun

            client = Mobilerun(
                api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"),  # This is the default and can be omitted
            )
            client.files.download(
                "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            )
components:
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````