Get your API key
Where your Pushary API key comes from, what it looks like, and how to rotate it
Your API key connects your agent to your Pushary account. A key is created for you automatically when you sign up, so most people never make one by hand.
Where your key comes from
When you sign up and finish onboarding, Pushary creates your notification channel and your first API key in one step (it is named "MCP API Key"). The setup screen shows a ready to run command with the key already filled in.
If you need the key later, copy it from your dashboard:
Settings > API keys at pushary.com/dashboard/agent/settings. Click Create Key, give it a name like "Claude Code", and copy it.
What a key looks like
pk_1a2b3c4d5e6f7a8b9c0d1e2f.3a4b5c6d...A pk_ prefix, a dot, then a long secret. Treat the whole thing as a password. It grants full access to your agent notifications, so do not commit it to git or paste it in public.
The full key is shown only once, when it is created. Pushary stores only a hash of it. If you lose it you cannot recover it. You create a new one and stop using the old one.
The setup command saves the key for you, so you do not have to keep a copy by hand. If you copy a key from Settings, store it somewhere safe right away.
Using your key
- The CLI saves it automatically:
npx @pushary/agent-hooks@latest setup(orsetup --key pk_xxx.xxxto skip the paste prompt). - For MCP or REST connections, send it as a Bearer token:
Authorization: Bearer pk_xxx.xxx.
Rotating a key
There is no in-place rotate. To rotate:
- Create a new key in Settings.
- Update your agents to use the new key (re-run setup, or paste it).
- Revoke the old key. Revoking is immediate and cannot be undone.
You can keep several keys active at once, so a clean approach is one key per machine or per agent. That way revoking a single device is easy.