Skip to main content

OpenAPI / Swagger documentation

Interactive and always up to date API documentation can be found here: https://api.genebe.net/cloud/gb-api-doc/swagger-ui/index.html .

Below is more human edited API documentation, that may be outdated, but may contain more human comments than OpenAPI.

Additional comments to the endpoints can be found on the other pages of this documentation.

Ask for multiple variants at once​

Plese do not ask for more than 1000 entries in one query. Body example: '[{"chr":"22", "pos":28695868, "ref":"AG", "alt":"A"}]'

MethodURL
POST/api-public/v1/variants

Parameters​

NameInDescriptionRequired
genomequeryRequired
useRefseqqueryUse transcripts from Refseq.Optional
useEnsemblqueryUse transcripts from Ensembl.Optional
omitAcmgqueryDon't add ACMG scores in the outputOptional
omitCsqqueryDon't add consequences in the output.Optional
omitBasicqueryDon't add basic annotations (GnomAD frequencies etc) in the output.Optional
omitAdvancedqueryDon't add advanced annotations (ClinVar frequencies etc) in the output.Optional
omitNormalizationqueryDon't normalize variants. Use only if you are sure they are normalized already.Optional
allGenesqueryAnnotate for all genes in this region.Optional
customAnnotationsqueryComma delimited list of custom annotations to be applied. Consult with documentation for recognized values.Optional
annotatorqueryWhich annotator to use. Please leave empty for now.Optional
Request Body​
FieldTypeDescriptionRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription
variantsarray
messagestring

Translate SPDI to genome coordinates, single variant​

For parsing multiple variants please use POST. It is many times faster. Currently supports only hg38.

MethodURL
GET/api-public/v1/spdi

Parameters​

NameInDescriptionRequired
spdiqueryRequired
genomequeryOptional
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription

Translate SPDI to genome coordinates, multiple variants. Currently supports only hg38.​

MethodURL
POST/api-public/v1/spdi

Parameters​

NameInDescriptionRequired
genomequeryOptional
Request Body​
FieldTypeDescriptionRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription

LiftOver single variant​

For lifting multiple variants please use POST. It is many times faster.

MethodURL
GET/api-public/v1/liftover

Parameters​

NameInDescriptionRequired
queryqueryRequired
fromquerySource human genome version, one of hg19, hg38, t2t.Required
destqueryDestination human genome version, one of hg19, hg38, t2t.Required
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription
fromstring
deststring
variantsarray
errorstring

LiftOver multiple variants​

LiftOver simple variants between hg19/hg38/2t2. This is a very simple service. Returns at most one position for one query.

MethodURL
POST/api-public/v1/liftover

Parameters​

NameInDescriptionRequired
fromquerySource human genome version, one of hg19, hg38, t2t.Required
destqueryDestination human genome version, one of hg19, hg38, t2t.Required
Request Body​
FieldTypeDescriptionRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription
fromstring
deststring
variantsarray
errorstring

Translate HGVS to genome coordinates, single variant​

For parsing multiple variants please use POST. It is many times faster. We recognize only c, n, g and m HGVS strings. Parse may not work for p. Some special cases of HGVS as well as less popular transcripts may not be recognized.

MethodURL
GET/api-public/v1/hgvs

Parameters​

NameInDescriptionRequired
hgvsqueryRequired
genomequeryOptional
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription

Translate HGVS to genome coordinates, multiple variants​

We recognize only c, n, g and m HGVS strings. Parse may not work for p. Some special cases of HGVS as well as less popular transcripts may not be recognized.

MethodURL
POST/api-public/v1/hgvs

Parameters​

NameInDescriptionRequired
genomequeryOptional
Request Body​
FieldTypeDescriptionRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription

MethodURL
POST/api-public/v1/files

Parameters​

NameInDescriptionRequired
analysisIdqueryTODORequired
fileTypequeryOptional
sequencingIdqueryOptional
projectNamequeryOptional
analysisNamequeryOptional
deduplicatequeryOptional
genomequeryOptional
Request Body​
FieldTypeDescriptionRequired
filestringRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription
idstring
namestring
fileTypestring
analysisIdarray

Translate SPDI, HGVS, rs or other to genome coordinates, multiple variants. Currently supports only hg38.​

For parsing multiple variants please use POST. It is many times faster. Currently supports only hg38.

MethodURL
GET/api-public/v1/convert

