API reference
Base URL, authentication, conventions and the public endpoint areas of the Klarety API.
The Klarety API is what the Python and the app use. Call it from any language that speaks HTTPS and JSON.
Full reference coming
A generated reference with every field is coming. Until then, this page lists the endpoint areas and the SDK pages show each call in use.
Base URL
https://api.klarety.ai/v1All requests use HTTPS with JSON bodies.
Authentication
Exchange your key for a token
curl -s https://api.klarety.ai/v1/token \
-H "Content-Type: application/json" \
-d "{\"api_key\": \"$KLARETY_API_KEY\"}"The answer has access_token, token_type (Bearer) and expires_in (3600 seconds).
Send it on every request
curl -s https://api.klarety.ai/v1/account -H "Authorization: Bearer $TOKEN"Exchange the key again before the hour is up.
See Authentication for keys and rotation.
Conventions
Errors
Every failure is an RFC 9457 application/problem+json body with type, title, status, detail and instance. See Errors.
Pagination
List endpoints return one page and a cursor. Pass it back for the next page; an empty or missing cursor means the last page. Its name depends on the endpoint (next_cursor or next, sent back as cursor or after). The SDK pages for you.
Safe retries
POST /v1/sqltakes astatement_id(a UUID you choose). Resending it never runs the statement twice; it returns the answer, or"state": "running"to ask again atGET /v1/sql/statements/{statement_id}.POST /v1/tables/{name}/rows/edittakes awrite_id. A write that already landed is answered as saved.
Sizes
Request bodies are limited to 1 MiB. Files go through upload links that last one hour.
Endpoint areas
Account and limits
SQL and Spark
Tables and schemas
Also: expectations, column docs, quality, changes, authors, erase, delete and restore under /v1/tables/{name}/..., and restores of earlier copies under /v1/restores.
Ingest and uploads
Jobs
Files and folders
Connections
Knowledge graph and search
Agents
Projects and deploys
Also: project secrets and variables, members, domains, shared ports and webhooks under /v1/projects/{project_id}/....
Next steps
- SDK quickstart to use the API from Python.
- Errors for status codes and retries.
- Limits and rate limits for what your plan allows.