Skip to content

Changelog ​

Every change you can notice in the Sesamy APIs, the Sesamy SDK and Sesamy JS, grouped by week, newest first. Pick a product to see only its changes. A change that shipped in several packages at once is listed once, with each package version it shipped in.

The products change in different ways:

  • API: a Breaking change only applies when you move your API version to its date or later. Everything else applies to every version as soon as it ships. The API Changelog lists only the API's changes.
  • Packages: entries are labelled with the semver bump they caused. A Major change needs code changes when you upgrade to that version. Minor adds something, and Patch fixes something without changing how you use the package. The date is the day the version was published to npm.

Week of 30 November 2026

Minor@sesamy/sdk 1.51.0

2026-11-30

The Checkout response now carries fieldSettings.vat (enabled, optional required), fieldSettings.gift (enabled) and allowedCountries, the ISO country codes the buyer can check out from. vat and gift are left out when the checkout has no such setting. The regenerated SDK types also pick up the auth route types already in the API (return_to validation, session transfer) and the contract attribution UTM tags.

Minor@sesamy/sdk 1.51.0

2026-11-30

Add checkouts.signUrl(checkout, { sessionTransferToken? }), which puts the reader's session in a created checkout's URL fragment so it opens logged in: the Bearer token from tokenProvider as access_token, and optionally a session transfer token. Add createSessionTransferToken(), which exchanges a reader's refresh token server-side for an AuthHero session transfer token and returns the rotated refresh token.

Minor@sesamy/sdk 1.51.0

2026-11-30

Add GET /transactions/{id} to the Client API. It returns one of the current user's transactions in the same shape as GET /transactions, or 404 when the user has no transaction with that ID. The SDK client adds transactions.get(id), which rejects with a 404 APIError when the transaction isn't found. sesamy-js transactions.get(id) now uses the new route instead of searching transactions.list(), so it finds transactions older than the user's newest 20. It still returns undefined when there's no match.

Patch@sesamy/sdk 1.51.0

2026-11-30

Regenerate the client API types for POST /auth/{clientId}/token-exchange.

Week of 23 November 2026

AddedCookie sessions from Custom Token Exchange with POST /auth/{clientId}/token-exchange

2026-11-29 · Client API

In cookie mode, POST /auth/{clientId}/token-exchange takes a token from the publisher's own login (subject_token and subject_token_type), exchanges it with AuthHero Custom Token Exchange and sets the HttpOnly session cookies. The proxy asks for offline_access. When AuthHero issues a refresh token, the session renews itself like a normal login and works with GET /auth/session-transfer, and the refresh token never reaches the browser. Without one, the session ends when the access token expires. A refused subject token answers 400 with code TOKEN_EXCHANGE_REJECTED.

AddedfieldSettings.vat, fieldSettings.gift and allowedCountries on checkouts

2026-11-26 · Client API, Management API

Checkout responses return fieldSettings.vat and fieldSettings.gift, the VAT number and gift settings of the hosted checkout, and allowedCountries, the countries the buyer can check out from.

AddedUTM attribution on contracts

2026-11-26 · Client API, Management API

POST /management/contracts accepts an optional attribution object with utmSource, utmMedium, utmCampaign, utmTerm and utmContent, so contracts created without a checkout can be attributed to a campaign. Contracts return their UTM tags in attribution, on both the Client and the Management API. See Campaign Attribution.

AddedAdded GET /transactions/{id}

2026-11-25 · Client API

Returns one of the current user's transactions by its ID, in the same shape as GET /transactions, or 404 when the user has no transaction with that ID. GET /transactions only returns the newest transactions, so use this to look up an older one, for example from a receipt link.

Week of 16 November 2026

Minor@sesamy/sesamy-js 1.142.0

2026-11-20

Log the reader in from a #session_transfer_token=… URL fragment, which generateLink({ sessionTransfer: true }) links land with. sesamy-js removes the token from the URL, adopts any #access_token next to it as before, and starts a silent login (prompt=none) that carries the token, so AuthHero logs the reader in without a prompt. With the default cookie-based authentication the page gets a session that renews itself. With the Auth0 plugin the reader is logged in too, but the session renews through a refresh token only when useRefreshTokens is enabled or the auth domain is on a different top-level domain. If AuthHero refuses the token, the reader keeps the adopted access token.

AddedAPI versioning with the Sesamy-Version header

2026-11-18 · Client API, Management API

Send Sesamy-Version: YYYY-MM-DD to choose the API behaviour you were built against. Responses echo the version they were served with. Breaking changes only reach you when you move your version to their date or later. See Versioning.

AddedReactivate contracts and change plans

2026-11-18 · Client API, Management API

POST /contracts/{contract_id}/reactivate and POST /management/contracts/{id}/reactivate remove a scheduled cancellation. POST /contracts/{contract_id}/amendments accepts type: 'PLAN_CHANGE', and the Management API adds POST /management/contracts/{id}/amendments and POST /management/contracts/{id}/amendments/{amendmentId}/confirm. The new plan must be one of the contract's upgrade options, and the amendment previews the price difference in proration. See Changing plans.

ChangedAmendments return nextPrice, nextBillAt and currency

2026-11-18 · Client API, Management API

Amendments describe the next bill with nextPrice (in major units), nextBillAt (a timestamp) and currency. On the Client API, nextBill is still returned with its total in minor units, but new code should read the new fields.

FixedContracts whose last price period has no end

2026-11-18 · Client API, Management API

GET /contracts and GET /management/contracts/{id} no longer answer 500 for a contract whose last price period has no end date.

FixedProduct listings failing on incomplete catalog data

2026-11-18 · Management API

GET /management/products and GET /management/products/{sku} no longer answer 500 when a product has a purchase option with no price, a missing cover or language, or other fields the API does not return. A purchase option without a price is returned with an empty prices list, and a missing cover or language as an empty string.

AddedOpen Sesamy pages signed in with GET /auth/session-transfer

2026-11-18 · Client API

In cookie mode, GET /auth/session-transfer?target=… opens a Sesamy checkout, account or content page with the reader already signed in. Sesamy JS uses it for generateLink()'s sessionTransfer option. A target outside the Sesamy pages gets 400 INVALID_TARGET. See the Sesamy JS API reference.

Minor@sesamy/sdk 1.50.0

2026-11-18

Version the API by date. Callers choose the behaviour they're built against with Sesamy-Version: YYYY-MM-DD, falling back to the version pinned on their client and then 2026-11-18, the behaviour before versioning. Once a version is resolved, the response echoes it in Sesamy-Version and varies on it; a request with an invalid version gets 400 INVALID_API_VERSION without the echo. Breaking changes are declared in a changelog registry (apps/api/src/versioning/changelog.ts) that gates them with isChangeActive and renders the public changelog at /api/changelog in the developer docs. markDeprecated sets Deprecation/Sunset headers. The API logs which client calls with which version and which deprecated features, unsampled, so we know when an old path can go. The SDK sends the version it's built against (API_VERSION, overridable with apiVersion) to the API's own origin only.