Parameters​

NameInDescriptionRequired
idqueryRequired
genomequeryOptional
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription

Translate SPDI, HGVS, rs or other to genome coordinates, multiple variants. Currently supports only hg38.​

MethodURL
POST/api-public/v1/convert

Parameters​

NameInDescriptionRequired
genomequeryOptional
Request Body​
FieldTypeDescriptionRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription

Describe single CNV variant​

For annotating multiple CNV variants please use POST. It is many times faster.

MethodURL
GET/api-public/v1/cnvs

Parameters​

NameInDescriptionRequired
chrqueryRequired
startqueryRequired
endqueryRequired
svTypequeryRequired
omitAcmgqueryDon't add ACMG scores in the outputOptional
genomequeryRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription
cnvsarray
messagestring

Ask for multiple CNV variants at once​

Do not ask for more than 1000 entries in one query. Body example: '[{"chr":"7", "start":72846244, "end":74187855}]'

MethodURL
POST/api-public/v1/cnvs

Parameters​

NameInDescriptionRequired
omitAcmgqueryDon't add ACMG scores in the outputOptional
genomequeryRequired
Request Body​
FieldTypeDescriptionRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription
cnvsarray
messagestring

Account information​

Short information and statistics about the asker: Who am I? Includes information about the number of requests done.

MethodURL
GET/api-public/v1/whoami

Parameters​

NameInDescriptionRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription
identifierstring
ipstring
accountIdinteger
accountPlanstring
reqGetVarApiinteger
reqPostVarApiinteger
varPostVarApiinteger
organizationsarray

Describe single variant​

For annotating multiple variants please use POST. It is many times faster.

MethodURL
GET/api-public/v1/variant

Parameters​

NameInDescriptionRequired
chrqueryRequired
posqueryRequired
refqueryRequired
altqueryRequired
transcriptqueryForce usage of this transcript in ACMG score assignment.Optional
gene_symbolqueryForce usage of this gene in ACMG score assignment.Optional
annotatorqueryWhich annotator to use. Please leave empty for now.Optional
useRefseqqueryUse transcripts from Refseq.Optional
useEnsemblqueryUse transcripts from Ensembl.Optional
omitAcmgqueryDon't add ACMG scores in the outputOptional
omitCsqqueryDon't add consequences in the output.Optional
omitBasicqueryDon't add basic annotations (GnomAD frequencies etc) in the output.Optional
omitAdvancedqueryDon't add advanced annotations (ClinVar frequencies etc) in the output.Optional
omitNormalizationqueryDon't normalize variants. Use only if you are sure they are normalized already.Optional
allGenesqueryAnnotate for all genes in this region.Optional
customAnnotationsqueryComma delimited list of custom annotations to be applied. Consult with documentation for recognized values.Optional
genomequeryRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription
variantsarray
messagestring

​

MethodURL
GET/api-public/v1/genes

Parameters​

NameInDescriptionRequired
hgncIdqueryOptional
symbolqueryOptional
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription
idstring
symbolstring
ensemblIdstring
hgncIdinteger
namestring
refseqIdstring
ncbiIdinteger
omimIdstring
uniprotIdstring
vegaIdstring
geneGroupstring
previousSymbolsarray
chrstring
startinteger
endinteger
inheritancestring
clinvarGeneSummaryobject
maneSelectEnsemblIdstring
maneSelectRefSeqIdstring
geneCcDataarray
geneDbnsfpDataobject
geneGnomadDataobject
geneCgdDataobject

​

MethodURL
GET/api-public/v1/files/sample/{id}/input/{fileid}/{name}

Parameters​

NameInDescriptionRequired
idpathRequired
fileidpathRequired
namepathRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription

​

MethodURL
GET/api-public/v1/files/sample/{id}/file/{name}

Parameters​

NameInDescriptionRequired
idpathRequired
namepathRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription

​

MethodURL
GET/api-public/v1/files/sample/{id}/doc/{name}

Parameters​

NameInDescriptionRequired
idpathRequired
namepathRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription

​

MethodURL
GET/api-public/file-ping

Parameters​

NameInDescriptionRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription

​

MethodURL
DELETE/api-public/v1/files/{fileId}

Parameters​

NameInDescriptionRequired
fileIdpathRequired
Response (404)​
FieldTypeDescription
Response (403)​
FieldTypeDescription
Response (200)​
FieldTypeDescription