Getting and using a free API key
A free email-verified API key (brf_…) increases your free daily quota from 5 to 25 checks per UTC day and can hold prepaid credit packs. You do not need a key for /v1/preflight, /v1/feed, or paying per call via x402.
How to request a free brf_ key
- Send
POST https://botsrated.com/v1/keys/freewith JSON{"email":"you@example.com"}, or submit your email on https://botsrated.com/credits. - You receive HTTP
202(verification_sent) and one verification email fromalerts@botsrated.com(Reply-To: support@botsrated.com, subjectVerify your email for a free BotsRated API key). - Open the verification link and press the confirm button.
- Your key (
brf_…) is shown once. Only a SHA-256 hash is stored, so save it in a secret manager immediately.
GET https://botsrated.com/v1/keys/free returns instructions and the free daily check limits (5 anonymous, 25 with a free key) without sending an email.
How to authenticate
Send your key on /v1/check, /v1/find, /v1/keys/balance, /v1/meter, or MCP tool calls using either header:
Authorization: Bearer brf_…
or
X-API-Key: brf_…
To set a monthly credit limit or low-credit alert, POST /v1/meter/limits with the same key (GET /v1/meter/limits is not a route; read configured limits from GET /v1/meter).
Checking balance and usage (/v1/keys/balance and /v1/meter)
- **
GET /v1/keys/balance** (free; key required): returnskey_ref,free_checks_per_day, remainingcredits,next_expiry,packs[], andcharged: false. - **
GET /v1/meter** (free; key required): shows free checks used today, prepaid credits left and used this month, and payment mode in one view. - **
POST /v1/meter/limits** (free; key required): setsmonthly_credit_limit(integer>= 1ornull),alert_at_credits_left(integer>= 0ornull), andalert_webhook(URI ornull).
Without a key header, these routes return HTTP 401 with error.code: "key_required". With a header containing an unrecognized key, they return HTTP 401 with error.code: "key_not_recognized".
API key and token prefixes
| Prefix | What it is | How to get it |
|---|---|---|
brf_ | Free or prepaid credit-pack API key | POST /v1/keys/free or buying a credit pack on /credits |
brs_ | Paid Alerts or Data plan bearer token | Issued after checkout for Pro, Live, Desk Team, Desk Pro, or Commercial Feed |
brk_ | Org key (for policy or high-cap preflight routes) | Minted with POST /v1/org/keys by an active paid plan bearer (brs_…), or requested for 25,000/day preflight from support@botsrated.com |
Do not confuse these with owner session tokens (from seller claiming) or free-watch handles (watch_free).
If you lose or expose a key
Because only a SHA-256 hash is stored, a lost key cannot be retrieved.
- Revoke the key you hold.
POST https://botsrated.com/v1/keys/revokerevokes only the API key you send asAuthorization: BearerorX-API-Key. A key id in the body is rejected; BotsRated never revokes a different key. A second call on an already revoked key returns410, not a server error. If the key still has prepaid credit or an active paid subscription, the call returns409and does not cancel that credit or any Stripe subscription. Rate limits matchGET /v1/keys/balance. Revoking a key deletes its usage limits, alert webhook URL, and spend / low-credit alert records for that key. Unauthenticated calls return401 key_required. A presented but unrecognized key returns401 key_not_recognized. - You can request a new free key with
POST /v1/keys/freeand the same email (up to 3 active free keys per address; past that, the response is409 key_limit). - Prepaid credits stay tied to the specific key they were bought for. If a key is lost or exposed, or you need a key replaced or credits moved, write to support@botsrated.com from the verified email address (or with your
key_ref/ Stripe receipt number). - BotsRated deletes free-key emails, key hashes, and verification times within 30 days after a key is replaced/revoked or you request deletion (https://botsrated.com/privacy).