Platform Features
Every piece you need to build, ship, and monetise an API-first product.
๐
API Key Management
Issue, rotate, and revoke API keys with one click. Keys use a 12-char prefix for fast candidate lookup, with bcrypt hash verification โ under 5ms round-trip.
- โ Unlimited keys per account
- โ Prefix + hash architecture
- โ Instant revoke with audit trail
- โ Copy-once key display
# attach your key
curl https://api.example.com/v1/data \ -H "x-api-key: mlg_abc123..."
๐
Usage Analytics
Per-key request counts bucketed by day, endpoint breakdown, and a 7-day sparkline chart. Understand your usage before your users complain.
- โ 30-day event TTL with MongoDB
- โ Endpoint + method breakdown
- โ Real-time dashboard updates
- โ CSV export (Pro)
# query usage via API
GET /api/v1/analytics/usage
Authorization: Bearer <jwt>
โ { day: "2024-01-15", count: 412 }๐ณ
Stripe Billing
Checkout sessions, billing portal, and webhook handling โ all wired. Add a price ID and you have a functioning subscription SaaS in minutes.
- โ Checkout + portal sessions
- โ Webhook signature verification
- โ Plan-level rate enforcement
- โ Subscription lifecycle events
# create a checkout session
POST /api/v1/subscriptions/checkout
Authorization: Bearer <jwt>
โ { url: "https://checkout.stripe.com/..." }