Minor@sesamy/sdk 1.50.0

2026-11-18

Reactivate contracts and change plans through the API. POST /contracts/{contract_id}/reactivate and POST /management/contracts/{id}/reactivate remove a scheduled cancellation. POST /contracts/{contract_id}/amendments accepts type: 'PLAN_CHANGE', and the management API gets POST /management/contracts/{id}/amendments and .../amendments/{amendmentId}/confirm. A plan change must be one of the contract's upgrade options, and the amendment previews the price difference in proration. Amendments also gain nextPrice (in major units), nextBillAt (a timestamp) and currency (a currency code). The deprecated nextBill keeps its total in minor units. The SDK adds contracts.reactivate, contracts.getUpgradeOptions, and management contracts.createAmendment / confirmAmendment.

Minor@sesamy/sesamy-js 1.141.0

2026-11-18

Add the sessionTransfer option to generateLink(). With the default cookie-based authentication, the link goes through the API proxy's /auth/session-transfer route, which creates an AuthHero session transfer token when the reader follows the link and opens the Sesamy page (checkout, account, or consume) with the reader logged in. The option is ignored with the Auth0 plugin, for anonymous readers, and together with shorten.

AddedVendor hosts: <vendorId>.api.sesamy.com

2026-11-17 · Client API, Management API

Call both APIs on your own host, for example https://acme.api.sesamy.com and https://acme.api.sesamy.com/management. The host names the vendor, so anonymous requests need no Vendor-Id header. A request that names another vendor through its token, header or query is rejected with 403. api2.sesamy.com is unchanged. See Vendor hosts.

Week of 9 November 2026

Patch@sesamy/sesamy-js 1.140.3

2026-11-14

Store each signed link once. Arriving on the same sesamy_token link again replaced nothing and appended another copy to session storage; the newest copy now replaces the old one.

2026-11-13 · Client API

POST /content/unlock with delivery: 'dca' grants the content keys when the reader arrived with a valid Sesamy signed link for that article. See Labrador DCA.

Patch@sesamy/sesamy-js 1.140.2

2026-11-13

Fix the content access check failing with e?.trim is not a function on pages whose LD+JSON uses arrays (WordPress/Yoast articleSection, keywords, author names). Metadata is now normalised to strings, and building the access request's content can no longer fail the check. Every section is kept in a new metadata.sections list: the first is sent as section and the rest as tags. contentType uses the most specific schema.org type (NewsArticle rather than Article).

AddedReports: /management/report-types and /management/reports

2026-11-12 · Management API

List the report types you can generate, create a report, poll it and download the file. Requires the reports:read scope. Creating a report answers 202 with a Location to poll, or 200 when the report already exists. See Reports.

AddedContracts return recurringPrice, the contract's price schedule

2026-11-12 · Client API, Management API

Contracts carry recurringPrice: the price schedule ordered by start, with each period, price, billing interval and discount, including the discount codes behind it when they are recorded. Contract items gain their line id. recurringInterval, recurringTime and discount.endsAt are now also filled in for contracts that renewed since their last change, and a quarterly schedule is reported as three months.

AddedPage metadata on content access checks

2026-11-12 · Client API

Content access checks and unlocks accept contentType, section, tags, authors and publishedAt for the content, so paywall strategies can target on them. They only choose which paywall to show: they never grant access or set a price.

Minor@sesamy/sdk 1.49.0

2026-11-12

Add the contract line id to contract items, and recurringPrice to contracts: the price schedule, ordered by start, with each row's period, price, billing interval and discount, including the discount codes behind it where they are recorded. recurringInterval, recurringTime and discount.endsAt are now also filled in for contracts that have renewed since their last change, and a quarterly schedule is reported as three months.

Minor@sesamy/sdk 1.48.0, @sesamy/sesamy-js 1.140.0

2026-11-12

Send page metadata (content type, section, tags, authors, published date) with content access checks and unlocks so paywall strategies can target on it. The values are unsigned and only choose which paywall to show; they never grant access or set a price.

Patch@sesamy/sdk 1.48.0

2026-11-12

Add /management/report-types and /management/reports: list the report types a vendor can generate, create a report, poll it and download the file. Backed by the stats-api and gated by the new reports:read scope. Creating a report answers 202 with a Location to poll, or 200 when the report is already generated. The MCP server gains list_report_types, get_report_type, list_reports, get_report and create_report. The SDK's generated management types are regenerated and include the new endpoints.

AddedCancel contracts and refund bills

2026-11-11 · Management API

POST /management/contracts/{id}/cancel cancels a contract, and POST /management/contracts/{id}/bills/{billId}/refunds refunds a bill. GET /management/contracts/{id}/bills/{billId}/refunds lists the refunds made. See Cancel and refund.

AddedLabrador DCA delivery on POST /content/unlock

2026-11-11 · Client API

POST /content/unlock accepts delivery: 'dca' for Labrador CMS Delegated Content Access, with Sesamy as the issuer. It verifies the Labrador-signed page, decides access like other Sesamy content, and returns the content keys. See Labrador DCA.

FixedGET /management/bills failing on older bills

2026-11-11 · Management API

GET /management/bills no longer answers 500 for bills created before some fields were recorded. A bill that still cannot be read answers 502 instead of 500.

ChangedVendor IDs must be at most 64 letters, digits, - or _

2026-11-09 · Client API, Management API

A vendor ID in the Vendor-Id header, in the Basic auth username, or in POST /management/vendors is rejected with 400 unless it is at most 64 characters and contains only letters, digits, - and _.

ChangedAn unknown paywall reference no longer fails content access

2026-11-09 · Client API

When an article's paywall reference names a paywall that does not exist, /content/has-access and /content/unlock treat it as no policy, so only the article's access level decides. A paywall reference that is a URL counts only if it ends in a Sesamy paywall ID or strategy ID. Fetching a missing paywall answers 404 instead of 503.

FixedReading Partner Checkout checkouts

2026-11-09 · Management API

GET /management/checkouts/{id} no longer answers 500 for checkouts created through the Partner Checkout API.

Patch@sesamy/sesamy-js 1.139.4

2026-11-09

Fix content-access paywall discovery on multi-article pages by keeping DOM identity within each article and preserving DCA manifest identity. Expose the selected rendering paywall when an access check overrides the article policy, and omit unrecognized access levels from content API requests.

Patch@sesamy/sesamy-js 1.139.4

2026-11-09

Content access no longer fails when an article's paywall reference names a paywall that does not exist. /content/has-access and /content/unlock treat it as no policy, so only the article's access level decides. A paywall reference that is a URL now counts only if it ends in a Sesamy paywall route or a strategy ID; any other URL, such as a publisher-hosted paywall document, is treated as no policy without calling the paywall service. Fetching a missing paywall now returns 404 instead of 503, and the miss is cached for 60 seconds. Paywall discovery in sesamy-js uses a <sesamy-paywall>'s settings-url for the access check only when it is a Sesamy paywall ID, strategy ID or Sesamy paywall URL. A URL to the publisher's own paywall document is ignored there, and the component still renders it.

