Managing keys
Create and revoke keys in your dashboard under Developers → API keys. For security, keys can’t be created, listed or revoked with an API key; only a signed-in dashboard user can do it.- The full key is shown once, when you create it. LuminPay stores only a hash.
- Revoked keys stop working immediately.
- To rotate a key, create the new one, deploy it, then revoke the old one.
Limit what a key can do
When you create a key you can limit it. A limit is checked on every request, and a request outside it is refused.
Set the limits in your dashboard under Developers → API keys. A refused request returns
401 or 403 with a message such as:
This API key can only be used from its allowed IP addresses.This API key is read-only. It cannot create or change anything.This API key has expired. Create a new key in the dashboard.