Overview
Nozle API
The primary API surface atapi.nozle.app. Every request from your application hits this layer.
What it handles:
- Authentication — API key validation with publishable (
pk_) and secret (sk_) scoping - Entitlements —
can()endpoint with low-latency caching for sub-millisecond feature checks - Checkout — creates Stripe Checkout sessions and processes webhooks for subscription activation
- Margin intelligence — cost-vs-revenue analytics by customer, model, metric, and plan
- Cost models — define what each usage unit costs you
- Billing — usage-based invoicing, subscription management, and plan configuration
- Subscription management — orchestrates subscriptions with proration, upgrades, and cancellation
Stripe
Stripe handles payments. Nozle uses Stripe for:- Checkout sessions — customers enter payment details via Stripe’s hosted UI
- Webhook processing — successful payments and subscription changes trigger backend updates
- Subscription activation — when Stripe confirms a checkout, the Nozle API activates the subscription and provisions entitlements