API PROPOSED

Versioned request and response contracts. No hosted endpoint exists yet. The sandbox below runs the same decide() function in your browser against the fixture.

The static state record, artifact index, non-claims, HOLD record and experimental Python report are downloadable JSON files, not responses from the proposed endpoints below.

Endpoints

POST /v1/decisions
POST /v1/decisions/{id}/reassess
GET  /v1/receipts/{id}
POST /v1/crosswalks/{version}/evaluate      # PROPOSED
POST /v1/research/spectral-runs             # PROPOSED, research only
GET  /v1/research/spectral-runs/{id}        # PROPOSED, research only

Errors (proposed contract)

The sandbox exercises only 200 and 400. The other codes are specified for a future hosted API.

HTTPCodeMeaning
200—A determination was made, including HOLD. HOLD is a result, not an error.
400MALFORMED_PROPOSALRequest body failed schema validation. No determination is recorded.
404UNKNOWN_RECEIPTNo receipt with that reference.
409PRIOR_NOT_FOUNDReassessment names a prior determination that does not exist.
503FIXTURE_UNAVAILABLEReferenced fixture or policy material cannot be retrieved.

Sandbox

Loading fixture…