Documentation Index
Fetch the complete documentation index at: https://docs.cekura.ai/llms.txt
Use this file to discover all available pages before exploring further.
The Python SDK ships in the same package as the CLI. If you haven’t installed or authenticated yet, follow the Overview first.
Quickstart
Sync client
Async client
For application code that’s already async (FastAPI, aiohttp, anyio, etc.), useAsyncCekura:
Cekura you can do with await AsyncCekura(...).
Resource map
The client exposes one attribute per top-level resource. Each provides typed methods (list, get, create, update, delete) plus resource-specific actions:
dir(client) in a REPL or help(client.agents) to discover everything available.
Common patterns
Pull last 50 production calls
Pull last 50 production calls
Trigger an evaluation and poll until complete
Trigger an evaluation and poll until complete
Bulk-update scenarios
Bulk-update scenarios
Create a metric programmatically
Create a metric programmatically
Configuration
The SDK resolves configuration in this order (first match wins):- Explicit argument —
Cekura(api_key=..., api_url=...) - Environment variable —
CEKURA_API_KEY,CEKURA_API_URL - Config file —
~/.cekura/config.toml(managed by the CLI) - Defaults —
https://api.cekura.ai
cekura auth login once and any Python script on the same machine picks up the OAuth session automatically — no API key needed.
Troubleshooting
`Authentication failed`
`Authentication failed`
- OAuth path: the saved session expired. Re-run
cekura auth login. - API key path: confirm
CEKURA_API_KEYis set in the process environment, or passCekura(api_key=...)explicitly. Some endpoints (e.g.billing.info) require an org-scoped API key — OAuth bearer is not sufficient.
Rate limited (429)
Rate limited (429)
The platform enforces per-plan rate limits. Add backoff between calls, batch where possible, or upgrade your plan. Check usage in Settings → API Usage.
Pagination
Pagination
List endpoints return a paginated response shape:
{"count": N, "next": url, "previous": url, "results": [...]}. Pass page= and page_size= to walk pages, or check results length to know when to stop.References
CLI guide
Use the same operations from your terminal or CI pipeline.
API Reference
Full endpoint documentation for every resource the SDK exposes.