Week of 26 October 2026

AddedPurchase options on management products

2026-10-29 · Management API

Management product responses include their purchase options: IDs, market prices in major units, billing intervals, lease durations, seat and quantity limits, and sale and listing flags. Use the IDs in Partner Checkout requests. Requires products:read.

ChangedPaywalls return their dynamic pricing fields

2026-10-29 · Client API, Management API

GET /paywalls/{paywallId}, GET /management/paywalls and GET /management/paywalls/{paywallId} return subscriptions[].discountId, subscriptions[].priceMode, singlePurchase.discountId and settings.showPricesExVat. Rendered paywalls also return pricePeriod, discountPeriod, discountMonths and trialDays on automatic subscriptions.

Patch@sesamy/sdk 1.47.1, @sesamy/sesamy-js 1.139.3

2026-10-29

Expose effective entitlement pause state and reject explicitly denied entitlements when matching browser access.

ChangedPaused entitlements grant no access

2026-10-28 · Client API

Entitlements carry isPaused. A paused entitlement no longer grants access through content access checks, unlocks or the content proxy.

Week of 19 October 2026

AddedList a reader's checkouts: GET /management/checkouts

2026-10-23 · Management API

GET /management/checkouts?userId=… lists a reader's checkouts, newest first. Filter with status (for example PENDING to find incomplete ones) and page with limit and from. Requires checkouts:read.

AddedMulti-seat access on management entitlements

2026-10-23 · Management API

GET /management/entitlements marks an entitlement held through a multi-seat contract with origin.type: 'LICENSE', including the entitlements inside a bundle the seat unlocks. The origin carries contractId, the seat role (owner or member) and, outside bundles, licenseId.

Minor@sesamy/sdk 1.47.0

2026-10-23

GET /management/entitlements marks an entitlement held through a multi-seat contract with origin.type: "LICENSE", including the entitlements inside a bundle the seat unlocks. The origin carries licenseId (not for an entitlement inside a bundle), contractId and the seat role (owner or member); the role is what marks a seat. The SDK's Entitlement type includes the new origin.

AddedName the vendor in the query string on anonymous requests

2026-10-22 · Client API

Anonymous Client API requests can name the vendor with a vendor-id query parameter, for proxies that drop the Vendor-Id header. A token, Basic auth or the header take precedence. Management routes ignore the parameter.

AddedPaywall strategy decisions carry through to checkout

2026-10-22 · Client API

Strategy execution, content access checks, unlocks and Capsule denials return decisionId and strategyId with the selected paywall. GET /paywalls/{paywallId} accepts a strategy ID (st_…) from anonymous callers and runs the strategy, with optional referrer, utm_* and contentId query parameters. POST /checkouts accepts attribution.decisionId and attribution.strategyId, so purchases are attributed to the strategy that showed the paywall.

AddedDetailed content access response

2026-10-22 · Client API

POST /content/has-access returns the selected paywall along with the decision when you ask for application/vnd.sesamy.content-access+json, so a paywall can render the same server decision without running the strategy again. The plain boolean response is unchanged. See Content.

Minor@sesamy/sdk 1.46.0, @sesamy/sesamy-js 1.139.0

2026-10-22

Carry the strategy decision from a strategy-chosen paywall into the checkout. Strategy execution, strategy access and read, content unlock, the detailed /content/has-access response (application/vnd.sesamy.content-access+json) and the Capsule denial now return decisionId and strategyId alongside the selected paywall. GET /paywalls/{paywallId} accepts anonymous callers and, for a strategy id (st_…), executes the strategy with the optional referrer, utm_* and contentId query parameters and returns the chosen paywall with decisionId and strategyId (not cached). Checkout creation accepts attribution.decisionId and attribution.strategyId and forwards them to checkout-api. The paywall settings.template is now any string, so a template added upstream no longer fails the paywall response.

The SDK's paywalls.getById takes an optional query for strategy ids, and its strategy, unlock, encoded-read and ContentAccessDetails result types include decisionId and strategyId.

