A deployment that serves version 2 serves both versions with the same API key. A deployment that does not yet serve version 2 answers
/v2/classify with 403, 404, or 405, and version 1 keeps working there. Your provisioned SILMARIL_API_URL ends in /classify. The version 2 URL is that URL with the final /classify replaced by /v2/classify. To move an integration, see migrate to version 2.
Changes within a version
Within a version, changes are additive only. Version 1 is frozen: its request, response, and behavior do not change. Write a client so that an additive change does not break it:- Ignore response fields you do not recognize.
- Block on any
actionother thanallow.actionis binary and stays binary. - Treat
sourceandoutcomeas open strings. - Treat
confidenceandseverityas closed, ordered scales.
Breaking changes
Removing a field or changing the meaning of a field is a breaking change. A breaking change is made only in a new major version, at a new path. Existing versions keep their fields and meanings.Retirement
Version 1 has no retirement date. Before version 1 is retired, the changelog will announce the retirement in advance, and version 1 responses will carryDeprecation and Sunset headers.