> ## Documentation Index
> Fetch the complete documentation index at: https://silmaril.security/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Versioning

> How Firewall API versions are identified, what can change within a version, and how a version is retired.

The Firewall API carries its major version in the URL path. A path without a version segment is version 1.

| Version | Endpoint | Status |
| - | - | - |
| [Version 2](https://silmaril.security/docs/api-reference/v2/classify.md) | `POST /v2/classify` | Current |
| [Version 1](https://silmaril.security/docs/api-reference/classify.md) | `POST /classify` | Available and frozen |

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](https://silmaril.security/docs/api-reference/migrate-to-v2.md).

## 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 `action` other than `allow`. `action` is binary and stays binary.
* Treat `source` and `outcome` as open strings.
* Treat `confidence` and `severity` as 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](https://silmaril.security/docs/api-reference/changelog.md) will announce the retirement in advance, and version 1 responses will carry `Deprecation` and `Sunset` headers.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.