API documentation
Base URL: https://saas.quantumaffinitygravity.com. Authenticate with your key in the x-api-key header (or as a Bearer token). Rate limit: 60 requests per minute per key. Every response includes provenance and validation status; invalid input returns an explicit JSON error naming the field, the expected shape, and what was received.
Endpoints
| Method | Path | Purpose |
|---|---|---|
| GET | /api/health | Service + upstream data-fleet health |
| GET | /api/v1/kinetics/galaxies | All indexed SPARC galaxies with headline fit statistics |
| POST | /api/v1/kinetics/fit | Full fit + rotation curve for one galaxy |
| POST | /api/v1/resonance | Resonance indices for one PDB target (research use only) |
Examples
curl -X POST "https://saas.quantumaffinitygravity.com/api/v1/kinetics/fit" \
-H "x-api-key: qag_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"galaxy": "NGC3198"}'import requests
r = requests.post(
"https://saas.quantumaffinitygravity.com/api/v1/resonance",
headers={"x-api-key": "qag_live_your_key_here"},
json={"target": "6VXX"},
)
print(r.json())const res = await fetch("https://saas.quantumaffinitygravity.com/api/v1/kinetics/galaxies", {
headers: { "x-api-key": "qag_live_your_key_here" },
});
const data = await res.json();Symbols and units
| Field | Meaning | Unit |
|---|---|---|
v_inf_kms | Asymptotic (flat) rotation velocity of the fitted curve | km/s |
r_aff_kpc | Affinity radius parameter of the QAG fit | kpc |
qag_red_chi2 / mond_red_chi2 / newton_red_chi2 | Reduced chi-squared of each model against the observed rotation curve | dimensionless |
rotation_curve.points | [radius, observed velocity, velocity error, baryonic velocity] per point | kpc, km/s, km/s, km/s |
Molecular_Weight_kDa | Molecular weight of the indexed structural target | kDa |
Disruptive_Frequency_MHz | Resonance-engine disruptive frequency index | MHz |
Validation status. Kinetics fit statistics are the QAG team's own fits to the public SPARC release and are labeled team-fit until independently validated. Resonance outputs are research-use-only model indices, not clinical or diagnostic claims.