Skip to main content

API versioning

The API is versioned in the URL path:

https://lsg.bio/api/v1/...

A new major version — /api/v2 — is the response to breaking change. It ships alongside the old version for a deprecation window announced in these docs and the changelog, so integrations migrate on their own schedule.

What counts as breaking​

  • Removing or renaming an endpoint, field, or error code
  • Changing a field's type or semantics
  • Tightening validation that previously accepted input
  • Changing authentication or the error envelope

What does not​

  • Adding new endpoints
  • Adding optional request fields
  • Adding fields to responses (clients should ignore unknown properties)
  • Adding scopes to the vocabulary
  • Fixing behavior to match its documented contract

Practical rules for clients​

  1. Ignore unknown JSON properties. Additive evolution then costs you nothing.
  2. Do not parse message strings. Branch on code; copy may improve.
  3. Subscribe to the changelog. Breaking changes never arrive silently — they arrive as a new version with a dated deprecation window.