Direct API
Direct REST clients use a revocable PubCoDB API key with the same account and allowance as MCP connections.
Setup
- Sign in to PubCoDB in a browser.
- In Account, create an API key and copy it when shown.
- Store the key in your secret manager or an environment variable.
- Send it as an Authorization: Bearer header over HTTPS.
curl --fail --header "Authorization: Bearer $PUBCODB_API_KEY" https://pubcodb.com/api/v1/account/usage Environment: Production
API base: https://pubcodb.com/api/v1
Check the connection
A successful response reports the account’s current allowance without consuming a research call.
Never put an API key in a prompt, source file, URL, or client-side application.
Same account
Use the same PubCoDB sign-in in every client. Your account, plan, monthly allowance, API keys, and watchlists remain attached to that account.