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/v1Authenticate 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"| Convention | The short version | Details |
|---|---|---|
| Authentication | Authorization: Bearer kejue_<prefix>_<secret> | Authentication |
| Retry-safe creates | Every POST requires Idempotency-Key | Idempotency |
| Errors | One envelope, stable code, per-code retry guidance | Error codes |
| Pagination | Follow next_cursor until null | Pagination |
| Concurrency | ETag + If-Match on race-sensitive writes | Conditional writes |
| Rate limits | 600 requests/key/minute; honor Retry-After | Rate 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, includingx-kejue-required-permission,x-kejue-idempotency, and status-keyedx-kejue-error-codeson every operation. The matchingx-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.