priorcase
priorcase

Sign in

To make a key, and to see what yours have spent.

Docs

Authentication

Send one bearer token on every call that returns results. There is nothing to sign and no OAuth flow.

The header

Authorization: Bearer pc_live_…

Keep your key on your own server. Anyone who visits can read whatever you put in browser code, and the key is the only thing that identifies you to us.

Use the same key over MCP, as the same bearer token. There is no second kind of credential and nothing to exchange first: no OAuth flow, no signing, no expiry. A key is a secret we gave you, and it works until you revoke it.

Keys

  • Create keys in your account. They work straight away.
  • We show the key once, then store only a hash of it. You cannot read it again.
  • Revoking a key takes effect immediately, for both HTTP and MCP. They read the same list.
  • If you lose a key, revoke it and create another. Nobody can recover it, including us.
  • Your plan sets how many keys you may hold at once. Hold one per thing that calls us: a backtest, a service, an agent. Then revoking one does not stop the others, and the daily usage in your account says which of them spent what.
  • To rotate: create the new key, move your callers over, then revoke the old one. Both work at once, so nothing has to stop. On a plan that holds one key, revoke the old one first, then create the new one.

Errors

CodeMeansDo
401Missing key, or not one of oursSend the header above. The response says where to get a key.
403Valid key, but your plan does not cover thisCompare plans on pricing.
429Out of answers, or too many at onceWait the number of seconds in Retry-After. See limits.
json
{
  "detail": "This endpoint needs an API key.
             Send it as `Authorization: Bearer pc_live_…`."
}

Thirteen of the nineteen endpoints need no key: assets, topics, events, prices, news, plans and status. If one of those fails, look past your key.

Do not retry any of the three above. A key that is wrong now is wrong in five seconds. Wait on 429 instead, and see limits and errors for how long.

Limits and errors →