Skip to main content

Endpoints

All under https://api.kaleidr.com/inference-api/b2b/v1/. Authenticate with the platform key (auth & scopes). Streaming endpoints return text/event-stream (wire contract).

Chat (ai scope)

MethodPathBodyReturns
POST/chat/control/stream{ messages[], location?, map_zoom?, lang?, session_id? }SSE
POST/chat/summary/stream{ type: "poi" | "building", … }SSE
POST/chat/button/streampopup-chat bodySSE
POST/chat/control/route{ places[], profile, raw_query }JSON route
GET/retrieval/poi/enrich?lat&lon&name&category&…JSON

Design (design scope)

MethodPathBodyReturns
POST/design/analyzedataset sampleJSON recommendation (metered)
POST/design/apply-directparsed dataset + rolesJSON partial MapSpec
GET/design/stylesstyle catalog
GET/design/samplesworked-sample catalog
GET/design/themestheme-pack catalog

Example

curl -N https://api.kaleidr.com/inference-api/b2b/v1/chat/control/stream \
-H "X-Api-Key: kld_sk_live_…" \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{"messages":[{"role":"user","content":"cafes near the Louvre"}]}'

No / bad key → 401. Valid key without the route's scope → 403 (insufficient_scope). Over quota → 429. See Errors.