Skip to content

10. API Keys

Navigation path: Sidebar → Business Settings → API Keys

API keys allow external applications — such as your Rentmy.co storefront, mobile app, or custom integration — to communicate securely with Leaper Dev. They are required to submit click events, page views, and conversions programmatically, and to initialize the Leaper Dev tracking SDK.

10.1 API Keys List View

Each key record displays:

ColumnDescription
NameA human-readable label for the key
API KeyThe key value (masked for security; click Copy API key to copy to clipboard)
ScopesThe permissions granted to this key
StatusActive or Revoked
Last UsedTimestamp of the most recent API call made with this key
CreatedDate the key was generated

10.2 Available Scopes

When creating a key, select only the scopes your integration actually needs (principle of least privilege):

ScopePermission Granted
affiliates:readRead affiliate records
affiliates:writeCreate or update affiliate records
conversions:readRead conversion data
conversions:writeSubmit conversion events
clicks:readRead click tracking data
clicks:writeSubmit click events
commissions:readRead commission data
reports:readAccess analytics report data
sdk:initInitialize the Leaper Dev JavaScript SDK on your storefront
pageviews:writeSubmit page view events

10.3 Creating an API Key

  1. Click Create Key.
  2. Enter a descriptive Name (e.g., Rentmy Production, Staging Environment).
  3. Click each scope toggle to select the permissions needed. Selected scopes appear highlighted.
  4. Click Create Key.
  5. Copy the key immediately — the full key value is shown only once. Store it securely in your application's environment variables or a secrets manager. Never paste it into publicly accessible code or documents.

10.4 Revoking or Deleting a Key

  • Revoke — Immediately disables the key so it can no longer authenticate API requests. The key record remains visible in the list with a Revoked status. Use this when a key may be compromised.
  • Delete — Permanently removes the key record from the list.

Example scenario: A developer discovers that an API key was accidentally pushed to a public GitHub repository. The administrator immediately opens API Keys, clicks Revoke on the compromised key, generates a new key with the same scopes, updates the Rentmy.co integration with the new key value, and notifies the development team.

Security best practice: Never expose API keys in client-side JavaScript, browser-accessible files, or version control systems. Rotate keys periodically and revoke any key that is no longer in use.


Released under the MIT License.