ExtensionsBuiltByBit
Setup
Connect BuiltByBit so purchases issue and link licenses automatically.
BuiltByBit connects Kora to your BuiltByBit resources. When someone buys, Kora issues a license and links it to the buyer, so your customers are licensed the moment they check out.
This extension uses core when present. Every setting is listed on the
Configuration page, and the endpoints are on the
API Reference.
Set it up
- Add your API token. Put your BuiltByBit API token in
BUILTBYBIT.API_TOKEN. It is what lets the poller read your sales. - Map your resources. For each resource you sell, add an entry to
BUILTBYBIT.RESOURCESwith itsRESOURCE_ID, the KoraPRODUCTit maps to, and anyADDONSto grant. - Add the webhook (optional, for real time). In the resource's BuiltByBit settings, point a
webhook at
https://your-kora-host/api/builtbybit/webhookand set the same secret inBUILTBYBIT.WEBHOOK_SECRET. - Pick a claim mode (see below).
Restart Kora after editing the config.
How purchases become licenses
The CLAIM.MODE setting decides what happens on a new purchase:
auto-link(default): Kora issues a license and links it to the buyer's Kora user right away.unclaimed-key: Kora issues an unclaimed key with a redeem code. The buyer redeems it later, and Kora links the license to them. Redeem throughPOST /api/builtbybit/claimon the API Reference.
Staying in sync
Kora keeps up with BuiltByBit two ways, and both share the same idempotent ingest, so a purchase is never handled twice:
- A poller reconciles recent purchases every
POLL.INTERVAL. - The webhook delivers purchases in real time.
On first run, POLL.INITIAL decides whether Kora starts from the latest purchase or backfills
all of them.

