Self-serve keys
Customers create and revoke keys in their dashboard. Keys are shown once, then stored as peppered hashes.
A versioned /v1 REST API with self-serve bearer keys, per-key rate limits and a credit cost on each call — managed from a member dashboard your customers already understand.
SITE_PROFILE="api-product"one line picks this site typeCustomers create and revoke keys in their dashboard. Keys are shown once, then stored as peppered hashes.
Per-key rate-limit buckets protect your server and are visible in the admin.
Calls spend credits through the same ledger as the rest of the app, with plans granting the allowance.
Consistent request and error shapes on a versioned path — copy the example resource for your own.
Operators can revoke any key or block an account; blocked users' keys stop working immediately.
API_PRODUCT.md explains the endpoints and how to add a resource safely.
The customer creates a key and copies it once.
Each request sends the key as a bearer token.
The key is verified, rate-limited and the call's credits spent.
A consistent JSON envelope comes back, errors included.
Screenshots of the template running locally with sample data, on the house design. Switch SITE_DESIGN and the public pages wear any of the other designs.
SITE_PROFILE="api-product" API_KEY_PEPPER="…" STRIPE_SECRET_KEY="sk_live_…" STRIPE_PRICE_PRO_MONTHLY="price_…"
Copy the folder and run the installer — it creates the database and secrets.
php scripts/install.phpIt checks every key, extension and permission and names anything missing.
php scripts/doctor.phpNGINX + PHP on any small VPS, with the step-by-step deploy guide and nightly backups.
Only a peppered hash is stored. The full key is shown once when created; after that it can be revoked but not read back.
Yes. The /v1 example resource shows the auth, metering and response shape to copy for your own.
Per-key rate limits, credit costs per call, and operator controls to revoke keys or block accounts.
Full source, every site type, the admin, the CMS, 43 designs and the deploy guides — £49, once. Unlimited own and client projects.