# Export report as file

Exports the analysis report as a downloadable file in the specified format.
**Supported Formats:**
- `pdf` - PDF document
- `doc` / `docx` - Microsoft Word document
- `html` - HTML document

The response contains a URL to the generated report file.
**Note:** Report generation may take a few seconds depending on the
report complexity and format.

Endpoint: GET /v1/analysis/report_file
Version: 96
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer JWT

## Query parameters:

  - `analysis_id` (string, required)
    The analysis (case) ID

  - `format` (string, required)
    The export file format

  - `assay` (string)
    Optional assay ID to use for report template selection

## Response 200:

  - `200` (unknown)
    Report file generated successfully

## Response 400:

  - `400` (unknown)
    Bad request - invalid parameters

## Response 400 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 401:

  - `401` (unknown)
    Authentication failed - invalid or missing token

## Response 401 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 404:

  - `404` (unknown)
    Report not found for the specified analysis

## Response 404 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 429:

  - `429` (unknown)
    Rate limit exceeded

## Response 429 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 429 headers (application/json):

  - `Retry-After` (integer)
    Number of seconds to wait before retrying

