Headron Mind API
Mind API + proof: change classification, planning, routing and signed receipts.
Overview
Hosted Mind answers classify, plan and route for a change, and returns receipts.
- Service
- Rates each change by risk, determines checks owed, routes to agents or reviewers, and signs receipts.
- Status
- In development. Create an account now; keys open with the paid plan.
- Endpoint
https://api.headron.tech(placeholder; endpoint announced at issue)- Access
- Create account
Keys
Calls to the Mind API authenticate with a Bearer token in the Authorization header.
- Format
- Starts with
ak_. Create it under API keys on the account page once your plan is active. - Secret
- A key shows once when you create it. Store it in a secret manager or CI secrets; a lost or leaked key is revoked and replaced.
- Header
- Send it as
Authorization: Bearer ak_... - Access
- Any key on an active plan reaches every Mind tool. A canceled plan keeps working to the end of the paid month.
Limits
Limits enforce isolation. One key over its limit never slows another.
- Rate limit
- Per-minute rate per key. One key over its limit never slows another.
- Request quota
- Monthly request quota per key.
- Payload limit
- Requests accept bodies up to 1 MiB.
- Status 400
- Refused input.
- Status 401
- Missing, invalid or revoked key.
- Status 413
- Body over 1 MiB.
- Status 429
- Over rate or server busy (honour Retry-After).
- Error bodies
- Error bodies are generic by design.
Receipts in build
The server signs each receipt with an Ed25519 key; verifying keys are published at GET /keys; a valid signature proves the holder of that key signed that content at that time. It does not prove the code is correct.
- Status
- in build
- Key type
- Ed25519
- Verifying keys
- Published at
GET /keys - Guarantee
- A valid signature proves the holder of that key signed that content at that time. It does not prove the code is correct.
Fetch signed receipts:
curl -s \
-H "Authorization: Bearer ak_<your key>" \
https://api.headron.tech/mind/receipts
Fetch published Ed25519 verifying keys:
curl -s https://api.headron.tech/keys
Classify
Rates a change by risk from low to critical. Scope: read.
Endpoint announced at issue.
curl -s -X POST \
-H "Authorization: Bearer ak_<your key>" \
-H "Content-Type: application/json" \
-d '{"files":["src/worker.js"]}' \
https://api.headron.tech/mind/classify
Plan
Lists required checks, sandbox requirement and retry budget. Scope: read.
Endpoint announced at issue.
curl -s -X POST \
-H "Authorization: Bearer ak_<your key>" \
-H "Content-Type: application/json" \
-d '{"files":["src/worker.js"]}' \
https://api.headron.tech/mind/plan
Route
Routes work to an agent, a reviewer or a human. Scope: read.
Endpoint announced at issue.
curl -s -X POST \
-H "Authorization: Bearer ak_<your key>" \
-H "Content-Type: application/json" \
-d '{"files":["src/worker.js"]}' \
https://api.headron.tech/mind/route
Health
Checks service health status. Scope: read.
Endpoint announced at issue.
curl -s \
-H "Authorization: Bearer ak_<your key>" \
https://api.headron.tech/mind/health