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/..." }