Authentication
API keys, one-time reveal, rotation, and why keys must stay on the server.
API keys (pulse_sk_…)
Pass the secret on every request:
Authorization: Bearer pulse_sk_<64 hex chars>Keys are organization credentials. They are not tied to a user's permissions. Attribution is createdByUserId plus apiKeyId in logs.
| Event | What happens |
|---|---|
| Create | Secret shown once. Store it in your secret manager. |
| Rotate | Issues a new secret on the same key immediately. The previous secret stops working. |
| Revoke / expire | Requests return 401 with error.code = "unauthorized". |
| Missing scope | 403 with error.code = "forbidden". |
lastUsedAt updates at most once per minute per key. Request count increments on every authenticated call.
Scopes
| Scope | Grants |
|---|---|
clients.read | GET /v1/clients, /v1/clients/{id} |
clients.write | POST /v1/clients, PATCH /v1/clients/{id} (and everything clients.read grants) |
assignments.read | GET /v1/assignments, /v1/assignments/{id} |
tasks.read | GET /v1/tasks, /v1/tasks/{id} |
time_entries.read | GET /v1/time-entries, /v1/time-entries/{id} |
time_entries.write | POST /v1/time-entries, PATCH /v1/time-entries/{id} (and everything time_entries.read grants) |
users.read | GET /v1/users, /v1/users/{id} |
checkins.read | GET /v1/checkin-templates, /v1/checkin-instances, /v1/checkin-responses and each /{id} |
A write scope implies the matching read scope. Requests with a missing scope return 403 forbidden. For user-delegated OAuth tokens, time_entries.write additionally requires the user to hold the timeEntries.write permission and clients.write the clientOnboarding.write permission, and checkins.read the checkins.readAll permission.
Do not use keys in browsers
Do not put API keys in frontend JavaScript. Anyone who can load the page can copy the secret from the bundle, source, or network tab. CORS on /v1 is permissive and cookie-free, so a leaked key works from any origin — that is not how the key is stolen. Server-side only (your BI tool, payroll sync, backend). For user-delegated third-party apps, use OAuth.
OAuth access tokens
Connected Apps JWTs also go in Authorization: Bearer. Effective access is token scopes ∩ the authorizing user's permissions, including client-team membership. See OAuth and App registration.