pulse CLI and every REST API endpoint — with scoped API keys. Each key carries a set of permission scopes, an optional expiry date, and is stored only as a SHA-256 hash on PulseGuard’s servers. The raw key value is shown to you exactly once when you create it. If you lose it, you generate a new one.
API Key Format
Every PulseGuard API key follows this structure:pg_live_3c8a9f2b1d7e4605c92a3b8f1d6e7a4b9c2e5f08d7a3b6c1.
The pg_live_ prefix makes keys easy to identify in logs and secret scanners. Keys are 56 characters in total and carry approximately 192 bits of entropy.
Never expose your API key in client-side code, public repositories, or anywhere that isn’t a secrets manager or a secured environment variable. If a key is accidentally exposed, revoke it immediately from the dashboard.
Scopes
When you create a key, PulseGuard assigns it a comma-separated list of scopes. The available scopes are:
A key with both
read and write scopes is the default. You can issue read-only keys for observability integrations that should never be able to modify configuration.
Creating an API Key
1
Open API Keys settings
In the PulseGuard dashboard, navigate to Settings → API Keys. You’ll see a list of all existing keys with their name, prefix, scopes, last-used timestamp, and optional expiry date.
2
Click New API Key
Click New API Key and fill in the form:
3
Copy your key
After you click Create, PulseGuard displays the full raw key exactly once. Copy it to a secure location — a password manager or a secrets manager like AWS Secrets Manager, Doppler, or 1Password.
Using Your Key in API Requests
Pass your API key in theAuthorization HTTP header using the Bearer scheme:
-X POST, set Content-Type, and include a JSON body:
201 Created with the new monitor object:
Using Your Key in the CLI
Authenticate thepulse CLI by passing your key to pulse auth login:
Error Responses
The API returns standard HTTP status codes for authentication failures:
A
401 response body looks like this:
403 response for a missing write scope looks like this:
Revoking a Key
To revoke a key, go to Settings → API Keys, find the key by its name or prefix, and click Revoke. Revocation is immediate — any in-flight requests using that key will begin receiving401 responses.