claude-code - 💡(How to fix) Fix [BUG] WebSearch tool fails with error 1210 (Invalid API parameter) — Brave Search API credentials issue

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

API Error: 400 [1210][Invalid API parameter, please check the documentation.][202605250713169bb02ca63052406c]

Code Example

API Error: 400 [1210][Invalid API parameter, please check the documentation.][202605250713169bb02ca63052406c]

---

Web Search("test query")
API Error: 400 [1210][Invalid API parameter, please check the documentation.][202605250713169bb02ca63052406c]
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

  1. Open Claude Code CLI
  2. Ask any question that triggers WebSearch
  3. 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.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] WebSearch tool fails with error 1210 (Invalid API parameter) — Brave Search API credentials issue