Base URL and keys
The API is same-origin with the site: every path starts https://probnode.com/v1/. There is no separate API host.
A key looks like pmd_a1b2c3d4_... (an 8-character prefix and a 32-character secret) and travels in the Authorization header. Get one by registering at /login or with POST /v1/auth/login. We store only a sha256 digest and the clear-text prefix, so a key is shown once and can never be read back — revoke it and mint a new one instead. Logging in again mints another key; the earlier ones keep working until revoked. Signing out on the site revokes that browser's key; keys for scripts are minted on the dashboard, and a password reset revokes them all.
What the API answers when the key is the problem
Four replies are about authorisation and they are deliberately different from each other, because the fix is different in each case. 401 means the key: there was no Authorization header, or the key was malformed, or it has been revoked. 402 means the key is fine and the plan is not — the path or the dataset is paid and the plan in force does not reach it, which includes a paid plan past its expiry. 403 means both are fine and the hour is not yet readable on that plan; the same rows arrive later and nothing is lost. 429 means a ceiling: either the day's signed URLs are spent or the key's requests a minute are, and only the second carries Retry-After.
Treat 402 and 403 as different branches in client code. Retrying a 402 will never succeed; retrying a 403 after the cutoff moves will.
Two ceilings, not one
A key is held to a daily number of signed URLs and to a number of requests a minute, and they are counted separately: a script can be well inside its day and still be refused for a burst. Both figures are per plan and are listed on limits. The open catalogue endpoints — series, markets, the taxonomy and the coverage ledger — need no key at all, so a crawler that only reads the catalogue never touches either ceiling.
Rotation, and what cannot be undone
Because only a digest is stored, there is no recovery path for a lost key and that is deliberate: a secret that can be read back is a secret that can be read by somebody else. Mint a new one and revoke the old one. Revocation takes effect on the next request — there is no grace window — so in a running job mint first, deploy, then revoke. A password reset revokes every key at once, which is the right blunt instrument when you do not know which one leaked.
Keys are per account, not per machine. If two services need to be revoked independently, give them separate keys from the start; splitting them afterwards means an outage on whichever one you revoke.