# Franklin API

The Franklin API allows you to programmatically access and manage genomic analyses
in your Franklin account.

## Getting Started

To use this API, you'll need:
1. A Franklin account with API access enabled
2. Your organization's API endpoint URL

Contact your Franklin representative to enable API access for your account.

## Authentication

### Step 1: Obtain an API Token

Before making any API requests, you must first authenticate using the `/v1/auth/login` endpoint
to obtain a Bearer token. This token is required for all subsequent API calls.

```bash
curl -X GET "https://api.genoox.com/v1/auth/login?email=your@email.com" \
  -H "Authorization: your_password"
```

The response will include a token and its expiration time:
```json
{
  "token": "eyJhbGciOiJIUzI1NiIs...",
  "duration": 86400,
  "expires_at": 1704067200
}
```

### Step 2: Use the Token for API Requests

Include the token in the Authorization header for all subsequent requests:

```
Authorization: Bearer YOUR_API_TOKEN
```

**Note:** Tokens expire after the duration specified in the login response.
You should re-authenticate before the token expires to maintain uninterrupted access.


Version: 97
License: Proprietary

## Servers

Production server
```
https://api.genoox.com
```

## Security

### bearerAuth

Enter your API token. You can obtain this from your Franklin account settings
or by contacting your Franklin representative.


Type: http
Scheme: bearer
Bearer Format: JWT

