Skip to main content

⚙️ API Keys

Create and manage API keys that allow external systems (e-commerce platforms, third-party apps) to access your LKG for Billing product catalog and data.

Navigate to Administration → API Keys (within Settings).

note

API key management requires External API Access to be enabled in Settings.


Overview

API keys are credentials that authorise external applications to call your business's API endpoints. Each key can be scoped to test or live mode, rate-limited, and restricted to specific origins.


Table Columns

ColumnDescription
NameDisplay name for the key
ModeTest or Live
KeyMasked key — shows last 4 characters only (e.g., ••••••••abcd)
Rate LimitMaximum API requests per minute
Allowed OriginsDomains permitted to use this key
StatusActive or Inactive
ExpiryKey expiry date (if set)
ActionsCopy, regenerate, toggle active, revoke

Creating an API Key

  1. Click + New API Key
  2. Fill in:
FieldRequiredDescription
NameYesDescriptive label (e.g., "Shopify Integration")
ModeYesTest (sandbox) or Live (production)
Rate LimitNoMax requests per minute (leave blank for no limit)
Allowed OriginsNoComma-separated domains allowed to use this key (e.g., shop.example.com)
DescriptionNoNotes about what this key is used for
  1. Click Save
  2. The full key is displayed once — copy it immediately
danger

The full API key is shown only once at creation. If you lose it, you must regenerate the key (which immediately revokes the old one).


Copying a Key

Click the Copy icon on a row to copy the masked key. To get the full key again, use Regenerate.


Regenerating a Key

  1. Click Regenerate on the key row
  2. Confirm — the old key is immediately revoked
  3. The new full key is displayed once — copy it immediately

Toggling Active / Inactive

Click the Active toggle to enable or disable a key without deleting it. Inactive keys are rejected by the API.


Revoking a Key

Click Revoke to permanently delete a key. This cannot be undone. Any integration using the revoked key will immediately lose access.


Security Best Practices

  • Use separate keys for test and production environments
  • Restrict Allowed Origins to only the domains that need access
  • Set Rate Limits to prevent abuse
  • Rotate keys periodically using Regenerate
  • Revoke keys that are no longer in use