Content SDK overview
19 documented methodsContent SDK is the CMS surface of BetChain Core. It reads menus, banners, promotions, loyalty data and SEO structures from the Betchain CMS over HTTP, for web, mobile and native clients.
What you can build
Menus, banners & popupsNavigation menus, banners, popups, logos and stories per platform and version.
Promotions & bonusesPromotion lists and categories, bonus lists, bonus requests and loyalty benefits.
Exchange items & formsShop exchange items, dynamic forms and notification content.
SEO structuresSEO entries and lists for search-friendly landing and category pages.
How it works
Content SDK talks to the CMS over HTTP. Initialize it once with your API URL, version and platform, then read data with the useContent hook or call the methods directly.
Your React appcomponents + hooks
initializeinitCMSContent()
Content SDKinitCMSContent + useContent
requestuseContent · direct call
TransportHTTP
responsetyped payload
Betchain CMScontent services
Choose your call pattern
Every documented method is reachable in more than one way. Pick the pattern that matches how often the data changes.
What the SDK guarantees
Typed end to endPass the method reference to useContent and the returned data is typed from that method’s response declaration.
Platform and version awareInitialization takes a platform and a CMS version, so the same code can serve desktop and mobile clients from one content tree. See the quickstart
Errors come back as dataEvery call resolves with hasError, status and message next to the payload rather than throwing. Error codes
Private distributionThe package is published to the private BetChain registry (sdk.betconstruct.com/npm). You need an authenticated .npmrc before it will install. Installation
Requirements
Package@softconstruct/betchain-core-client
Version3.0.11
React19.x (peer dependency)
Module formatESM only
Entry points/content · /hooks
Registrysdk.betconstruct.com/npm
Next steps
Was this page helpful?