Product Guide

Managing API Keys

Create and control secure access keys for browser tracking, server communication, and event delivery.

API keys define how your websites and backend systems connect to OneLence.

Each key type serves a different operational purpose. Managing them correctly ensures accurate signal collection and secure data flow.

Key Types Overview

OneLence provides three types of API keys:

Publishable Keys

Used for browser-side tracking through the SDK. Each website requires its own publishable key to ensure clean attribution and signal separation.

Secret Keys

Used for server-to-server event transmission.

These keys should only be stored in secure backend environments.

Webhook Keys

Used for validating incoming webhook notifications and integration callbacks.

Create A Publishable Key

Each newly added website must be connected using a dedicated publishable key.

  1. Navigate to Settings → API Keys. API setting page
  2. Select Publishable in the key type selector. Create a new publishable API key
  3. Enter a clear name (for example, the website domain).
  4. Click Create.
  5. Copy the generated key immediately. Copy the new generated API key

For security reasons, the full key value will not remain visible** after refreshing or leaving the page.

Use this key during the integration process described in the SDK setup guide to complete the website connection.

Enable Or Disable Existing Keys

Keys can be activated or paused at any time. Enable API keysDisable API keys

  • Locate the key in the Created Keys list.
  • Click Disable to stop its usage.
  • Click Enable to reactivate the key when needed.

Disabling unused keys helps maintain tracking clarity and improves workspace security.