Skip to main content
The Encore Web SDK (@encorekit/web-sdk) presents targeted offers in your web app. A complete integration is three calls:
That is the whole flow. Claiming opens the advertiser in a new tab inside the claim gesture, and the SDK renders nothing afterward; there is no second call to make. See The Claim Flow.
New to the SDK? Start with the Web Quickstart. This section is the per-method contract reference.

Initialization

configure()

Initialize with your publishable key; set logLevel

User identity

identify()

Attach your stable user id (replaces the auto-generated anonymous UUID)

setUserAttributes()

Merge user attributes for offer targeting

reset()

Clear local SDK state on logout; generates a fresh anonymous id

Offer presentation

show()

Present the offer carousel; resolves a ShowResult carrying the claim payload

placement()

Named placements with per-presentation use case, copy, and appearance

isClaimEnabled

Turn off the claim call to action while still showing the offer

onStrictUnlockVerified()

Strict mode only: fires when the advertiser postback confirms a claim

Errors

EncoreError, error codes, and the never-rejects contract

Utility getters

Entitlements are server-side

The SDK exposes no client-side entitlement checks; real access is server-authoritative. Verify a user’s entitlements from your backend via Encore’s HMAC-authenticated server-side entitlements API, which reflects conversions verified on Encore’s side, asynchronously.