API: GET and POST /v1/keys/free
purpose
Request a free email-verified API key (25 free checks per UTC day instead of 5). GET returns instructions and the free daily check limits (5 anonymous, 25 with a free key); no email is sent. POST {"email"} emails one verification link; the key is shown once after the button is pressed. We store only the hash.
call
# Instructions only (live, safe):
curl -sS 'https://botsrated.com/v1/keys/free'
# Creates a real key after the person confirms the email. Do not POST a real inbox unless the user asked.
# Example only (not executed):
curl -sS -X POST 'https://botsrated.com/v1/keys/free' \
-H 'Content-Type: application/json' \
-d '{"email":"you@example.com"}'
sample_response
source: live prod GET 200, and live POST {} → 400 invalid_email (nothing was set up). Success POST body not fetched. fetched: live production, 24 Nov 2026 (counts redacted) trimmed: true
{
"GET": {
"service": "BotsRated",
"how": "POST this URL with JSON {\"email\": \"you@example.com\"}. We email one verification link; the key is shown once after you press the button. The key gives 25 free checks per UTC day instead of 5 (anonymous). Send it as Authorization: Bearer <key> or X-API-Key.",
"free_checks_per_day": {
"anonymous": 5,
"with_free_key": 25
},
"charged": false
},
"POST_empty": {
"service": "BotsRated",
"error": {
"code": "invalid_email",
"message": "Send JSON {\"email\": \"you@example.com\"}. Nothing was set up.",
"charged": false
}
}
}
errors
| code | when | fix |
|---|---|---|
| invalid_email (live POST 400) | Empty JSON or a bad email. Nothing was set up. | Send {"email":"you@example.com"} for a real inbox the person checks. |
notes
- Success POST is documented as HTTP 202 “Verification link queued” (live OpenAPI). The brf_ key is shown once after the person confirms the email; only a SHA-256 hash is stored (OpenAPI description and live /faq). A 202 body was not fetched (would need a real inbox).
notes
Send the key as Authorization: Bearer brf_… or X-API-Key. Verification emails arrive from alerts@botsrated.com (Reply-To: support@botsrated.com). To revoke the key you hold, POST /v1/keys/revoke with that same header (a key id in the body is rejected; 410 on a second revoke; 409 if the key still has prepaid credit or an active paid subscription). If a free key is lost, request a new one with POST /v1/keys/free and the same email (up to 3 active free keys per address; past that the answer is 409 key_limit). Prepaid credits stay on the key they were bought for: write to support@botsrated.com for key replacement help or to move credits.