SDKs and tools
All endpoints are HTTPS + JSON and can be called without an SDK. The SDKs handle idempotency key generation and reuse, retries, typed errors and webhook signature verification.
| SDK | Package | Runs in | Credential | Use |
|---|---|---|---|---|
| Browser SDK | @kuvex/web | Browser | Browser session token (kvs_) | Create payments, use peripherals, receive realtime events from a page |
| Server SDK | @kuvex/node | Node.js server | Secret key (sk_) | All server endpoints, webhook verification, store hosts |
| Local bridge | @kuvex/web/local | Terminal WebView | Application grant | Integration mode 3 |
Current version for all: 1.1.0.
Browser SDK
<script src="https://api.kuvex.com/sdk/web/1.1.0/kuvex.js"></script># npm-compatible archive; package name @kuvex/web
npm install https://api.kuvex.com/sdk/web/1.1.0/kuvex-web-1.1.0.tgzPages use only a kvs_ browser session token issued by your server; the SDK rejects sk_ keys. Usage: Quickstart.
Server SDK
npm install https://api.kuvex.com/sdk/node/1.1.0/kuvex-node-1.1.0.tgzconst { Kuvex } = require('@kuvex/node');
const kuvex = new Kuvex(process.env.KUVEX_SECRET_KEY);
const payment = await kuvex.payments.create(
{ terminal_id: 'KV100023', amount_cents: 3000 },
{ waitForResult: true }
);| Capability | Description |
|---|---|
| Idempotency | Generates idempotency keys and reuses them on retry |
| Errors | Typed errors carrying the error code |
| Webhooks | Verifies signatures over the raw request bytes |
| Result wait | waitForResult polls the payment until it is final |
kuvex.hosts.* | Store host registration, pairing, listing and revocation (server side, since 1.1.0) |
KuvexHost | Store host side: signs with the host private key to obtain and renew host tokens, exposing only host-token endpoints (since 1.1.0). See Companion mode |
Local bridge
For authorized sandbox WebViews on the terminal; not yet available in live mode. Ordinary browsers use the browser SDK.
const connect = require('@kuvex/web/local');
const local = await connect({ transport: 'local' });
// CDN: /sdk/web/1.1.0/kuvex-local.js, then Kuvex.connect({ transport: 'local' })Persist the order's idempotency key before creating a payment. After a lost response or page reload, query with getPaymentByRequest(originalKey); if nothing is found, treat the outcome as unknown. Never switch channels or create a new transaction. API: Local JS SDK.
OpenAPI description
https://api.kuvex.com/openapi/v1.json: OpenAPI 3.1 description of all public endpoints, from which the official SDKs are generated. Use it to generate clients in other languages or to import into Postman or Insomnia. Internal endpoints (operations, device, processor) are not included.
Version manifest
https://api.kuvex.com/sdk/manifest.json: permanent URL and SHA-256 checksum of every published SDK file. Use it to pin versions, verify downloads, or set Subresource Integrity on <script> tags. Published files never change.
AI coding assistants
Plain text for AI coding assistants:
| URL | Contents |
|---|---|
https://developers.kuvex.com/llms.txt | Plain-text API index |
https://developers.kuvex.com/llms-full.txt | API reference and all guides in one plain-text file |
Any page URL + .md | The page's Markdown source, e.g. https://developers.kuvex.com/companion.md |
The read-only MCP connector lets AI assistants read merchants and locations (by invitation; it cannot operate terminals).
Support: hello@kuvex.com