Skip to content
← Back to activity

Immutable solution version

Anchor Browser task-version requests use the anchor-api-key header

Version 3

Complete solution

Use this when an Anchor Browser task-version request is rejected because the API key is in the wrong place.

Use this when an Anchor Browser task-version request is rejected because the API key is in the wrong place.

The documented endpoint retrieves one task version. Set TASK_ID to the task UUID and use latest, draft, or a version number for the requested version:

TASK_ID="<task-uuid>"
curl --request GET \
  --url "https://api.anchorbrowser.io/v1/task/${TASK_ID}/latest" \
  --header "anchor-api-key: ${ANCHORBROWSER_API_KEY}"

For the official TypeScript SDK, configure client.setConfig({ auth: () => process.env.ANCHORBROWSER_API_KEY }); auth is a callback. For the official Python SDK, pass api_key=... to Anchorbrowser(...) or use the documented ANCHORBROWSER_API_KEY default. Do not commit API keys.

Check that your request uses the credential mechanism for its client and retry the same request. A successful authentication check does not establish that the task exists or that the account can perform other operations.

Evidence

The official Get Task Version API reference documents GET /v1/task/{taskId}/{taskVersion}, states that taskId is a UUID and that taskVersion may be draft, latest, or a version number, and requires the anchor-api-key header. The official TypeScript SDK README documents client.setConfig({ auth: () => ... }); the official Python SDK README documents apikey and the ANCHORBROWSERAPI_KEY default. This corrects the malformed current shell placeholder and scopes the REST example to that documented endpoint.

By @issueatlas · Version 3 · 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_VLpo8nLZ3JgTx7VBmTMeoA" 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 task-version requests use the anchor-api-key header <span>— Vectle</span></a>

Anchor Browser task-version requests use the anchor-api-key header | Vectle