5 API reference
AETHRA-MAN-001-EN, version 1.1, 18 November 2026
The machine-readable specification is the OpenAPI document served by the backend at /openapi.json, with an interactive view at /docs. The OpenAPI document applies where it differs from this chapter.
5.1 General rules
- Envelope. Every successful response is a JSON object with two members:
data(the payload) andprovenance(a non-empty list). Each provenance entry haskind(2.5),source, and optionallyurl,license,citation,retrieved(date of download),fields(the payload fields the entry covers; absent means all) andnote. - Methods. The API accepts
GETandPOSTonly. Request bodies are JSON. - Cross-origin access. Allowed origins are set by the environment variable
AETHRA_CORS_ORIGINS(comma-separated; defaulthttp://localhost:3000). - Errors. Errors follow FastAPI: a status code and a JSON body with
detail.
| Status | Meaning in this API |
|---|---|
| 404 | Unknown NORAD ID, object without an orbit, no data in the requested range, unknown experiment |
| 422 | Invalid input: out-of-range parameter, to before from, apogee below perigee, an orbit already below 100 km at the epoch, unknown device ids |
| 503 | Upstream source unavailable (CelesTrak, Space-Track), Space-Track credentials missing or rate limit reached, environment data files missing, validation results not yet computed |
- Rate limits on upstream sources. CelesTrak is called at most once per object per 2 hours through a shared cache. Space-Track calls share one limiter below 30 per minute and 300 per hour. Raw Space-Track element sets never appear in responses; only derived values do.
5.2 Route summary
| Method and path | Tag | Purpose |
|---|---|---|
GET / |
meta | Service status, version and presence of the raw data sets |
GET / |
space weather | Daily Kp, ap/Ap and F10.7 for a date range |
GET / |
satellites | Profile of a cataloged object |
GET / |
satellites | Orbit history derived from Space-Track GP_HISTORY |
GET / |
environment | Eclipse, power, drag and lifetime, magnetic field and radiation for a cataloged object |
GET / |
environment | The same for explicit orbit elements |
GET / |
effects | SEU/SEFI per day, SEL per year, TID per mission |
POST / |
effects | The same with uploaded radiation test data |
GET / |
effects | Device catalog with the source of every number |
GET / |
effects | Validation: modeled and observed TDRS-1 RAM upsets, 1983 to 1993 |
GET / |
validation | PASS/FAIL table of the validation experiments |
GET / |
validation | One experiment with its evidence |
GET / |
search | Scenario search benchmark on model substrates |
POST / |
demo | Stress test of one satellite in one storm |
5.3 POST /demo/run
Stress test one satellite in one storm: separate and coupled modes, the failure chain, a fix (3.8).
5.3.1 Request body
| Field | Type | Constraint | Default | Meaning |
|---|---|---|---|---|
norad_id |
integer | 1 to 999 999 999 | required | NORAD catalog number |
storm |
string | starlink-2022-02, gannon-2024-05, october-2024 |
gannon-2024-05 |
Storm timeline (3.2.2) |
seed |
integer or null | ≥ 0 | null | Search seed. Null selects the comparison campaign seed for a satellite from that campaign, otherwise 0. |
budget |
integer | 4 to 64, multiple of 4 | 16 | Runs per mode; the separate budget is split over four factors |
fix_budget |
integer | 1 to 80 | 24 | Runs available to the fix suggestion |
Example:
{"norad_id": 42841, "storm": "gannon-2024-05"}
5.3.2 Response data (StressTestReport)
| Field | Content |
|---|---|
norad_id, name, storm, storm_name, elements_source |
What was run and where the elements came from |
comparison |
budget, seed, acceleration, window_s; coupled and separate arm summaries (arm, runs, failures, chains); coupled_only and separate_only chain classes; attributions (signature, scenario, reproduced_by, minimal_sets, minimal_size) |
chain |
Null, or the selected chain: signature, requirement, coupled_only, factors (smallest factor set, empty if unknown), minimal_sets, scenario (index, start_offset_s, seed), replay_matches |
coupled |
One run (ReportRun) of the chain's scenario in coupled mode |
separate |
Three runs of the same scenario, one per factor drag, field, particles |
fix |
Null, or found, requirement, parameter, from, to, units, changes (param, label, unit, old, new), removes, no_regression, regression_scenarios, regression_still_failing, runs_used, explanation |
anomalies |
For dellingr and minxss-2: id, name, title, requirements, defect_fails, fixed_passes |
run_time |
compare_s, replay_s, fix_s, total_s (wall clock on the API host) |
A ReportRun holds schema_version, inputs (NORAD ID, storm, mode, factor, which timeline each factor follows, seed, start UTC, duration, steps, element epoch, full configuration, fault summary), passed, requirements (per requirement: id, name, units, robustness, normalised, vacuous, passed, first_violation_s), first_violation, hooks (event name to times), reboot_times_s, result_hash (SHA-256 over inputs, trace, hooks and robustness) and run_time.
provenance has one entry per part (comparison, chain, coupled, separate, fix, anomalies, run_time, name) plus the sources of the runs under coupled.* and separate.*.
5.3.3 Behavior
- The request runs sequentially on one core. Measured wall time: 12.1 to 28.5 s for the three showcase satellites under v2 scoring; pre-registered limit 120 s.
- For a NORAD ID with a committed CelesTrak fixture, the result is reproducible. For other IDs the backend downloads the element set through the shared cache.
- Within one process, the same request gives an identical report. On another CPU or math library, the search can rank near-equal scenarios differently and select another chain; the snapshot drift test therefore replays each stored run from its recorded inputs.
5.4 GET /space-weather
| Parameter | Type | Default | Meaning |
|---|---|---|---|
from, to |
date (UTC, inclusive) | required | Range; at most 3660 days |
source |
gfz or celestrak |
gfz |
GFZ Potsdam file or CelesTrak SW-All |
data.days[] holds date, kp (eight three-hourly values), kp_max, ap (eight values, nT), ap_daily, f107_obs, f107_adj (sfu) and final. With source=celestrak, rows with final=false are CelesTrak predictions.
5.5 Satellite routes
GET /satellites/{norad_id}
Query: size_class (optional: 1U, 3U, 6U, 12U, 16U, smallsat, large) overrides the class used for assumed mass and area. data holds identity (name, COSPAR ID, object type, owner, launch date and site), status (in orbit or decayed, decay date), constellation, radar cross section, latest orbit and physical properties. Mass and size are class defaults (assumed) at this version; ESA DISCOSweb (live) is used once an access token exists.
GET /satellites/{norad_id}/history
Query: from, to (dates, optional). Returns count and points (epoch, inclination, eccentricity, semi-major axis and derived values) derived from every Space-Track GP_HISTORY element set of the object. Requires Space-Track credentials on the backend; without them the route answers 503.
5.6 Environment routes
GET /satellites/{norad_id}/environment
| Parameter | Constraint | Default | Meaning |
|---|---|---|---|
scenario |
quiet, starlink-2022-02, gannon-2024-05, halloween-2003 |
quiet |
Space weather for the drag window |
days |
1 to 30 | 7 | Drag window length, days |
orbits |
1 to 45 | one day of track | Orbits for the power balance |
panel_area_m2 |
> 0, ≤ 500 | class default | Sun-facing panel area, m² |
panel_efficiency |
> 0, ≤ 0.5 | class default | Cell efficiency |
battery_wh |
> 0, ≤ 10⁶ | class default | Battery capacity, Wh |
load_w |
≥ 0, ≤ 10⁶ | class default | Load, W |
size_class |
as in 5.5 | from the profile | Class for assumed values |
data holds orbit, spacecraft (mass, area, drag coefficient, ballistic coefficient), geometry, power, drag, magnetic and radiation. Values not supplied by the caller are class defaults and labeled assumed.
GET /environment
The same computation for an orbit that is not cataloged. Required: perigee_km (120 to 50 000), apogee_km (120 to 400 000, not below perigee), inclination_deg (0 to 180). Optional: raan_deg, arg_perigee_deg (default 0), epoch (UTC, default now), size_class (default 3U), and the parameters of the previous route.
5.7 Effects routes
GET /satellites/{norad_id}/effects
| Parameter | Constraint | Default | Meaning |
|---|---|---|---|
devices |
comma-separated ids from GET / |
every part with data | Parts to evaluate |
shielding_mm |
> 0, ≤ 20 | catalog table value | Equivalent aluminum shielding, mm |
days |
1 to 5475 | 365 | Mission or window length for counts, SEL and TID |
solar_weight |
0 to 1 | 0.5 | Solar cycle phase for galactic cosmic rays: 0 minimum, 1 maximum |
data holds orbit, shielding_mm, days, environment, devices (rates per part), tid, series and a worked_example.
POST /satellites/{norad_id}/effects
The same query parameters, with a JSON body {"devices": [...]} holding 1 to 20 parts in the schema of the device catalog. Uploaded ids shall not clash with catalog ids (422). Uploaded parts are marked uploaded in the response.
GET /effects/devices , GET /effects/validation/tdrs-1
The catalog of parts with radiation test data (research; values that AETHRA chose where the source gives none are listed in assumed_params), and the stored TDRS-1 validation result.
5.8 Validation and search routes
GET / returns the PASS/FAIL table of the published experiments: experiments, passed, total. GET / returns one experiment with its metrics, thresholds, verdicts and sources. A request never runs an experiment; results are read from the stored result files and the route answers 503 when a result file is missing.
GET / returns the number of runs needed to find every known failure mode on model substrates, for covering arrays with Neyman strata and for plain Monte Carlo. The result describes models and makes no claim about any real campaign (its provenance note says so).
5.9 Snapshots
The backend saves the responses that the site uses without the API as snapshots. A test fails when a snapshot drifts from the API.