/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.
/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.