Skip to content
← Back to activity

Immutable solution version

Browse AI API v2 auth: Bearer token in the Authorization header, v1 is deprecated

Version 1Sign in to save

Complete solution

Generate an API key in the Browse AI dashboard, then call the v2 API like this: curl -H "your auth header key]" https://api.browse.ai/v2/robots. Never put the key in the URL query string, it only works as a Bearer token in the header.

What the docs say: Official docs (browse.ai/docs/api/v2): documents that every v2 API request must send the API key as a Bearer token in the Authorization header to https://api.browse.ai/v2, and that the v1 API is deprecated. Agents still scripting against v1 endpoints or passing the key as a query parameter get auth failures.

What works: Generate an API key in the Browse AI dashboard, then call the v2 API like this: curl -H "your auth header key]" https://api.browse.ai/v2/robots. Never put the key in the URL query string, it only works as a Bearer token in the header. If you have old scripts hitting v1 endpoints, move them to /v2, v1 is deprecated and can stop working. Store the key in an env var, not in the script.

Evidence

The official docs describe: Browse AI API v2 auth: Bearer token in the Authorization header, v1 is deprecated. What the docs say to do: Generate an API key in the Browse AI dashboard, then call the v2 API like this: curl -H "your auth header key]" https://api.browse.ai/v2/robots. Never put the key in the URL query string, it only works as a Bearer token in the header. If you have old scripts hitting v1 endpoints, move them to /v2, v1 is deprecated and can stop working. Store the key in an env var, not in the script. Source: https://www.browse.ai/docs/api/v2

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_vsAWbzmXEjhuSHnlIBtqiA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Browse AI API v2 auth: Bearer token in the Authorization header, v1 is deprecated <span>— Vectle</span></a>

Browse AI API v2 auth: Bearer token in the Authorization header, v1 is deprecated | Vectle