[BUG] WebSearch tool fails with error 1210 (Invalid API parameter) — Brave Search API credentials issue
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The built-in WebSearch tool consistently fails with error 1210 for every query, regardless of content:
API Error: 400 [1210][Invalid API parameter, please check the documentation.][202605250713169bb02ca63052406c]
This has been happening consistently since at least 2026-05-24.
What Should Happen?
WebSearch should return search results.
Error Messages/Logs
Web Search("test query")
⎿ API Error: 400 [1210][Invalid API parameter, please check the documentation.][202605250713169bb02ca63052406c]
Happens on every single query. No queries succeed.
Steps to Reproduce
- Open Claude Code CLI
- Ask any question that triggers WebSearch
- Observe the 1210 error every time
Environment
- Claude Code version: 2.1.150 (installed via npm globally)
- Platform: macOS (Darwin 23.6.0)
- Node.js: v25.9.0
- Plan: Claude Max subscription
Additional Information
Error 1210 is a Brave Search API error code indicating invalid API parameters. This suggests the Brave Search API credentials or configuration on Anthropic's infrastructure side may be misconfigured or expired.
The WebFetch tool works fine. Only WebSearch is affected.
Related issues #27831 and #43950 describe WebSearch problems but with different error patterns (0 results silently, or UPSTREAM_LLM_ERROR with tag mismatch). This issue is specifically about the Brave Search API returning error code 1210.
This is a high-impact issue as it completely blocks web research capabilities in Claude Code.
3 Comments
Issue Summary
Title: [BUG] WebSearch tool fails with error 1210 (Invalid API parameter) — Brave Search API credentials issue
Labels: bug, platform:macos, area:tools
Competition: 0 comments (zero competition)
Priority: 🔴 High — completely blocks web research capabilities
Root Cause Analysis
Error 1210 from the Brave Search API indicates "Invalid API parameter." This is a client-side parameter validation error, not a server-side issue. The error format:
The timestamp-like suffix (
202605250713169bb02ca63052406c) is a Brave API request ID, confirming the request reaches Brave's servers but is rejected due to invalid parameters.Likely Causes
qfor query,countfor results). A recent code change may have dropped a required parameter.Proposed Fix
Fix 1: Parameter Validation Before API Call (Primary)
Fix 2: Fallback Search Provider
Fix 3: Credential Health Check on Startup
Testing Methodology
Impact Assessment
Competitive Advantage
It would help to split credential validation from the actual search request. If the CLI could run a quick diagnostics step that verifies the Brave key and prints the accepted parameter set before issuing the search, this kind of failure would surface much earlier and with a clearer fix path.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.