Changelog
The API and each SDK version separately. There is no single “Licensr 2.0” number.
Sellers: API behavior you care about (new fields, error codes) is described in the license calls guide. Integrators: pin an SDK tag and read that language’s GitHub Releases.
API
Breaking and additive changes to https://api.licensr.app are documented in the license calls guide and reflected in the API reference.
Server keys, and a cap on test licenses
Issuing a key asks whether it is a client key or a server key. A client key (pk_live_ / pk_test_) is the one you embed in an app. A server key (srv_live_ / srv_test_) is for your own server: it can start checkout and call the seller API, and a client key gets 403 insufficient_scope for those. Each test environment holds at most 100 active test licenses. Issuing another, or starting a test checkout, returns 409 test_license_limit until you revoke or delete some.
Offline tokens say whether they are live
A token from /v1/license/token now carries livemode, which is false when it was minted with a test key (pk_test_…). Test and live tokens are signed with the same key, so the JavaScript, Go and C# SDKs (0.3.0) refuse a livemode: false token unless you allow test tokens, which you do only in a test build. If you verify tokens yourself, refuse them in builds you ship. The JavaScript and C# SDKs also check the product (pluginSlug / PluginSlug), as Go already did: every product of a store signs with the same key. See offline tokens.
Response shapes grouped (pre-launch)
The license responses now keep what your product acts on at the top level and group the rest as information:
/v1/license/validate:valid,status,entitlementandfeature_flagsstay at the top. Plan, limits and expiry moved underlicense(plan_id,activation_mode,max_seats,max_domains,seats_in_use,expires_at).plan_name(alwaysnull) andfallback(the same asentitlement: "limited") were removed./v1/license/activate:activation_idandfeature_flagsstay at the top. The echoedactivation_typeandidentifiermoved underactivationastypeandidentifier./v1/license/token:tokenstays at the top.algorithm,kid,issued_at,expires_atandjwks_urlmoved underdetails. The claims inside the token are unchanged.
The official SDKs return the same grouped shape (result.license, result.activation, token.details).
SDKs
Each SDK ships on its own SemVer track. Release notes live on the public mirror for that language:
| SDK | Package | Releases |
|---|---|---|
| JavaScript / TypeScript | @licensr/sdk | github.com/tekunodev/licensr-js/releases |
| C++ | licensr (CMake) | github.com/tekunodev/licensr-cpp/releases |
| C# | Licensr.Sdk (NuGet / UPM) | github.com/tekunodev/licensr-dotnet/releases |
| Go | github.com/tekunodev/licensr-go | github.com/tekunodev/licensr-go/releases |
Pin to a tagged release in production. Pre-1.0 SDKs may still move the public surface — read the release notes before upgrading.