Skip to main content
Send your API key as a Bearer token on every request:

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.
Give each system its own key with the smallest limits that work: a reporting tool gets a read-only key, and your payment server gets a key locked to its IP address.
Your API key can create charges and read your payments. Keep it on your server. Never put it in a website, mobile app, or public repository. If a key leaks, revoke it straight away.

Authentication errors