## Download OpenAPI description

 - [Franklin API](https://franklin-api-docs.genoox.com/_bundle/docs/api/@v97/openapi.yaml)

## Authentication

 - [GET /v1/auth/login](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/authentication/login.md): Authenticates a user and returns a Bearer token for use with all other API endpoints. **This endpoint must be called first before using any other API endpoints.** The password should be passed in the
 - [POST /v1/auth/login](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/authentication/loginpost.md): Authenticates a user and returns a Bearer token for use with all other API endpoints. This is an alternative to the GET method that accepts credentials in the request body instead of query parameters
## Analysis

 - [GET /v1/analysis](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis/getanalysis.md): Retrieves detailed information about a specific analysis (case) by its ID. This endpoint returns comprehensive information including: - Basic analysis metadata (name, type, status) - Sample informatio
 - [POST /v1/analysis/case_details/update](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis/updatecasedetails.md): Updates details of an existing analysis case including: - Patient details (name, DOB, sex, phenotypes, etc.) - Virtual panels - Labels - Custom fields - Case status (by name or ID) **Note:** If `assi
## Analysis List

 - [GET /v1/analyses/list](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-list/listanalyses.md): Lists analyses in your organization with optional filters. Returns analyses grouped by assay ID.
 - [GET /v1/analyses/list_detailed](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-list/listanalysesdetailed.md): Lists analyses with more detailed information including name and assay ID. Supports filtering by various criteria.
## Samples

 - [POST /v1/samples/list](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/samples/listsamples.md): Retrieves samples associated with the specified subject (patient) names. Returns sample metadata including files associated with each sample.
 - [POST /v1/sample/file_metadata](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/samples/getsamplefilemetadata.md): Returns metadata (file name, size, and last modified timestamp) for all files associated with a sample, without restoring files from cold storage. You must provide at least one of `analysisId`, `analy
## Analysis Creation

 - [POST /v1/analyses/create](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-creation/createanalyses.md): Creates new analyses from uploaded sample files. This endpoint supports creating: - Single sample analyses - Family analyses (with pedigree relationships) Files must be uploaded to the specified S3
 - [POST /v1/analyses/create_from_samples](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-creation/createanalysisfromsamples.md): Creates a new analysis (case) using samples that already exist in the system. This is useful when you want to: - Create a new case from previously uploaded samples - Create family analyses from exist
## Shell Case

 - [POST /v1/shell_case/create](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/shell-case/createshellcase.md): Creates a shell case - an analysis case without uploaded files. Shell cases can be used to: - Pre-register cases before files are available - Set up case metadata in advance - Later link files using t
 - [POST /v1/shell_case/update](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/shell-case/updateshellcase.md): Updates an existing shell case with new metadata. Can update: - Patient details - Virtual panels - Labels - Assay - Batch - Custom fields **Note:** If `assigned_to` is provided with an email that doe
 - [POST /v1/shell_case/link](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/shell-case/linkshellcase.md): Links sample files from S3 to an existing shell case. Once linked, the system will automatically: - Transfer and process the files - Trigger appropriate annotation pipelines - Update the case status
 - [POST /v2/shell_case/create](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/shell-case/createshellcasev2.md): Creates a shell case - an analysis case without uploaded files. **Version 2 Improvements:** This endpoint provides enhanced error handling with clear, actionable error messages: - **Panel validation**
 - [POST /v2/shell_case/update](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/shell-case/updateshellcasev2.md): Updates an existing shell case with new metadata. **Version 2 Improvements:** This endpoint provides enhanced error handling with clear, actionable error messages: - **Panel validation**: If specified
 - [POST /v2/shell_case/link](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/shell-case/linkshellcasev2.md): Links sample files from S3 to an existing shell case. **Version 2 Improvements:** This endpoint provides enhanced error handling with clear, actionable error messages: - **Sample validation**: If the
## Analysis Status

 - [POST /v1/analyses/status](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-status/getanalysisstatus.md): Retrieves the processing status for multiple analyses by their IDs. Returns status information including: - Analysis status (pending, in_progress, resolved, etc.) - Processing status (sample status, a
 - [POST /v1/analyses/status_by_name](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-status/getanalysisstatusbyname.md): Retrieves the processing status for an analysis by its name.
## File Locations

 - [GET /v1/analysis/bam_location](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/file-locations/getbamlocation.md): Retrieves pre-signed download URLs for BAM and BAI files associated with an analysis. The URLs are temporary and will expire after a set period.
 - [GET /v2/analysis/bam_location](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/file-locations/getbamlocationv2.md): Retrieves pre-signed download URLs for BAM and BAI files associated with an analysis. Version 2 includes: - DNA BAM and BAI files - RNA BAM and BAI files (for tumor/somatic samples) - Checksum files
 - [GET /v1/analysis/vcf_location](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/file-locations/getvcflocation.md): Retrieves pre-signed download URLs for VCF files associated with an analysis. Returns URLs for: - SNP VCFs (single nucleotide variants) - SV VCFs (structural variants) - Repeat VCFs (repeat expansion
## QC Metrics

 - [GET /v1/analysis/qc_metrics](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/qc-metrics/getqcmetrics.md): Retrieves quality control metrics for an analysis. Returns QC data for all samples in the analysis including: - Sample metadata (name, assay, reference genome) - Text metrics (categorical QC values)
## Variant Search

 - [GET /v1/variant/search](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/variant-search/searchvariant.md): Searches for a variant using various input formats and returns nomenclature information. **Supported Search Formats:** - **HGVS notation**: `NM_000546.5:c.215C>G`, `BRCA1:c.68_69del` - **Chromosomal l
 - [GET /v2/search/snp/](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/variant-search/searchsnpv2.md): Searches for an SNP variant and returns comprehensive annotation data. **Version 2 Improvements:** This endpoint provides detailed variant information including: - Genomic annotations (transcripts, ge
 - [POST /v1/variant/org_assessments](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/variant-search/getvariantsorgassessments.md): Retrieves your organization's interpretations and classifications for a list of variants. This endpoint allows you to fetch the assessments that have been made by your organization for specific varian
## Analysis Query

 - [GET /v1_2/analysis/workbench](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-query/getanalysisworkbench.md): Retrieves variants from an analysis workbench (variants selected for review). The workbench contains variants that have been flagged for clinical review, either automatically based on filtering criter
 - [GET /v1_2/somatic_analysis/workbench](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-query/getsomaticanalysisworkbench.md): Retrieves variants from a somatic (oncology) analysis workbench. Similar to the germline workbench endpoint, but optimized for somatic variant analysis with cancer-specific annotations and classificat
 - [GET /v1_3/analysis/workbench](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-query/getanalysisworkbenchwithbiomarkers.md): Retrieves variants from an analysis workbench along with germline biomarker data. Extends the `/v1_2/analysis/workbench` endpoint by including germline biomarker results (UPD, SMN, GBA, HBA) in the re
 - [GET /v1_3/somatic_analysis/workbench](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-query/getsomaticanalysisworkbenchwithstats.md): Retrieves variants from a somatic (oncology) analysis workbench along with somatic analysis statistics (biomarkers). Extends the `/v1_2/somatic_analysis/workbench` endpoint by including somatic stats
 - [GET /v2/analysis/variants/snp](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-query/getanalysissnpvariants.md): Retrieves SNP (single nucleotide polymorphism) variants from an analysis with full annotations. This endpoint returns paginated results of all SNP variants in an analysis, including detailed annotatio
 - [POST /v2/analysis/specific_variant/snp](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-query/getanalysisspecificsnpvariant.md): Retrieves detailed information for a specific SNP variant within an analysis. Use this endpoint when you know the exact variant coordinates and want to fetch its complete data from a specific analysis
 - [GET /v2/analysis/variants/sv](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-query/getanalysissvvariants.md): Retrieves structural variants (SVs) from an analysis with annotations. Structural variants include: - Deletions (DEL) - Duplications (DUP) - Inversions (INV) - Insertions (INS) - Copy number variants
 - [GET /v1/analysis/fetch/orthogonal_confirmation_variants](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-query/fetchorthogonalconfirmationvariants.md): Retrieves variants that require orthogonal confirmation (e.g., Sanger sequencing). Returns variants that have been flagged for confirmation, typically those that are clinically significant but may ben
## Analysis Export

 - [GET /v1/analysis/export/variants/snp](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-export/exportanalysissnpvariants.md): Generates downloadable export files for SNP variants in an analysis. Returns pre-signed URLs for downloading variant data files for each sample in the analysis. The export includes comprehensive varia
 - [GET /v1/analysis/export/history](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-export/exportanalysishistory.md): Generates a downloadable export of the analysis history/audit log. The history includes all actions taken on the analysis, such as: - Variant classifications and changes - Workbench additions/removals
 - [POST /v1/analysis/export/coverage_csv](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-export/exportcoveragecsv.md): 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. **Option
 - [GET /v1/analysis/export/orthogonal_confirmation_variants](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-export/exportorthogonalconfirmationvariants.md): Generates a downloadable export of variants requiring orthogonal confirmation. Similar to the fetch endpoint, but returns a downloadable file format suitable for import into laboratory information sys
 - [GET /v1/analysis/export/quick_filters_variants](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/analysis-export/exportquickfiltervariants.md): Exports variants that match the quick filter criteria for an analysis. Quick filters are predefined filter sets that identify variants of interest, such as pathogenic variants, variants in disease gen
## Reports

 - [GET /v3_4/analysis/report](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/reports/getanalysisreport.md): Retrieves the report data for an analysis in JSON format. This endpoint returns the structured report data that can be used to render or process the analysis report programmatically. The report includ
 - [GET /v1/report](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/reports/getreportbody.md): Retrieves the report body data suitable for external report rendering systems. This endpoint returns report data formatted for use with external document generation tools (e.g., Carbone). The response
 - [GET /v1/analysis/report_file](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/reports/getanalysisreportfile.md): 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 respo
 - [GET /v1/analysis/signed_report_file](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/reports/getanalysissignedreportfile.md): Retrieves a pre-signed download URL for a finalized (signed) report. This endpoint is used to download reports that have been officially signed and finalized. The signed report represents the official
 - [POST /v1/analysis/report/publish](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/reports/publishreport.md): Publishes (signs) an analysis report, making it the official final report. This operation: 1. Marks the report as finalized/signed 2. Generates PDF and DOC versions of the report 3. Stores the final r
 - [POST /v1/analysis/workbench/generate_report](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/reports/generatereportfromworkbench.md): Generates and publishes reports for one or more analyses using the variants currently in their workbenches. This is a convenience endpoint that performs the following operations for each analysis: 1.
 - [GET /v1/reports/list](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/reports/listreports.md): Lists reports with optional filtering by analysis, date range, and status. Lists the latest report per analysis under the filtered criteria. **Filtering Options:** - By analysis ID - By signed date ra
## Case Orders

 - [POST /v1/case_order/rename](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/case-orders/renamecaseorder.md): Renames a case order by ID. - When `recursive=false` (default), `name` is required and replaces the case order's name only. - When `recursive=true`, exactly one of `prefix` or `suffix` must be provide
 - [POST /v1/case_order/copy_as_skeleton](https://franklin-api-docs.genoox.com/docs/api/v97/openapi/case-orders/copycaseorderasskeleton.md): Creates a new case order containing skeleton clones of every analysis in the source order. Each clone reuses the source analysis's structure (single or family, patient details, labels, assay) but is c
