Public API
Versioning
Version in the path, backward compatibility, and planned sunset
The public API version is part of the URL path:
https://api.rentevio.ru/api/public/v1/…
This keeps the version visible in every request — in logs, examples and snippets. A client picks the contract explicitly, so we can evolve the API without breaking live integrations.
What counts as compatible
| Change | Version |
|---|---|
| New field in a response | stays in the current version |
| New method or parameter | stays in the current version |
| New filter value | stays in the current version |
| Removing or renaming a field | new version |
| Changing a field type or behavior | new version |
The rule is simple: adding is fine, breaking needs a new version. If your code tolerates unknown fields, compatible changes pass unnoticed.
Sunsetting an old version
When a new version ships, the old one does not disappear at once. During the migration window its responses carry standard headers:
Deprecation: true
Sunset: Fri, 01 Jan 2027 00:00:00 GMT
Sunset is the date after which the version will be turned off. The retention window is announced in advance and is not shortened abruptly — you have time to move an integration to the new version.
The contract
Schemas, methods and error codes are described in the public-v1.yaml OpenAPI document. It is the source of truth: if an example in an article differs from the schema, follow the schema.
Next — method reference: the full endpoint list with parameters and scopes.