Managing API keys
API keys authenticate requests to the REST API. Manage them from Settings → API Keys. This page covers the day-to-day lifecycle; for how keys are validated, see Authentication.
Create a key
- Go to Settings → API Keys and choose Create key.
- Give it a name that describes its purpose (e.g. "CI publish script," "Zapier integration"). Naming helps you identify and revoke the right key later.
- Optionally set an expiry date.
- Copy the key value immediately — it's shown only once.
post.buzz stores only a SHA-256 hash of each key, so if you lose the value you must create a new key. There's no way to recover it.
Use the key
Store the key in an environment variable or secret manager — never in code that's committed to version control.
export POSTBUZZ_API_KEY="gx_live_..."
curl https://<your-api-origin>/api/v1/posts \
-H "Authorization: Bearer $POSTBUZZ_API_KEY"
Rotate a key
To rotate (replace) a key without downtime:
- Create a new key.
- Update your integration to use the new key.
- Once confirmed working, revoke the old key (or set
isActive: false).
Deactivate vs. delete
- Deactivate (toggle
isActiveoff) — keeps the key record but blocks all requests. Useful for temporary suspension while you investigate. - Delete — removes the key entirely. Use when you're sure it's no longer needed.
Monitoring usage
Each key records a lastUsedAt timestamp, updated on every request. Review it
periodically to spot dormant keys (good rotation candidates) or unexpected
activity.
Scope and safety
- Keys are scoped to your user. They can act on any account you can access — including accounts shared with you via an organization.
- A key can't reach another user's data.
- Treat keys like passwords. Rotate them, scope them narrowly, and revoke any you no longer use.
Related
- Authentication — the technical details.
- Examples — using a key in requests.
- Security — overall account hardening.