Skip to main content
Official backend SDK for Jaza prepaid / metered billing.

Initialize

Constructor is { secretKey, publicKey } — not { apiKey }.

Methods

Errors throw JazaError with statusCode, code, and raw.

Create a customer

Mint a client session

See Handshake.

Consume credits

Variable usage (e.g. AI tokens):
Raw amount without feature attribution:

Webhooks

See Webhooks. Also exported: constructEvent, WEBHOOK_EVENT_TYPES.

Read balance / advanced top-up

Next steps