Versioning

How major versions work, which changes your client must tolerate, how a version is retired, and what the catalog identifiers mean.

The major version is part of every request path, as in /v1/analyses. AirCredit releases a new major version only for a breaking change. Every other change ships in the current major. Files and analyses keep their IDs across majors, so a successor reads the same resources.

Breaking and compatible changes

A change is breaking when it can stop a correct integration from working. These changes are breaking:

  • removing or renaming an operation, field, parameter or header
  • changing a type
  • making a response field optional or nullable
  • requiring a request field that was optional
  • adding a value to a closed set, such as the analysis states

The same rules apply to webhook payloads.

Compatible changes ship in the current major without notice:

  • new operations
  • new optional request fields
  • new response members
  • new catalog keys, requirement kinds and machine codes

Your client must tolerate these changes:

  • Ignore unknown response members at every level.
  • Handle unknown catalog keys and codes.
  • Treat an unknown kind of a default requirement from the catalog like text, which is a requirement described only by its description.

Deprecation and retirement

When a new major ships, the previous one is deprecated. It keeps working until its sunset date, at least 90 days after the deprecation. Every response from a deprecated major, errors included, carries these headers:

HeaderMeaning
DeprecationWhen the major was deprecated, as @<Unix seconds> (RFC 9745)
SunsetThe date from which the major may be retired, as an HTTP date (RFC 8594)
Link (deprecation)The migration guide to the successor, /en/docs/partner/v<N>/migration/
Link (successor-version)The successor's reference, /en/docs/partner/v<N>/reference/

For example, after v2 replaces v1, responses from v1 would carry:

Deprecation: @1790812800
Sunset: Mon, 01 Mar 2027 00:00:00 GMT
Link: <https://docs.aircredit.de/en/docs/partner/v2/migration/>; rel="deprecation"
Link: <https://docs.aircredit.de/en/docs/partner/v2/reference/>; rel="successor-version"

Log these headers to learn about a deprecation before the sunset date.

A major is retired on its sunset date at the earliest. From then on, it answers every request with 410 api_version_retired and does not check authentication. Its documentation stays available as an archive.

Webhook versions

Each webhook URL is pinned to a major, and its events use that major's payload format. A new webhook starts on the current major. To use another one, choose it under Webhook API version in the webhook settings. AirCredit never changes the version for you. Changing the URL or rotating the signing secret does not change the version either.

A version change applies to events created after it. Deliveries already queued keep the exact bytes they were signed with, including on retries. Every event names its format in api_version. After a change, your receiver can therefore tell queued events in the old format from new ones.

The test and live webhooks are pinned separately. You can move the test webhook first. A webhook pinned to a retired major receives no new events and shows Version retired until you choose a version that is still available. Webhooks covers the rest of the setup.

Documentation versions

These docs are versioned with the API. Every page lives under its major, as in /en/docs/partner/v1/quickstart/.

  • The version switcher in the sidebar opens another major. It stays on the same page if that major has it.
  • /en/docs/partner/latest/… always leads to the current major.
  • The pages of a deprecated major show its sunset date.
  • The changelog covers every major and labels each entry with its version.

Catalog and engine identifiers

Besides the major version, three identifiers describe what an analysis is built on:

IdentifierMeaning
catalog_versionA fingerprint of all builtin definitions, sha256: followed by a digest. Only in responses
Builtin keysStable keys of fields, checks, document types and templates
engine_revisionIdentifies the implementation and the models. Only in responses

GET /v1/catalog takes no parameters and always returns the current catalog. This example fetches it and prints the fields and checks of one template:

// Looks up which fields and checks a builtin template holds.
import { Client } from "@aircredit/sdk/partner/v1";

const client = Client.fromEnv();
const catalog = await client.getCatalog();

// Each template maps your result keys to builtin fields and checks.
const template = catalog.templates.default_personal_property_purchase;
if (template) {
  console.log(template.title);
  console.log("fields:", Object.keys(template.fields));
  console.log("checks:", Object.keys(template.checks));
}

You never send catalog_version. The catalog and every analysis return it. If it differs from the value you saw before, a builtin definition has changed.

An analysis keeps the definitions it was created with. Later catalog changes therefore do not affect a retry with the same Idempotency-Key or any later read. Model output can still differ between two analyses with the same definitions.

Published builtin keys are a stable contract. They are never renamed or removed, and new keys can be added. A template is referenced by its key alone, for example {"template": {"key": "default_personal_property_purchase"}}. Look up the keys in the catalog.

On this page