Skip to main content
The Developer API is OpenAI-compatible. Point any OpenAI SDK at https://api.corebasehq.com/api/v1, pass a cb_live_ token, and it just works — chat completions stream in the standard chat.completion.chunk SSE format. The model has access to your tenant’s data sources, Unified Context, and access policies.

Base URL

For self-hosted deployments, replace with your CoreBase domain.

What you can do

Chat completions

OpenAI-compatible streaming chat. POST /api/v1/chat/completions.

Sources

List the data sources your agents and chat can reach. GET /api/v1/sources.

Widget usage

Per-end-user usage and live quota counters for your embedded widget — build partner dashboards on it. GET /api/v1/usage.

Plan

Check the subscription tier attached to your token’s organization.

Quick example

Using the official OpenAI SDK:
Or with curl:

LLM model

You bring your own LLM provider API key — Anthropic, OpenAI, Gemini, Groq, Mistral, Azure OpenAI, OpenRouter, or Ollama. See LLM keys for the panel setup. The model field in your request is accepted but ignored; the actual model is whichever provider key you’ve marked as default.

Versioning

The Developer API is versioned at the URL prefix:
We avoid breaking changes within a major version. When v2 ships, v1 stays online for at least 12 months with deprecation warnings in the Sunset header.

Rate limits

Each cb_live_ token has its own per-minute, per-day, and per-month limits configured at issuance. Hit a limit and you get 429 Too Many Requests with Retry-After.

Errors

The body is JSON for any non-2xx response. 4xxs carry a stable detail.error string you can branch on; 5xxs carry a request ID for support.

Next

Authentication

Create tokens, scope permissions, rotate secrets.

Chat endpoint

Full request / response spec for POST /api/v1/chat/completions.