sesamy-js remembers, per article, the paywall a strategy selected and the decision behind it. content.hasAccess() takes them from the detailed access check and adds them to that article's resolvedPaywall; an unlock does not replace them. paywalls.get() resolves a strategy id, or any URL whose last path segment is one, through GET /paywalls/{strategyId} for the configured vendor (it never fetches the URL itself, so the URL's host and vendor segment are ignored), shares one execution between concurrent calls and reuses a decision already made for that content, or the page's only decision from that strategy. With legacyContentAccess: true, content.hasAccess() resolves a strategy reference through paywalls.get(), so the check and the page's paywall share one execution. checkouts.create() adds the matching decisionId and strategyId to a PAYWALL checkout unless the caller sets them, only when exactly one decision on the page matches the paywall (and the caller's strategyId, when given). Deploy the API before upgrading the browser package. Paywall discovery reads a <sesamy-paywall>'s paywall attribute before its settings-url, so the element's explicit reference is the policy the access check and its resolved paywall use.

Patch@sesamy/sdk 1.46.0, @sesamy/sesamy-js 1.139.0

2026-10-22

Name the vendor in the query string as well as the header on anonymous requests, so anonymous paywall routes keep working behind proxies that drop the Vendor-Id header (older WordPress plugin installs do). The SDK adds vendor-id=<vendorId> to a request to the configured API that carries no Authorization header, unless the URL already has one. Cross-origin requests still get neither. The API reads the vendor-id query parameter only on anonymous client routes with no token, cookie session or Basic auth, and below the header in precedence (token > Basic auth > Vendor-Id header > query). It ignores the parameter on management routes and rejects values that aren't a plain id.

Minor@sesamy/sdk 1.45.0, @sesamy/sesamy-js 1.138.0

2026-10-22

Make unified content access the default for component integrations, including embedded content. Non-public access checks and delivery grants use the content API; the server resolves policies and checks subscriptions. Local embed grants return no key or reusable token and register applicable signed-in reads before content is shown. Public content and existing URL-delivered signed grants retain their bypasses.

Discover a unique matching paywall's settings URL when an explicit article policy is absent. Match by resource id or article scope and refuse ambiguous or unrelated document paywalls. Preserve explicit policies and enablePaywallSettingsUrlFallback: false. Normalize discovered JSON settings URLs to their policy IDs.

Return the selected paywall in an opt-in detailed check response so the paywall component can render the same server decision without executing the strategy again. Existing boolean and legacy media types and deprecated endpoints remain supported.

Set legacyContentAccess: true at the top of the sesamy-js configuration to preserve the prior access checks, registration and component behavior. This is a default behavior change: embed reads that were previously uncounted now consume applicable allowances. Deploy API, SDK/sesamy-js and updated components in that order. Existing fixed paywall references remain fixed; configure a strategy reference explicitly to opt into strategy outcomes.

Patch@sesamy/sesamy-js 1.139.1

2026-10-22

Name the vendor on SDK requests when only clientId is configured. Anonymous cookie-mode requests (such as POST /content/has-access on WordPress sites) now carry the Vendor-Id header and vendor-id query parameter instead of failing with 400 Missing vendor.

AddedUnified content access: POST /content/has-access and POST /content/unlock

2026-10-21 · Client API

POST /content/has-access checks access without using up a read. POST /content/unlock grants it and returns Capsule key material, a scoped proxy token, or a decision for locally encoded content. The server resolves fixed paywalls and strategies. See Content.

DeprecatedLegacy paywall strategy and access routes

2026-10-21 · Client API

Use POST /content/has-access and POST /content/unlock instead of POST /paywalls/strategies/{strategyId}/execute, .../read and .../access, and POST /paywalls/{paywallId}/access and .../access/check. They keep working unchanged.

ChangedCapsule unlocks enforce signed paywall policies

2026-10-21 · Client API

When a verified publisher resource JWT names a paywall in data.paywallUrl, Capsule unlock evaluates that paywall's strategy on the server before handing out keys, and returns the selected paywall when it denies access. Policy-bound content must use the article-specific encryption scope. Older manifests without a policy keep working as before. See Client-side locking.

Minor@sesamy/sdk 1.44.0, @sesamy/sesamy-js 1.137.1

2026-10-21

Add unified content access checks and unlocks. Resolve fixed paywalls and strategies on the server; checks return a boolean without consuming a read, while unlocks return Capsule key material, a scoped proxy token, or a token-free local encoded decision. Reuse the existing Capsule authorization handler and preserve signed-policy boundaries.

Route sesamy-js content operations through the unified API without changing existing function signatures or entitlement/boolean/null and HTML return contracts. Keep leaky availability hints and custom Capsule issuer contracts compatible. Deploy the API before upgrading the browser package.

Deprecate the legacy strategy execution and registration endpoints in OpenAPI without removing or changing their behavior. Keep direct executeStrategy calls working with the existing once-per-instance console warning. Repeated checks and strategy execution never register reads.

Minor@sesamy/sdk 1.43.1, @sesamy/sesamy-js 1.137.0

2026-10-21

Allow content.unlock() to default to the first configured article, Capsule manifest, or page metadata. Detect Capsule automatically, decrypt and render through its plugin, and return HTML while preserving existing encode/proxy results and selector-string arguments. Both content methods accept optional paywall references; overrides must match a verified Capsule policy when present, while legacy hints are ignored by the key endpoint.

The Capsule key endpoint now authorizes policies from data.paywallUrl in a verified publisher resource JWT, evaluates the bound strategy server-side, and records successful metered or LOGIN grants only after key generation succeeds. It returns the selected paywall on denial. Policy-enabled content must use the article-specific content:${encodeURIComponent(resourceId)} encryption scope, with optional signed data.entitlementScopes for alternative subscription permissions, so a free read cannot expose a shared tier key. Browser-selected LOGIN paywalls cannot mint arbitrary grants. Legacy metered signed links cannot bypass a bound strategy. Existing entitlement and ordinary signed-link access remain supported for older manifests without a policy reference; optional browser paywall hints are ignored on those paths and cannot grant access themselves.

Capsule authorization and key delivery use one request. Disable persistent key and unlock-response caches so later reads cannot skip policy evaluation or article counters. Deploy the API before sesamy-js and its Capsule plugin. Publishers must sign data.paywallUrl, register their signing key, and re-encrypt shared-tier content under the article-specific scope to enable bound policy access; existing manifests keep their legacy authorization paths. Add content.unlock(article, { encodedContent }) for local base64 delivery, registering signed-in LOGIN reads through a token-free strategy read endpoint before returning decoded HTML. Updated legacy containers must call this path; older containers still do not register reads. Proxy registration remains unchanged.

Deprecate direct sesamy-js paywalls.executeStrategy() calls with a console warning once per instance and a TypeScript deprecation annotation. Internal availability checks do not warn. Regenerate SDK request and denial-response types from the local OpenAPI contract.

Reject LOGIN grants on legacy registration routes even when leaky settings are enabled. Validate matching URL origins on signed-policy overrides, and select page-wide signed links for the first Capsule manifest rather than a later article.

Patch@sesamy/sesamy-js 1.136.1

2026-10-20

Keep readers signed in when a publisher's auth domain moves onto its own site. A reader who still holds a refresh token from before renews with it until it stops working, and only then moves to the session cookie, instead of being logged out on the first page load. On a change of auth domain, the cached session is carried over with its refresh token when the new domain honours it (the same tenant on a new host), and reset as before when it does not.

AddedRegister paywall reads through a strategy

2026-10-19 · Client API

POST /paywalls/strategies/{strategyId}/access resolves the strategy and registers the read on the paywall it chose.

FixedGET /profile for readers who sign in by SMS

2026-10-19 · Client API

GET /profile no longer answers 500 for readers who sign in with a phone number and have no email address.

Minor@sesamy/sdk 1.43.0, @sesamy/sesamy-js 1.136.0

2026-10-19

Fix SDK methods that called routes the API does not serve (they answered 404).

@sesamy/sdk

  • profile.get() and profile.update(data) now call /profile. The userId argument is removed; the API always acts on the authenticated user.
  • management.customers.get() now calls /management/mc/customers/{id} and returns the XML body as a string instead of failing to parse it as JSON.
  • Removed tallies.create, tallies.delete and fulfillments.create: the API has no such routes.
  • Added a test that checks every SDK method against the generated OpenAPI paths, and refreshed the generated types.

@sesamy/sesamy-js

  • Removed tallies.delete. It always returned false because the route does not exist.

Minor@sesamy/sdk 1.43.0

2026-10-19

paywalls.registerAccess accepts a strategy id (st_…): the API resolves the strategy, registers the leaky read on the resolved paywall and counts the article read for signed-in readers. New route POST /paywalls/strategies/{strategyId}/access.

Week of 12 October 2026

ChangedGrant statuses match the access-list service

2026-10-15 · Management API

Grant status is one of PENDING, ACTIVE, CANCELED, EXPIRED or DELETED. INACTIVE is gone: no grant ever had it. GET /management/access-lists/{id}/grants no longer answers 500 for grants with a status outside the old list.

FixedGET /vendors for readers without a vendor

2026-10-15 · Client API

GET /vendors no longer answers 400 vendorId is required for tokens that name no vendor.

Patch@sesamy/sesamy-js 1.135.1

2026-10-14

Report activeDuration once per page view (on tab hide, unload and route change) instead of once per burst of activity, ignore reports under 2 seconds, and set durationStart to when the active time actually began.

AddedredirectLabel on checkouts

2026-10-13 · Client API

POST /checkouts accepts redirectLabel, which replaces "Go to {vendor}" on the button back to redirectUrl on the confirmation page and in the order confirmation email. Paywalls keep settings.redirectLabel and subscriptions[].redirectLabel.

FixedAccess-list errors

2026-10-13 · Management API

Access-list and grant endpoints answer with the actual 4xx and its reason instead of a bare 500.

Minor@sesamy/sdk 1.42.0, @sesamy/sesamy-js 1.135.0

2026-10-13

Add redirectLabel to checkout creation. POST /checkouts accepts an optional redirectLabel and forwards it as the checkout's redirect-label, which replaces "Go to {vendor}" on the button back to redirectUrl on the confirmation page and in the order confirmation email. The SDK's CreateCheckoutParams (and so sesamy-js checkouts.create) carries the field, and the SDK's checkout link builders add it as redirect-label. The paywall schema also keeps settings.redirectLabel and subscriptions[].redirectLabel instead of stripping them.

Patch@sesamy/sesamy-js 1.135.0

2026-10-13

Keep the stored UTM attribution when checkouts.create or paywalls.executeStrategy is called with attribution fields that are undefined, null or empty. Only fields the caller actually sets override the stored values, so paywall purchases without utm-* attributes no longer drop the UTMs captured from the landing URL.

FixedPOST /checkouts with an email address

2026-10-12 · Client API

POST /checkouts no longer fails when the request includes email. Errors from creating the checkout reach you as 4xx with the reason instead of 503.

2026-10-12 · Client API

PATCH /profile and GET /fulfillments work when you authenticate with the session cookie instead of an Authorization header. They answered 503 before.

Patch@sesamy/sesamy-js 1.134.1

2026-10-12

Fix the cookie (BFF) auth plugin showing a logged-in user after logout. A userinfo lookup made between logout() clearing state and the redirect landing could write the still-valid session back into the sessionStorage cache, which the next page load then trusted.

Week of 5 October 2026

ChangedNew issue codes in validation errors

2026-10-08 · Client API, Management API

Request validation errors keep their { success, error: { name, issues } } shape, but the issue codes and messages changed, for example invalid_format instead of invalid_string. Match on the status code and field path, not on issue messages. See Error Handling.

AddedcanceledAt on contracts

2026-10-07 · Client API, Management API

Contracts carry canceledAt, the date the contract was actually canceled. It is null until then.

ChangedClear the mobile phone with PATCH /profile

2026-10-07 · Client API

PATCH /profile with mobilePhone set to null or an empty string clears the number. Before, the value was ignored.

FixedUpstream 4xx on contract, bill and transaction listings

2026-10-07 · Management API

Listing contracts, bills and transactions with an invalid filter answers with the 4xx and its reason instead of a 5xx. Reading a business checkout without a VAT number no longer answers 500.

Minor@sesamy/sdk 1.41.0

2026-10-07

Add canceledAt to the Contract type in the management and client types.

Minor@sesamy/sesamy-js 1.134.0

2026-10-07

Pass the stored attribution to the auth server on login as a JSON attribution parameter, in both the Auth0 SPA and BFF cookie flows. The BFF /auth/{clientId}/login endpoint accepts and forwards it, and keeps it through the cookie-less login retry.

Minor@sesamy/sesamy-js 1.134.0

2026-10-07

Add sku and purchaseOptionId to the sesamyJsPurchase event detail, decoded from itemSrc. itemSrc is unchanged. Values that can't be decoded (article URLs, free-form strings) still fire the event with itemSrc only.

Patch@sesamy/sesamy-js 1.134.0

2026-10-07

Fix signed links whose JWT payload contains base64url characters (-/_) never granting access, and decode signed-link payloads as UTF-8.

FixedChanging a login identifier to an email a linked identity holds

2026-10-06 · Management API

POST /management/users/{user_id}/change-login-identifier updates the login when a linked identity already holds the new email. Before, it reported success without changing anything.

ChangedSeat users no longer need a sku

2026-10-05 · Management API

POST /management/contracts/{id}/seats/users and DELETE /management/contracts/{id}/seats/users/{userId} act on the contract's license without a sku. This fixes the 409 they answered on multi-seat contracts. The list leaves out removed seats.

Patch@sesamy/sdk 1.40.1

2026-10-05

Deprecate the sku argument of contracts.addSeatUser and contracts.removeSeatUser. The API now assigns and removes seats on the contract's license without it, so the SDK no longer sends it.

Week of 28 September 2026

AddedManage the users on a multi-seat contract

2026-10-02 · Management API

GET, POST /management/contracts/{id}/seats/users and DELETE /management/contracts/{id}/seats/users/{userId} list, assign and remove the users holding seats. See Creating contracts.

DeprecatedGET /management/contracts/{id}/licenses

2026-10-02 · Management API

Use GET /management/contracts/{id}/seats/users instead.

Minor@sesamy/sdk 1.40.0

2026-10-02

Deprecate the contract licenses listing in favor of seat users and log calls to the deprecated route. Add management endpoints and SDK methods to list, assign, and remove users holding seats on a multi-seat contract.

AddedChange the seats on a contract: PUT /management/contracts/{id}/seats

2026-09-30 · Management API

Change the number of seats on a multi-seat contract without changing what is billed. Requires contracts:write. It refuses to go below the number of users holding a seat. See Creating contracts.

2026-09-30 · Client API, Management API

POST /management/create-signed-link accepts optional scopes and writes them into the link with the sku. A link with scopes unlocks only those scopes. Capsule unlock rejects links without an expiry, so links issued before this without one stopped working.

Minor@sesamy/sdk 1.39.0

2026-09-30

Add contracts.setSeats() to the management SDK and the SetContractSeatsParams type. The regenerated management types also pick up endpoints added since the last regeneration.

Patch@sesamy/sdk 1.39.0

2026-09-30

Capsule unlock now rejects share tokens that have no exp claim. Before, such a token never expired. POST /management/create-signed-link now writes a scopes claim into the token: the sku if one is given, plus any scopes passed in the new optional scopes field (for example the page's url:<hash> scope). A token with scopes unlocks only those scopes. A token without them is still bound to the article its URL or content id names. Signed links issued earlier without exp stop working. The SDK's management types include the new scopes field on the request and response.

ChangedProfile addresses require a city

2026-09-29 · Client API

PATCH /profile rejects a billingAddress or deliveryAddress without city with a 400 naming the field. Before, it failed with 503.

ChangedCursor paging on discounts

2026-09-29 · Management API

GET /management/discounts and GET /management/discounts/{id}/codes return a nextCursor to pass back as cursor for the next page. See Managing discounts.

Patch@sesamy/sdk 1.38.1

2026-09-29

Require city on billingAddress and deliveryAddress when updating a profile. A missing or blank city is now rejected with a 400 naming the field instead of surfacing as a 503 from the profile backend.

AddedDiscounts: /management/discounts

2026-09-28 · Management API

List, create, read, update, activate, pause and cancel discounts, and generate, list and cancel one-time codes. Requires the discounts:read and discounts:write scopes. See Managing discounts.

ChangedSigned links unlock only their own article

2026-09-28 · Client API

Capsule unlock accepts a signed link only for the article it was issued for, and rejects expired links. Readers on a signed link can unlock without signing in. When a link doesn't cover the article but the reader is signed in, their entitlements decide.

Patch@sesamy/sesamy-js 1.133.2

2026-09-28

Fix Capsule signed-link unlock on the first page load. The page URL still contains ?sesamy_token= when the unlock runs, so it didn't match the stored signed link and the request went out without a token. That gave a 401 until the page was reloaded. Signed-link parameters are now ignored when matching.

Patch@sesamy/sesamy-js 1.133.1

2026-09-28

Readers who arrive on a signed link can now unlock Capsule (DCA) content without logging in. The capsule plugin sends the signed link's token with the unlock request.

Week of 21 September 2026

Fixedattribution.referrer on checkouts

2026-09-25 · Client API

POST /checkouts passes attribution.referrer on. It was dropped before.

FixedPOST /management/contracts answering 503 after success

2026-09-25 · Management API

POST /management/contracts returns the created contract instead of 503 "the outcome is unknown".

AddedGet one vendor: GET /management/vendors/{vendorId}

2026-09-24 · Management API

Read a single vendor you have access to.

AddedDelete users who have one-off purchases

2026-09-24 · Management API

DELETE /management/users/{user_id}?allowPurchases=true deletes a user who holds one-off purchases. Subscriptions and active, overdue or upcoming subscription contracts still block deletion.

ChangedGET /management/users returns addresses

2026-09-24 · Management API

Users in GET /management/users include billingAddress and deliveryAddress.

AddedUser logs and sessions

2026-09-23 · Management API

GET /management/users/{user_id}/logs and GET /management/users/{user_id}/sessions page through a user's sign-in activity. Requires users:read.

AddedCreate contracts: POST /management/contracts

2026-09-22 · Management API

POST /management/contracts and POST /management/contracts/{id}/confirm create invoiced contracts without a checkout, including multi-seat contracts. Requires contracts:write. Contract items report quantity and seats, and a contract names its payer when someone other than the user is billed. See Creating contracts.

ChangedMatomo visitor ID on checkouts

2026-09-22 · Client API

POST /checkouts accepts the Matomo visitor ID as attribution._pk_id.

Minor@sesamy/sdk 1.38.0, @sesamy/sesamy-js 1.133.0

2026-09-22

Forward the Matomo visitor cookie to the checkout, alongside the Google Analytics and Facebook ones already sent.

Matomo's visitor cookie is not literally named _pk_id — it is _pk_id.<idsite>.<domainhash>, so the name varies per site and could not be matched by the exact-name list the other four cookies use. getGaTrackingData now matches on the _pk_id. prefix and forwards the raw value under the fixed key _pk_id, which is the name the checkout accepts. If a page carries several _pk_id.* cookies, the first one in the cookie string wins and a single entry is emitted. Both the generateCheckoutLink link builder and the server-backed createCheckout flow pick this up unchanged, and it stays behind the existing marketing-consent gate.

The API accepts _pk_id on the checkout attribution and maps it into the upstream checkout query.

Minor@sesamy/sdk 1.38.0

2026-09-22

Add contracts.create() and contracts.confirm() to the management SDK, and the CreateContractParams type. Contract items now carry quantity and seats, and a contract names its payer when someone other than the user is billed.

Week of 14 September 2026

ChangedRequests time out after 30 seconds

2026-09-18 · Client API, Management API

A request that takes longer than 30 seconds answers 504 instead of staying open. Retry idempotent requests with backoff.

Patch@sesamy/sdk 1.37.1, @sesamy/sesamy-js 1.132.1

2026-09-17

Retry GET requests that never completed (a dropped connection, a network change) instead of failing on the first attempt. Writes and aborted requests are never retried.

Minor@sesamy/sdk 1.37.0, @sesamy/sesamy-js 1.131.0

2026-09-15

sesamy-js now reports its own failures to the Sesamy logs service: API requests that never complete (such as a failed CORS preflight), 5xx responses after retries, auth and init failures, and uncaught errors and unhandled promise rejections from sesamy-js. Reports are batched, capped per page load, and have URLs and tokens scrubbed before sending. It is on by default and can be turned off with errors: { enabled: false }.

The SDK gains an optional onRequestError callback in its client config, called when a request never completes or ends in a 5xx response.

Minor@sesamy/sesamy-js 1.132.0

2026-09-15

Report more about auth failures, and recover from two states that left subscribers on a locked or blank article until they reloaded.

  • Error reports can carry a flat details object. The auth0 plugin now reports every silent-auth failure with the recovery branch it took (session-ended, prompt-none-redirect, recovery-spent, refresh-token-ended, unrecoverable), the error code, and whether the page had treated the reader as signed in. It also reports a cached session cleared during the startup session check, and the result of a prompt=none round trip. getEntitlements reports a SessionUnavailableError with whether auth init had failed.
  • window.sesamy.errors.report(error, { details }) lets components report to the same endpoint, under the component category.
  • An expired session now always emits sesamyJsLogout (with reason: 'session_expired'). On login_required auth0-spa-js clears its own cache before the error reaches sesamy-js, so the event used to be skipped, and components never re-checked access.
  • A failed auth init is retried after 2 and 10 seconds. When a retry recovers a signed-in session, sesamyJsAuthenticated is emitted with reason: 'init_recovered' (unless the plugin already announced it), so the page no longer needs a reload.
  • Auth plugins receive an optional context as the second argument to init(), with a reportError function.

Patch@sesamy/sesamy-js 1.130.1

2026-09-15

Stop the auth0 plugin's session recovery from flickering the page in a loop.

When a silent token call failed, the plugin could recover through a full-page prompt=none redirect to the auth server — which the reader sees as the page flickering. Its only guard was the five-minute silent-auth throttle, and that guard did not hold: it lives in sessionStorage, so every new tab started without it, and a successful return cleared it, after which the next failed token call redirected straight away.

  • The recovery now runs at most once per vendor every four hours. The attempt is recorded in localStorage before navigating, and nothing but logout() clears it, so no outcome of the round trip can start another one. Where the attempt cannot be recorded, it is not made.
  • Of the refresh-token failures, only a revoked token triggers the recovery. The auth server slides a refresh token's idle window on every exchange but the SSO session only when the reader passes through /authorize, so an expired or missing refresh token almost always sits on an expired session. Those now end the session locally without a redirect.
  • A session cached for a different auth domain is reset on load. auth0-spa-js's cache keys carry no domain, so after the default auth domain moved to the vendor's own tenant host, readers kept the previous domain's tokens and they counted as evidence of a session. The stale cache is cleared once, and with refresh tokens the one recovery is spent to carry the SSO session over.

Week of 7 September 2026

ChangedAnonymous paywall requests need a vendor

2026-09-11 · Client API

An anonymous paywall request that names no vendor answers 400 Missing vendor. Name it with the Vendor-Id header. A failed paywall fetch passes on the 4xx it got, such as an unknown paywall, instead of answering 503.

ChangedUnexpected errors return a plain body

2026-09-11 · Client API, Management API

An unexpected error answers 500 with the body Internal Server Error. GET /profile answers 404 when there is no profile.

Patch@sesamy/sdk 1.36.1

2026-09-11

Send the configured vendorId as the Vendor-Id header on requests to the configured API.

ClientConfig.vendorId was accepted and then never used, so the publisher a request belonged to was carried only by the Basic auth username the token provider builds for anonymous readers. Any request without an Authorization header therefore reached the API with no vendor at all — including every request in cookie/BFF mode, where the token provider returns null by design — and vendor-scoped routes such as the paywall access checks could not resolve the publisher.

The header is held to the configured baseUrl origin, like the Authorization header: a custom header makes an otherwise-simple cross-origin GET preflighted, and the upstream paywall render routes that request() is handed as absolute URLs do not allow it. One the caller set itself is dropped cross-origin for the same reason, since headers in the client config applies to every request.

A caller's own Vendor-Id still wins over the configured one, whatever its casing. Header names are case-insensitive to fetch while plain object keys are not, so the configured header must not go out beside a caller's differently-cased one: the two would reach the API as a single comma-joined acme, acme-other naming neither vendor.

Minor@sesamy/sesamy-js 1.130.0

2026-09-11

Stop reporting a reader whose session cannot be read as a reader without entitlements.

A subscriber opening an article the morning after their access token expired was served the teaser while <sesamy-login> showed them signed in. Three things combined to produce that, and each is fixed here.

getEntitlements() asked the API even when no access token could be produced. tokenProvider falls back to anonymous Basic auth in that case — right for a paywall render, wrong for entitlements, because the API answers the anonymous reader honestly with an empty list and the caller cannot tell that apart from an expired subscription. It now throws the new SessionUnavailableError (exported) instead, so callers can treat "could not ask" as unknown rather than denied. A null token in cookie/BFF mode, or against an API on the page's own top-level domain, is unaffected: identity travels in the session cookies there by design.

auth.isAuthenticated(), getTokenSilently(), getUser() and refreshAuth() answered false/null while init() was still in flight. window.sesamy is handed out before init finishes, so callers routinely arrive mid-init and were told a signed-in reader was anonymous. They now wait for the init already running, and still answer anonymous immediately when auth is disabled or no init was ever started. waitForInit() waits on the same signal — it previously listened for an event name that was never dispatched.

sesamyJsReady now fires even when one of the page handlers init runs throws. It is the only signal components have that the api can be trusted, and withholding it over a single failed page-level convenience stranded the whole page. Relatedly, handleLockedContentRedirectUrl no longer redirects a reader to the paywall when the access check failed, only when it definitely returned no access.

Patch@sesamy/sesamy-js 1.130.0

2026-09-11

Recover a session whose refresh token died, instead of giving up on it.

Refresh tokens expire, rotate and get revoked on their own schedule, and the SSO session at the auth server routinely outlives them. That is the overnight case: a reader comes back in the morning to a dead refresh token and a perfectly good session behind it. The auth0 plugin treated a failed refresh as terminal — it armed the five-minute silent-auth throttle and returned no token, so every entitlement check for the next five minutes ran as an anonymous visitor.

A refresh failure (invalid_grant, a missing or rejected refresh token) now joins the recoverable cases: with any evidence of a session, the plugin attempts the first-party prompt=none redirect it already uses for a blocked iframe. The throttle is armed before the redirect, so a round trip that comes back unauthenticated cannot start another one.

When there is no evidence of a session left to recover, the local state is cleared and sesamyJsLogout is emitted, so the page renders as anonymous and offers a login. This replaces a full logout() — a redirect to the auth server's logout endpoint, which ended an SSO session we had not established was dead, and navigated the reader off the article to do it.

The legacy localStorage refresh is fixed the same way, and it has to be: it runs before any Auth0 recovery, and refresh tokens from the old token service are no longer honoured anywhere, so it fails for every reader still carrying one. It too called logout() — which ended the SSO session and wiped the session hint that the recovery above looks for as evidence, so the whole session was lost to a token that was already obsolete. It now drops the dead legacy tokens and falls through to Auth0.

AddedDiscount details on contracts

2026-09-10 · Client API, Management API

appliedDiscounts[] gains status, startsAt and endsAt, and contracts gain a discount block for the next bill: endsAt, amount, percentage and fullPrice. Use it to see when an introductory price ends and what the reader pays after. On listings, appliedDiscounts[].startsAt and endsAt are empty; read the contract by ID.

AddedSubscriber count in stats

2026-09-09 · Management API

GET /management/stats/series/totalSubscribers returns how many subscribers hold an active subscription on each day, per product. It is a count, so currency is null. See Reading stats.

ChangedCheckouts return their campaign attribution

2026-09-09 · Client API, Management API

Checkout responses fill attribution with the utm* values the checkout was created with, including when you read a checkout from a checkout.1#confirm webhook.

FixedReading checkouts and fulfillments with missing fields

2026-09-09 · Client API, Management API

GET /management/checkouts/{id} no longer answers 500 for checkouts without a redirect URL, language or full VAT details. redirectUrl is optional on a checkout response. GET /fulfillments no longer answers 500 when an item has no delivery address.

Minor@sesamy/sesamy-js 1.129.0

2026-09-09

Default the auth0-plugin's auth domain to the vendor's own AuthHero tenant, addressed by subdomain (<vendorId>.token.sesamy.com, .dev in the dev environment), instead of the shared token.sesamy.* host. AuthHero resolves the tenant from the hostname, so the SPA flow now reaches it directly and no longer depends on the token service that is being sunset. A configured auth.domain / auth.domains[] still takes precedence.

Drop the migration gate that pinned the bare token.sesamy.* host whenever a legacy 64-character refresh token from the old token service was cached, which also silently overrode a publisher's custom domain. Those refresh tokens are not honoured anywhere any more; a user still carrying one is prompted to sign in again.

Note that the issuer (iss) of tokens minted through the default domain changes from https://token.sesamy.com/ to https://<vendorId>.token.sesamy.com/. Backends that pin the issuer when verifying Sesamy JWTs need to accept the tenant issuer.

Patch@sesamy/sesamy-js 1.129.0

2026-09-09

Clear the stale local session when silent auth authoritatively fails.

When the auth server reported no session, the auth0 plugin armed its 5-minute throttle but left its own local session state in place. isAuthenticated() answers from that state, so a page that gates on it kept rendering as signed in while every token call threw Silent auth throttled until the throttle expired.

When the auth server reports login_required — the one answer that means the session is actually gone — the plugin now purges the local access/refresh tokens and the auth0-spa-js cache (logout({ openUrl: false }) — no redirect, no call to the auth server), and emits sesamyJsLogout when the client had been treating the user as signed in, so the page re-renders as anonymous and offers a login.

consent_required, interaction_required and access_denied are left alone: Auth0 returns the first two for a user who is still signed in but has something to complete, and the third for a rule or Action refusing the client. Those still back off, but never tear the session down. The throttle itself is unchanged; it is what prevents the iframe/redirect retry storm.

That event carries detail.reason === 'session_expired' so listeners can tell an expiry from a user-initiated logout. The bundled analytics listener now resets the identity without recording a logout event for an expiry, so expired sessions no longer inflate logout counts.

getTokenSilently() throws a typed SilentAuthThrottledError (name: 'SilentAuthThrottledError', code: 'silent_auth_throttled', same message as before) so callers can tell a throttled call apart from a transport failure.

FixedReading checkouts older than 7 days

2026-09-07 · Management API

GET /management/checkouts/{id} reads checkouts of any age.

ChangedBill date filters must be ISO 8601

2026-09-07 · Management API

createdGte, createdLte, modifiedGte and modifiedLte on GET /management/bills must be ISO 8601 date-times with Z or an offset. Anything else answers 400.

Week of 31 August 2026

Addedorigin on contracts

2026-09-04 · Client API, Management API

Contracts carry an optional origin ({ type, id }). type is CHECKOUT, CHECKOUT_LEGACY, MANUAL, IMPORTED, THIRD_PARTY or OFFER. For CHECKOUT, id is the checkout ID, so you can match a contract to the checkout that created it.

AddedDate filters on GET /management/bills

2026-09-04 · Management API

GET /management/bills accepts createdGte, createdLte, modifiedGte and modifiedLte, and now applies the status and contractId filters. Bills report their real created and modified timestamps and receiptUrl.

FixedBills without payment data

2026-09-04 · Management API

GET /management/bills no longer answers 500 for draft, pending or unpaid bills, and GET /management/bills/{id} returns the right bill for machine-to-machine tokens.

2026-09-04 · Client API

POST /auth/{clientId}/session turns a bearer access token into a cookie-mode session, for example from an app deep link. The session ends when the token expires. See Authentication.

ChangedPaywalls return all their fields

2026-09-04 · Client API, Management API

Paywall responses include description, subscriptionsUrl, settings.redirectUrl, settings.loginFields, and comparePeriodText, readMoreLink and redirectUrl on subscriptions, which were dropped before. Paywalls that leave out optional fields no longer answer 5xx. Admin fields (name, status, createdAt, modifiedAt, previewUrl) are only on GET /management/paywalls.

Minor@sesamy/sdk 1.36.0, @sesamy/sesamy-js 1.128.0

2026-09-04

Expose the contract's origin on the contracts endpoints.

Contracts now carry an optional origin object ({ type, id }), mirroring the origin pattern on entitlements. type is one of CHECKOUT, CHECKOUT_LEGACY, MANUAL, IMPORTED, THIRD_PARTY, or OFFER, and id is the id of the originating entity — the checkout id when the type is CHECKOUT, which finally lets API consumers correlate a contract with the checkout that created it. Origin values our enum does not document yet are omitted rather than passed through.

Minor@sesamy/sdk 1.35.0, @sesamy/sesamy-js 1.127.0

2026-09-04

Fix the paywall schema drift that was silently dropping fields from paywalls.get().

The hand-written zod schema behind the API's paywall routes had fallen out of sync with the upstream paywall API type, and because the API validates upstream responses with .parse, every field missing from the schema was stripped from the response. Renderers that read settings.redirectUrl, settings.loginFields, subscriptions[].comparePeriodText or subscriptions[].readMoreLink were handed a payload with the data quietly removed.

  • Added the missing fields: description and subscriptionsUrl on the paywall, redirectUrl and loginFields on settings, and comparePeriodText, readMoreLink and redirectUrl on subscriptions.
  • Corrected inverted optionality. subscriptions[].id, .title, .description, .discountCode, .periodText and .tag, settings.template, .useDefaultLogo, .useDefaultCurrency, .useDefaultColor, and singlePurchase.title, .description and .discountCode are all optional upstream but were required here, so a valid payload omitting any of them made the route throw a 5xx.
  • Split the render shape from the admin shape. Paywall now describes what the public render route actually returns; the OAuth2-only name, status, entity, createdAt, modifiedAt and previewUrl moved to the new PaywallAdmin, which is what GET /management/paywalls returns.
  • SDK: paywalls.get() still takes an ID or an absolute URL, and both forms are now explicitly documented and available as paywalls.getById() and paywalls.getByUrl(). The ID form goes through the OpenID-secured client API; the URL form is the anonymous-safe one when pointed at the public upstream render route.
  • SDK: exports PaywallAdmin, PaywallSubscription and PaywallSettings alongside Paywall.
  • sesamy-js: re-exports Paywall, PaywallSubscription and PaywallSettings by name, so consumers can annotate the type directly instead of reaching for Awaited<ReturnType<SesamyAPI['paywalls']['get']>>.

Patch@sesamy/sdk 1.35.0

2026-09-04

Stop sending user credentials on cross-origin requests. createApiClient attached the Authorization header (or credentials: 'include' in cookie/BFF mode) to every request, including the absolute URLs paywalls.get forwards verbatim — so a paywall URL pointing at a foreign origin received the reader's token. The auth middleware now compares the resolved request origin against the configured baseUrl origin and sends nothing identifying when they differ — any Authorization already on the request, per-call or from config.headers, is stripped and credentials are omitted; the per-user Cache-Timestamp key is withheld cross-origin for the same reason. Same-origin requests, including absolute URLs on the configured API, are unchanged.

Minor@sesamy/sesamy-js 1.127.0

2026-09-04

Let cookie-mode (BFF) clients adopt an access token handed to them out of band.

POST /auth/{clientId}/session verifies a bearer access token against the token service JWKS and sets the same HttpOnly session cookies the login callback issues. No refresh token is involved, so the session ends when the token expires; any refresh cookie from an earlier login on the browser is dropped so it cannot take over the session after that.

In sesamy-js the cookie plugin now implements setToken() by calling that endpoint, so a #access_token= URL fragment (deep links from native apps, email links) signs the visitor in under useHttpCookies as it already did under the Auth0 flow. The fragment handler is awaited during init so the session exists before READY fires, and the token is scrubbed from the URL before the exchange starts.

FixedCreating API keys

2026-09-03 · Management API

POST /management/api-keys no longer fails with 503. A key that asks for a scope that does not exist fails with the missing scopes named.

ChangedPaywall strategy execution fails closed

2026-09-03 · Client API

POST /paywalls/strategies/{strategyId}/execute answers 404 for an unknown strategy and 503 for any other failure. It never succeeds without a paywall to show.

Older package releases ​

Package releases from before 2026-09-03 are in each package's full changelog:

Next Steps ​

Released under the MIT License.