Skip to main content

View on GitHub

Source, releases, and issues.

Install

Requires Python 3.9+. Typed (ships py.typed), built on httpx.

Initialize

Get your key from Settings → API keys in the dashboard. Use a kua_test_… key to work against sandbox data. Kua can also be used as a context manager (with Kua(...) as kua:) to close the connection.

Examples

Errors

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

Webhooks

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