Skip to Content

API overview

Base URL, authentication, and how this reference is organized — read this before your first request.

Everything in Kejue Voice is a resource under one base URL:

https://api.kejue.co/v1

Authenticate every request with a Bearer API key, add an Idempotency-Key to every POST, and branch on error.code when something fails:

curl --fail-with-body "https://api.kejue.co/v1/agents" \
  -H "Authorization: Bearer $KEJUE_API_KEY"
ConventionThe short versionDetails
AuthenticationAuthorization: Bearer kejue_<prefix>_<secret>Authentication
Retry-safe createsEvery POST requires Idempotency-KeyIdempotency
ErrorsOne envelope, stable code, per-code retry guidanceError codes
PaginationFollow next_cursor until nullPagination
ConcurrencyETag + If-Match on race-sensitive writesConditional writes
Rate limits600 requests/key/minute; honor Retry-AfterRate limits

How this reference is organized

The sidebar follows the way you build: Agents and their catalogs first, then Flows, Calls and telephony, Campaigns and outbound, Tools and webhooks, Evals, analytics, and finally workspace governance. Every page is generated from our reviewed OpenAPI contract, so what you see here is exactly what the API serves.

A few operator- and compliance-flavored operations (forensic call artifacts, PII break-glass decisions, capacity tuning) are left out of this sidebar to keep it scannable — they remain fully served and appear in the guides and the machine-readable contract.

Building a client or an agent?

Skip scraping these pages — fetch the contract directly:

  • openapi.json — deterministic OpenAPI 3.1, including x-kejue-required-permission, x-kejue-idempotency, and status-keyed x-kejue-error-codes on every operation. The matching x-sonus-* annotations remain available for existing tooling.
  • openapi.yaml — the byte-exact canonical contract.
  • error_catalog.json — every error code with statuses, retry class, and details shape.
  • llms-full.txt — the entire authored documentation in one request.

Postman downloads

Import the public request collection and choose the production environment or on-prem environment. Add an API key locally; the downloadable environments contain no credentials. The existing download filenames are retained for compatibility.

On this page