AstroDASH is an API for supernovae spectra classification using machine learning models.
- Fast and reliable classification (DASH CNN, Transformer, user models)
- Single and batch processing with multiple file formats or SN names
- Strong contracts with versioned REST endpoints and thorough docs
Explore the docs to get started, or jump to the Interactive API Explorer. The v1 API lives under the /astrodash/api/v1 prefix.
AstroDash serves astronomers, astrophysicists, machine learning researchers, and tool builders who need robust, reproducible classification of supernova spectra and related analysis. The API is optimized for interactive web apps and automated pipelines alike.
- Base URL:
https://astrodash.scimma.org(production) orhttps://astrodash-dev.scimma.org(development) - API prefix:
/astrodash/api/v1 - Versioning policy: breaking changes are introduced only in new major versions (e.g.,
/api/v2). Backward-compatible changes can ship in minor versions.
- Health check:
GET /health - Classify one spectrum:
POST /astrodash/api/v1/processwithfile(orparams.oscRef) - Explore and test endpoints: Swagger UI at
/docs, OpenAPI at/openapi.json
-
Spectrum and Classification
POST /astrodash/api/v1/process: classify a single spectrum (file or OSC reference)
-
Batch
POST /astrodash/api/v1/batch-process: classify a ZIP folder or multiple files
-
Templates
GET /astrodash/api/v1/analysis-options: list valid SN types and age bins for DASHGET /astrodash/api/v1/template-spectrum: return a DASH template spectrum (x,y)
-
Line Lists
GET /astrodash/api/v1/line-list[...]: get a list of single element or compound wavelength markers
-
User Models
POST /astrodash/api/v1/upload-model: upload TorchScript model with metadataGET/PUT/DELETE /astrodash/api/v1/models/...: manage models
-
Redshift
POST /astrodash/api/v1/estimate-redshift: estimate redshift (using DASH templates)