Account → API keys lists the Monitor keys of the team selected in the team switcher. These are the secrets your own systems use to report to LivePulser:
- Heartbeat ping URLs for cron job monitors. The secret is the last part of the URL, for example https://hb.livepulser.com/v1/ping/<monitor-id>/<secret>. See Cron and heartbeat monitoring.
- Resource agent keys for server resource monitors. The agent reads the key from its api_key_file. See Install the server agent.
Each key belongs to one monitor and only works for that monitor.
Shown once, stored as a hash
A key is shown in full only once, when it's generated: on the monitor's completion screen, on its monitor page, or here. LivePulser stores only a hash of it, so nobody, including LivePulser, can show it to you again. Copy it straight into your job or agent configuration, and click I've saved it once you have.
If you lose a key, rotate it to get a new one.
The key list
Filter the list with the All, Heartbeat and Resource tabs. Each key has a status:
| Status | Meaning |
|---|---|
| Active | The key is in use and accepted. |
| Activating | A new key was just generated and is being applied, which takes a few seconds. Until then the previous key still works. |
| Not set up | The monitor has no key yet. Use Generate to create one (owners, admins and members). |
| Revoked | The key was revoked and no longer works. An owner or admin can use Generate to issue a new one. |
Rotate a key
Rotate a key if it may have leaked, if someone who knew it leaves, or if you've lost it.
- On Account → API keys, find the monitor and click Rotate.
- Confirm. The current key stops working within a few seconds, and the new key is shown once. Copy it.
- Update your job or agent right away.
After rotating a heartbeat URL
Replace the URL in your cron job, script or scheduler. Until you do, pings to the old URL are rejected with 404 and the monitor will report missed runs.
After rotating an agent key
Replace the contents of the agent's key file with the new key, then tell the agent to reload it:
| Platform | Key file | Reload command |
|---|---|---|
| Linux | /etc/livepulser-agent/api-key | sudo systemctl reload livepulser-agent |
| macOS | /usr/local/etc/livepulser-agent/api-key | sudo launchctl kill HUP system/com.livepulser.agent |
| Windows | C:\ProgramData\LivePulser\api-key | sc.exe control LivePulserAgent paramchange |
If the agent reloads before the new key has taken effect, it logs that the key was rejected. Reload again a few seconds later. See Install the server agent and the Agent configuration reference.
Revoke a key
Click Revoke to stop a key working without issuing a new one. It stops working within a few seconds:
- Heartbeat: pings are rejected and no missed-ping alerts are sent until an admin generates a new URL.
- Resource: the agent is rejected and stops reporting until it gets a new key.
Revoking doesn't pause the monitor. If you no longer use a monitor, pause or delete it instead. To bring a revoked monitor back, an owner or admin clicks Generate.
Key history
History shows every change to a monitor's key: Generated, Rotated and Revoked. Changes made before key tracking started aren't listed.
Who can manage keys
| Action | Owner | Admin | Member | Viewer |
|---|---|---|---|---|
| See the key list and history | Yes | Yes | Yes | Yes |
| Generate a monitor's first key | Yes | Yes | Yes | No |
| Rotate, revoke or re-issue a key | Yes | Yes | No | No |
Members who need a key replaced should ask a team admin or owner. See Roles and permissions.
Rate limit
Key changes are limited to 20 a minute per person and 60 a minute per team. Above that you'll see:
Too many key changes. Wait a minute and try again.Keeping keys safe
- Treat a heartbeat URL like a password: anyone who has it can send pings for that monitor.
- Keep keys out of source control. Store them in your scheduler's secret settings or a file only the job can read.
- Never put a key in a status page, ticket or chat message.