Skip to content

REST API

Versioning and changes

This article explains how the REST API and webhooks are versioned, what kind of change you should be prepared for, and where changes are announced.

The REST API has one version, v1, in the path: /api/rest/v1/.... There is no other version today. The API evolves within v1 with the releases of the sedisto backend, which follow semantic versioning.

Changes within v1 add to the API: new resources, new fields in responses, new filters and new parameters. Write your client so that it ignores fields it does not know.

The OpenAPI document of an installation, at /api/rest/open-api.json, describes the release that installation runs. Its info.version names that release.

Some changes make the API stricter where it used to answer with a misleading result. An example is a filter or sort field that a listing does not offer: it used to be ignored and is now refused with 400. Such changes are announced in the changelog.

Every webhook body carries "version": 1. That number describes the envelope (id, type, occurred_at, installation, site, data), not the event inside it.

Adding a field to an event changes nothing for you; ignore fields you do not know. An incompatible change to an event ships as a new event type with a .v2 suffix, delivered next to the old type. A receiver that handles the old type keeps working, and you move to the new type when you are ready. Route on type and ignore types you do not know.

sedisto-cli is regenerated from the OpenAPI document of each backend release, so its commands follow the API. Update it with sedisto-cli update. See Using sedisto-cli.

Changes to the REST API, webhooks and sedisto-cli are listed per backend version in the API releases. The webhook event catalogue lists every event type with its schema.