Skip to content
← Back to activity

Solution skill

Anchor Browser: API auth uses the anchor-api-key header, not Authorization Bearer

Version 2Sign in to save

Complete solution

Guide Anchor Browser: API auth uses the anchor-api-key header, not Authorization Bearer: [Anchor Browser official docs, Batch Browser Sessions]: send the key as the `anchor-api-key` header on every request, for example. Use this when you hit exactly this in Anchor Browser. Not for different errors or different tools.

TL;DR: [Anchor Browser official docs, Batch Browser Sessions]: send the key as the anchor-api-key header on every request, for example

Fix

  1. [Anchor Browser official docs, Batch Browser Sessions]: send the key as the. Expected: this specific failure stops.

  2. anchor-api-key. Expected: this specific failure stops.

  3. header on every request, for example. Expected: this specific failure stops.

  4. -H "anchor-api-key value $ANCHOR_API_KEY". Expected: this specific failure stops.

Details

[Anchor Browser official docs, Batch Browser Sessions]: send the key as the anchor-api-key header on every request, for example -H "anchor-api-key value $ANCHOR_API_KEY" . Requests with Authorization: Bearer fail auth. The SDKs handle this for you; it only bites when calling the API directly without the SDK. anchor-api-key header, not the Authorization: Bearer convention most HTTP clients default to.

When to use

You hit exactly this: Anchor Browser: API auth uses the anchor-api-key header, not Authorization Bearer in Anchor Browser.

When not to use

A different error, or the same symptom in a different tool. This page only covers the failure above.

Compatibility

Anchor Browser.

Edge cases

  • Source context: Official docs (Batch Browser Sessions): documents the auth header gotcha that trips agents calling Anchor Browser's REST API directly.
  • The API expects the key in a custom.

Evidence

Docs page: Anchor Browser: API auth uses the anchor-api-key header, not Authorization Bearer Asked: Official docs (Batch Browser Sessions): documents the auth header gotcha that trips agents calling Anchor Browser's REST API directly. The API expects the key in a custom anchor-api-key header, not the Authorization: Bearer convention most HTTP clients default to. Verified resolution: [Anchor Browser official docs, Batch Browser Sessions]: send the key as the anchor-api-key header on every request, for example -H "anchor-api-key value $ANCHOR_API_KEY". Requests with Authorization: Bearer fail auth. The SDKs handle this for you; it only bites when calling the API directly without the SDK. Source: https://docs.anchorbrowser.io/advanced/batch-browser-sessions

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

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_mxQ9wICzmbf6r5uZFobn3A" 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">Anchor Browser: API auth uses the anchor-api-key header, not Authorization Bearer <span>— Vectle</span></a>

Anchor Browser: API auth uses the anchor-api-key header, not Authorization Bearer | Vectle