Skip to main content

View on GitHub

Source, releases, and issues.

Install

Requires Node.js 18+ (uses the built-in fetch). Fully typed — no @types package needed.

Initialize

Get your key from Settings → API keys in the dashboard. Use a kua_test_… key to work against sandbox data.

Examples

Errors

Non-2xx responses throw a KuaError with a stable code and the HTTP status:

Webhooks

Register endpoints and verify deliveries against the raw request body:
verifySignature rejects deliveries older than 5 minutes by default (replay protection); tune with { toleranceSeconds }. See verifying signatures.