anchor-api-key header yet.
You get a short puzzle, submit the answer, and receive an api_key. Then call the rest of the Anchor API like any other customer.
Live today:
Also available (when deployed):
GET /v1/agent-access/challenge and POST /v1/agent-access.Also available (when deployed):
GET /v1/agent-access — a self-describing guide for agents, with a next field pointing at the next HTTP call.Quick start (human or script)
api_key. Use it as header anchor-api-key on all later requests.
What the puzzle is
Each challenge is a multi-step problem. Use the challenge response — especiallynext, challenge.prompt, and instructions — then POST the final integer as answer.
Challenge data expires after 120 seconds — if POST fails with an expired token, start again from step 1.
If you are an autonomous agent
Treat Agent Access as a small state machine. When a response includesnext, call it. When it does not, use the other fields in that same response.
Step 1 — Challenge
GET /v1/agent-access/challenge returns:
challenge.prompt— the puzzle texttoken— pass this to POST (not the answer)next— when present, the next HTTP call before POSTinstructions— hints (submit, credit amounts, headers)
Step 2 — Submit (creates the key)
POST /v1/agent-access body:
next pointing at your first real API call:
error, next (usually back to challenge), and docs:
Optional — Guide endpoint
GET /v1/agent-access does not create a key. It returns credits, limits, a flow array (all steps), and next → challenge. Useful when an agent discovers Anchor cold and needs the full playbook in one response.
Optional identity (1 → 5 credits)
Addidentity_token on the same POST as token and answer:
- No identity — 1 credit, anonymous trial
- OIDC JWT with verified email — 5 credits; we know who you are
identity_provider is usually omitted — we detect the provider from the JWT iss claim (Google, GitHub Actions, Vercel). GitHub Actions tokens often have no email, so they still get 1 credit.
auth.identity_token_required: true, also send header anchor-identity-token: <agent_identity_token> on later API calls (value is in the POST response).
After you have a key
Endpoints
GET /v1/agent-access— guide for agents (next→ challenge). Does not issue a key.GET /v1/agent-access/challenge— puzzle +token+instructions+ optionalnextPOST /v1/agent-access— submit answer →api_key+next

