Docs

Developers

Breaking Changes

Our rule

Within a major version, the Ospree API only grows. A change that alters or removes existing behaviour ships as a new major version, never in place.

The version is part of the path (/api/v2/...). A new major version gets a new path, such as /api/v3/..., served alongside the old one. You keep using /api/v2 until you choose to move.

Backward-Compatible API Changes

We strive to avoid breaking changes to our API. The following changes are considered backward compatible, and can happen at any time within a major version:

  • Adding new error_code values.

  • Adding new data elements to existing response schemas.

  • Adding new optional request parameters to existing endpoints.

  • Adding new API endpoints.

  • Relaxing validation, or making a required request field optional.

  • Adding new values to an enum that is documented as open-ended.

Build your integration to ignore response fields it does not know.

What we treat as breaking

These changes only ship in a new major version:

  • Adding a required request field, or making an optional field required.

  • Removing or renaming a field, or changing its type.

  • Tightening validation, so a request that used to succeed now fails.

  • Changing a default value.

  • A response field that was always filled becoming null.

  • Adding a new value to an enum that is not documented as open-ended.

  • Changing the HTTP status, the error code or the error response format for an existing outcome.

  • Changing a filter, a default result set, pagination, ordering or the meaning of a field.

Deprecation

Deprecating is not removing. A deprecated field or endpoint keeps working and is documented with its replacement. It is only removed at a new major version, after a deprecation window we announce in advance.

Current deprecations on /api/v2:

  • transfer_type on Create Transfer: accepted and ignored. Ospree derives the transfer type (Instruction or Record) from the transfer itself.

  • protocol: "flow" on a transfer with a self-hosted wallet, without is_record: still accepted as a Record. Send "is_record": true and no protocol instead.