Platform · Stage 1 · Epic F

Developer portal

Keys, credits, and plan name. Live TKX prints stay on the public Index API. Pricing is TO CALIBRATE.

Not signed in

Quickstart

Index reads stay on the Index Worker. This portal only manages keys and shows credits. There is no Analysis API.

Cite the TKX

When you publish a number from the Index API, cite it as: Source: Cambent TKX (tkx.cambent.ai), as-of the response asOf. Scoring v0.2, construction v0.3, baseline 100 = 2026-08-04.

OpenAPI

Machine-readable Index spec: /openapi.json on the Index Worker (not this Worker). Human docs: / and /docs there. Markdown: docs/platform/quickstart.md.

Auth

curl

curl -sS "$INDEX_HOST/v1/index/tkx"
curl -sS -H "Authorization: Bearer $CAMBENT_KEY" "$INDEX_HOST/v1/index/tkx/history?interval=day"
curl -sS -H "Authorization: Bearer $CAMBENT_KEY" "$PLATFORM_HOST/v1/me"

Python

import os, json, urllib.request
host = os.environ["INDEX_HOST"]
print(json.load(urllib.request.urlopen(host + "/v1/index/tkx")))
req = urllib.request.Request(host + "/v1/index/tkx/history?interval=day")
req.add_header("Authorization", "Bearer " + os.environ["CAMBENT_KEY"])
print(json.load(urllib.request.urlopen(req)))

JavaScript

const host = process.env.INDEX_HOST;
const print = await fetch(host + "/v1/index/tkx").then((r) => r.json());
const hist = await fetch(host + "/v1/index/tkx/history?interval=day", {
  headers: { Authorization: "Bearer " + process.env.CAMBENT_KEY }
}).then((r) => r.json());

Replace INDEX_HOST with the Index Worker URL. Replace PLATFORM_HOST with this Worker. Pin wrangler 3.114.15 on deploy examples. Confirm the Cloudflare project name before any platform deploy.

Live TKX widget

The widget is served by the Index Worker. It fetches the current public print (GET /v1/index/tkx). No key. Attribution and a link back to Cambent are built in.

<script src="$INDEX_HOST/widget.js" data-series="tkx" async></script>
<script src="$INDEX_HOST/widget.js" data-series="tkx,tkx-open,tkx-frontier" async></script>
<iframe src="$INDEX_HOST/widget?series=tkx" title="Cambent TKX" style="border:0;width:100%;max-width:360px;height:212px;" loading="lazy"></iframe>

Markdown: docs/platform/widget.md. API terms placeholder: /developers/terms.