Bearer tokens
Every request needs anAuthorization header with your API key:
401 Unauthorized.
Creating an API key
Sign in to the dashboard
Visit pullstory.com/dashboard and sign in with GitHub.
Open API Keys
Navigate to pullstory.com/dashboard/api-keys.
Click 'Create key'
Give it a descriptive name (e.g. “CI pipeline” or “Claude Code MCP”). The full secret is shown only once — copy it immediately.
Key prefixes
| Prefix | Environment |
|---|---|
ps_live_ | Production |
ps_test_ | Sandbox (coming soon) |
Permissions
Every key is scoped to your user account and respects the same plan limits as the web dashboard. A key can:- Create and read pull stories for any repo you have GitHub access to
- Read your usage and profile
- Manage your other API keys
Revoking a key
Revoking happens instantly — any in-flight request using that key will fail on the next call.Rotating keys
There’s no forced rotation, but best practice:- One key per integration (Claude Code MCP, CI, internal scripts)
- Rotate every 90 days for production keys
- Rotate immediately on team member departure
Next steps
Quickstart
Make your first authenticated request.
MCP setup
Wire the API into Claude Code.