# Export coverage data as CSV

Generates a CSV file containing coverage data for the analysis.
Coverage data shows sequencing depth across genomic regions, which is
important for assessing the reliability of variant calls.
**Options:**
- Filter by phenotypes: Only include regions relevant to patient phenotypes
- Coverage region: Specify genomic regions to include
- Virtual panels: Filter by specific gene panels
- Coverage type: Select coverage calculation method

**Response:**
Returns a pre-signed URL for downloading the coverage CSV file.

Endpoint: POST /v1/analysis/export/coverage_csv
Version: 96
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer JWT

## Request fields (application/json):

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

  - `filter_by_phenotypes` (boolean)
    Filter coverage regions by patient phenotypes
    Example: true

  - `coverage_region` (string)
    Specific genomic region to include (e.g., "chr17:41196312-41277500")
    Example: chr17:41196312-41277500

  - `virtual_panel_ids` (array)
    Virtual panel IDs to filter by
    Example: ["panel_123","panel_456"]

  - `coverage_type` (string)
    Type of coverage calculation
    Enum: "EXON", "GENE", "TRANSCRIPT"

## Response 200:

  - `200` (unknown)
    Coverage CSV generated successfully

## Response 200 fields (application/json):

  - `download_url` (string)
    Pre-signed URL for downloading the coverage CSV
    Example: https://s3.amazonaws.com/bucket/analysis_12345_coverage.csv?signature=...

## 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)
    Resource not found

## 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

