The full endpoint reference is rendered live, in sync with the deployed API, by Scalar at:Documentation Index
Fetch the complete documentation index at: https://docs.kash.bot/llms.txt
Use this file to discover all available pages before exploring further.
Production: /v1/docs
Interactive reference for production. Try requests directly from the browser.
Staging: /v1/docs
Same UI, against Base Sepolia. Safe to experiment.
What’s in the spec
Every endpoint is documented with:- Path, method, summary, description
- Required scope and auth scheme
- Request parameters, query, body schemas (Zod-derived JSON Schema)
- Response schemas for each status code (
200,201,202,304,4xx,5xx) - The full
application/problem+jsonenvelope on every error response - Webhook payload schemas under the OpenAPI 3.1
webhookssection
Endpoint groups
The full surface, grouped by domain:Markets
GET /v1/markets— list markets (cursor-paginated, filterable)GET /v1/markets/{id}— single market detailGET /v1/markets/{id}/quote— on-chain price quote (buy or sell)GET /v1/markets/{id}/predictions— recent trades against a market
Trades
POST /v1/trades— create a trade (201immediate,202for high-value)POST /v1/trades/{id}/confirm— release a high-value trade with the one-time tokenGET /v1/trades— list your tradesGET /v1/trades/{id}— single trade detail
Portfolio
GET /v1/portfolio— smart-account address + aggregate position summaryGET /v1/portfolio/positions— per-market position detail (cursor-paginated)
Webhooks
GET /v1/webhooks/events— list webhook deliveries (cursor-paginated, filterable by status)POST /v1/webhooks/events/{id}/redeliver— replay a failed deliveryPOST /v1/auth/api-keys/me/webhook-secret/rotate— rotate the webhook signing secret
Account
GET /v1/account/usage— per-key telemetry (trades, webhooks, auth failures, latency)
Traces
GET /v1/traces/{correlationId}— walk a trade’s full event timeline
Infra meta (no auth)
GET /v1/health— liveness checkGET /v1/ready— readiness checkGET /v1/openapi.json— this specGET /v1/docs— Scalar interactive UI
Generating an SDK from the spec
The OpenAPI 3.1 spec is the contract of record. You can use any standard generator:@kashdao/sdk — it has typed errors, retry/backoff, idempotency helpers, webhook signature verification, async pagination iterators, and lifecycle hooks. See the TypeScript SDK guide.
Multi-language SDK roadmap: Python first, then Go, then Rust. Generated from the same spec.
Postman / Bruno / Insomnia
A maintained Postman collection ships with the public-API repo and tracks the spec automatically:Other client formats
Each endpoint reference page on this site renders an interactive cURL example — change parameters in place, copy the result. For collection-style usage, two formats are produced from the same OpenAPI spec at every release:- Postman collection —
Kash-API.postman_collection.json— generated viaopenapi-to-postmanv2. Import directly into Postman / Insomnia / Thunder Client. Sourced and shipped alongside each versionedopenapi/v<date>.jsonsnapshot. - Bruno collection —
.brufiles, one per endpoint, ship with the public-api artifact bundle. Bruno is a git-friendly alternative to Postman; collections live as plain text in version control.
Spec stability and versioning
The spec is the contract. Breaking changes are signalled via:X-Kash-Api-Versionresponse header on every response (currently2026-04-29)SunsetandDeprecationheaders (RFC 8594) on routes scheduled for removalinfo.versionbump in the spec itself- A 12-month notice period for breaking changes; multiple versions run in parallel during transitions
Deprecation: true and Sunset: <date>, you have until that date to migrate.