NMRKit exposes an OpenAPI-documented REST API. Interactive documentation is rendered with Scalar (replacing the previous Swagger UI).
| Environment | Scalar docs | OpenAPI JSON |
|---|---|---|
| Development | dev.nmrkit.nmrxiv.org/latest/docs | /latest/openapi.json |
| Production | nmrkit.nmrxiv.org/latest/docs | /latest/openapi.json |
Versioned docs are also available at /v1/docs and /v1/openapi.json.
Scalar provides:
Some endpoints can take 30–60 seconds (notably nmrdb.org predictions and large spectra parsing). For these, prefer curl or Postman over the browser UI:
curl -X POST "https://dev.nmrkit.nmrxiv.org/latest/predict/" \
-H "Content-Type: application/json" \
-d '{
"engine": "nmrshift",
"structure": "\n Mrv...\nM END",
"spectra": ["proton"],
"options": { "frequency": 400 }
}'| Endpoint | Purpose |
|---|---|
GET /health | Global API health |
GET /latest/registration/health | Used by Docker Compose health checks |