Documentation

Documentation

API keys

Create, scope, rotate and revoke the keys that authenticate programmatic access.

Last updated October 18, 2026

How do I create a key?

Open Integrations, then the API tab. Give the key a descriptive name and copy it. This dialog creates a read-only key with monitors:read. For write or run access, an Owner or Admin can use the session-authenticated POST /api/integrations/keys endpoint with explicit scopes, as shown in the API reference. The full key is shown once at creation and never again: we store only a SHA-256 hash and a short non-secret prefix, so we cannot show it to you later and neither can anyone who reaches our database.

Every plan can create API keys: 1 on Free, 3 on Starter, 10 on Team.

How long do keys last?

Keys expire 90 days after creation by default, and you can set up to 365. An expired or revoked key is rejected outright. Each key records a last-used timestamp, which is the fastest way to find keys nobody needs any more.

Short expiry is deliberate. A key that never expires is a credential you will still be trusting in three years, held by a system you have forgotten, in a repository you no longer read.

How do I authenticate a request?

Send the key in X-API-Key to /api/integrations/monitors. The key needs monitors:read to list or read monitors, monitors:write to create, update, pause, resume or delete, and monitors:run to run checks. Other authenticated /api routes use a session token, not an API key.

Listing monitors with an API key
curl -sS https://pagelantern.com/api/integrations/monitors \
  -H "X-API-Key: $PAGELANTERN_API_KEY" \
  -H "Accept: application/json"

What do I do if a key leaks?

Revoke it first, then investigate. Revocation is immediate and does not require the key itself. Create a replacement, deploy it, and only then go and find out how the old one got out.

Tell us at security@pagelantern.com if you believe the exposure involved PageLantern rather than your own systems. Successful monitor changes and manual runs request an audit entry with the key name, client IP and user agent. Read requests update the key’s last-used timestamp but do not create an audit entry.