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.
- Navigate to Settings → API Keys.

- Select Publishable in the key type selector.

- Enter a clear name (for example, the website domain).
- Click Create.
- Copy the generated key immediately.

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.


- 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.
