Versiones
The major version is part of every path: /v1/…. Within a major version, the API only changes in ways that keep existing clients working.
Changes within v1
These can happen at any time, so write your client to tolerate them:
- new operations;
- new optional request fields and parameters;
- new fields in responses: ignore fields you don’t know;
- new values in enums and new error codes: handle unknown values generically;
- new server-sent event types: skip events you don’t know;
- new scopes, and existing operations becoming available to API keys under a scope.
Taking an operation away from API keys, or moving it to a different scope, is a breaking change.
Breaking changes
Removing or renaming an operation or field, changing a field’s type, making an optional field required, or changing what a status code means are breaking changes. They only happen in a new major version, such as /v2. Both versions then run side by side, and the change is announced in the release notes before the old version is retired.
How this is enforced
The API’s OpenAPI document is generated from its source code, never written by hand. Every proposed change to the API is compared with the current document by an automated API diff. If the diff finds a breaking change, the change is rejected unless it’s explicitly released as a new major version.
The OpenAPI document published here contains the operations an API key can use and the health probes. Each operation that a key can use carries the scope it needs in the x-ivy-api-key-scope extension, for example "x-ivy-api-key-scope": "files:read".
Its info.version field and the version of the JavaScript SDK follow semantic versioning and are released together.