New API Key
This guide walks you through creating an API key in LightMesh. API keys authenticate the LightMesh API and CLI (and agents such as the Windows Discovery Agent).
When you choose a Role for the key, you scope what that key can do. Prefer the narrowest role that fits the integration.
API key roles
| Role | What it can do |
|---|---|
| Owner (full access) | Full API access, including org/admin-level operations. Use only when an integration truly needs unrestricted access. |
| Administrator | Full data and admin-style API access, similar to an Administrator user (cannot elevate or manage Owners the way an Owner can). |
| Contributor | Create, read, update, and delete IPAM data via the API. Cannot manage users or role assignments. Good default for most scripts and automations. |
| Reader (read-only) | Read-only API access. Use for reporting, SIEM queries, or dashboards that must not change data. |
| Discovery Agent | Narrow role for agent sync only (DHCP, ping sweep, and related agent traffic). Use this for the Windows Discovery Agent — not Owner. (Older docs may call this DHCP Server; the product label is Discovery Agent.) |
See also Roles & RBAC for organization app roles vs API key roles.
1. Open API Keys
From the sidebar, go to Admin → API Keys.

2. Start Add API Key
Click Add API Key to open the create drawer.

3. Configure the key
Enter a Name, optionally set Custom Expiration (in days) (default is 30 days), and choose a Role.

4. Generate and save
Click Generate, copy the key somewhere safe (it is shown only once and masked after you submit), then click Create API key.

You have created an API key in LightMesh.