ACCOUNT
Authentication and keys
One bearer token on every call that needs it. No signing, no OAuth, no expiry.
The header
Send your key in the Authorization header as a bearer token. The same key works over REST and MCP; there is no second kind of credential.
Keep the key on your own server or in your own client config. Anything in browser code can be read by whoever loads the page, and the key is the only thing that identifies you.
Authorization: Bearer pc_live_…What works without a key
| ACCESS | ENDPOINTS |
|---|---|
| Open, not counted | /v1/assets, /v1/topics, /v1/events, /v1/prices, /v1/bars, /v1/news, /v1/across, /v1/spell, /v1/plans, /v1/status |
| 50 answers a day per address | /v1/search up to k=10, /v1/after/{topic}, /v1/move |
| Key required | /v1/when, /v1/moment/{at}, /v1/paths, /v1/normal, and /v1/search above k=10 |
A keyless reply carries X-Taste-Left, the answers left for your address today. The count resets at 00:00 UTC.
Get a key
- Go to API keys and sign in with Google, GitHub or Microsoft. Your verified email is your account; there is no password to keep.
- Create a key and give it a name that says what will use it: a backtest, a service, an agent.
- Copy the key. It starts with
pc_live_and works straight away.
SHOWN ONCE
We show the key once and store only a hash of it. Nobody can read it again, including us. The list shows its last four characters so you can tell keys apart.
New keys are on the free plan. See Limits for what it includes, including how many keys you may hold at once.
Rotate and revoke
- Revoking a key takes effect at once, for REST and MCP alike.
- To rotate: create the new key, move your callers to it, then revoke the old one. On a plan that holds one key, revoke first, then create.
- If a key leaks or is lost, revoke it and create another. A lost key cannot be recovered.
- A revoked key stays in your list, marked revoked, until you remove it.
Errors
| STATUS | MEANING |
|---|---|
401 | No key on an endpoint that needs one, or a call larger than the keyless allowance. |
401 | The key is wrong or revoked. A bad key is refused outright; it never falls back to keyless. |
403 | The endpoint is reserved for the website itself. No API key opens it. |
429 | Too fast, or the allowance is spent. See Limits. |
Every error is JSON with a detail that says what to do next. Do not retry a 401 or 403: a key that is wrong now is wrong in five seconds.
{
"detail": "This endpoint needs an API key. Send it as
`Authorization: Bearer pc_live_…`. Keys:
https://priorcase.com/docs/authentication"
}