OpenDecisions
API Reference

API reference

OpenDecisions read-only REST API, overview and base URLs

API reference

The OpenDecisions API is a read-only REST API that serves institutions, programs, admission cycles, cost profiles, outcome stats, cohort stats, and derived indexes. All responses conform to the OpenDecisions v1 schema. The API is the programmatic way to access the same decision-relevant data and "nutrition label" indexes described in the Overview.

Base URL and versioning

  • Base URL: Your API instance (e.g. http://localhost:8000 or your deployed host).
  • Version: All documented endpoints are under /v1/. Schema version is odg/v1.

Authentication

The reference implementation does not require authentication for read endpoints. If you deploy behind an API gateway, configure auth there.

Common behavior

  • Content type: Responses are application/json.
  • Pagination: List endpoints return { items, total, limit, offset }. Use ?limit= and ?offset= query parameters.
  • Errors: Standard HTTP status codes; error body may include detail (string or array of objects).

OpenAPI docs

When the API is running, interactive docs are available:

  • Swagger UI: GET /api-docs
  • ReDoc: GET /api-redoc
  • OpenAPI JSON: GET /openapi.json

Endpoints overview

ResourceListSingle
InstitutionsGET /v1/institutionsGET /v1/institutions/{id}
ProgramsGET /v1/programsGET /v1/programs/{id}
Admission cyclesGET /v1/admission-cyclesGET /v1/admission-cycles/{id}
Cost profilesGET /v1/cost-profilesGET /v1/cost-profiles/{id}
Outcome statsGET /v1/outcome-statsGET /v1/outcome-stats/{id}
Cohort statsGET /v1/cohort-statsGET /v1/cohort-stats/{id}
Derived indexesGET /v1/derived-indexesGET /v1/derived-indexes/{id}

Other routes

RouteMethodDescription
/GETAPI info, version, links to docs and health.
/healthGETLiveness/readiness; returns status, schema_version.
/v1/GETv1 version and schema pointer.