Skip to main content
The version of the API is the /v1 in every path. Inside it the API only grows: new endpoints, new optional fields in requests, new fields in answers, new values you can send. Code written against /v1 today keeps working.

What can appear at any time

Write your code to tolerate these:
  • New fields in answers. Ignore the ones you do not use.
  • New values in an answer that has a fixed set: a new kind of receipt, a new rule action, a new webhook event type, a new error code. Treat one you do not know as “something I do not know yet”, not as a crash.
  • New optional fields you may send.

What will not happen inside /v1

  • An endpoint or its name is removed or renamed.
  • A field is removed, or its type changes.
  • An optional field becomes required.
  • A limit tightens: a shorter maximum, a narrower pattern.
  • A value you could send stops being accepted.
  • An answer field that was always there is sometimes missing, or can now be null.
A change that cannot be made that way would be a /v2, released beside /v1.

Deprecation

Nothing in /v1 is deprecated today. When something is going to be removed, Lurk deprecates it first and keeps it working for at least six months. The changelog says so under API when it is announced; read it when you update. Do not wait for a signal in the answers: the API sends no Deprecation or Sunset headers. Lurk logs which SDK version a call came from (x-lurk-sdk, which the SDKs send), so it can see what is still in use before anything is removed.

SDK versions

An SDK’s major version follows the API’s. A new endpoint or field is a minor, a fix is a patch, and a breaking change is a major. Update on a schedule that suits you: a new SDK never takes away something the old one had inside a major version. See SDKs.

How it is kept true

Every change to the API is compared with what is in production, in a check that fails on a break. A release of an SDK is refused if its description of the API differs from the one production serves.