Linking

For convenience, the CIViC API provides a method for linking to entities on the front end website using only a single identifier. This allows external integrations to build links to CIViC without needing an entire hierarchy of ids. The API supports two link formats, documented below, that behave identically.

These routes will return a 404 response if the provided ID is not found. Otherwise, they will return a 302 redirect to the canonical frontend link for the entity in question.

Supported Entity and ID Types

CIViC supports the following entity and id types for generating shortened links:

Entity Type

Description

gene

CIViC Gene ID

entrez_id

Entrez Gene ID

entrez_name

Entrez Name (typically HGNC Symbol)

variant

CIViC Variant ID

allele_registry

Variant Allele Registry ID

evidence

CIViC Evidence ID

variant_group

CIViC Variant Group ID

assertion

CIViC Assertion ID

revision

CIViC Revision ID

For more natural seeming resource based endpoints, the plural versions of the primary CViC entity types are also supported (genes, variants, evidence_items, variant_groups, assertions, revisions) and behave identically to their singular counterparts.