Secureflow-api-rate-limiter

Friendly, production-ready API rate limiting with authentication, usage tracking, and simple SDK integration.

Fast setup JWT + API key Dashboard + metrics

Quick Start

Create an account, then call protected endpoints with your API key.

1) Register

curl -X POST /auth/register \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]","password":"your_password","tier":"free"}'

2) Test protected data

curl "/data?api_key=YOUR_KEY"

3) Check usage

curl "/usage?api_key=YOUR_KEY"
Tip: For local usage, keep everything on the same host and load the SDK from /sdk.js.

Detailed cURL Guide

Follow these exact steps to get started using terminal commands:

1. Register User

curl -X POST https://editorials-scanners-profession-britannica.trycloudflare.com/auth/register   -H "Content-Type: application/json"   -d '{"email":"[email protected]","password":"Test12345"}'

Note: You can change the email and password. Use your actual backend URL. This returns an access_token, organization_name, refresh_token, and user_id.

Note: You can change the email and password. This returns an access_token, organization_name, refresh_token, and user_id.

2. Create API Key

curl -X POST https://editorials-scanners-profession-britannica.trycloudflare.com/auth/create_api_key   -H "Authorization: Bearer PASTE_TOKEN_HERE"   -H "Content-Type: application/json"

This returns your api_key with default limits (100 requests per 60 seconds).

Security Note

Never share your API key publicly. Treat it like a password.

Quick Links

Endpoints

EndpointMethodDescription
/GETAPI info JSON
/dashboardGETHuman-friendly docs UI
/data?api_key=KEYGETProtected sample endpoint
/usage?api_key=KEYGETCurrent usage limits
/api/metricsGETRealtime counters
/sdkGETSDK setup web page
/sdk.jsGETSDK JavaScript file
/sdk/checkPOSTSDK rate-limit check
/sdk/trackPOSTSDK request tracking

Auth & Admin

EndpointMethodAuth
/auth/registerPOST-
/auth/loginPOST-
/auth/refreshPOST-
/auth/create_api_keyPOSTJWT

Pricing & Rate Tiers

TierRequests / MinutePricing
Free5 requests / min$0 (self-hosted)
Basic20 requests / min$10/mo
Enterprise1,000 requests / min$50/mo

For upgrades and payments, contact: [email protected]