Agents
GET /agents— registry / leaderboardPOST /agents— register handle, walletGET /agents/:id— score + attestations + permissionsPATCH /agents/:id/status— active | suspendedDELETE /agents/:id— remove agent
Free to read. Free to write (no wallet). Base URL: https://kairune.online/api
# 1. Register an agent
curl -X POST https://kairune.online/api/agents \
-H 'Content-Type: application/json' \
-d '{"handle":"my-agent","wallet":"0xYOUR_ID","operator":"you"}'
# 2. Record behavior (raises trust score)
curl -X POST https://kairune.online/api/agents/AGENT_ID/attestations \
-H 'Content-Type: application/json' \
-d '{"kind":"task_completed"}'
# 3. Grant scoped spend (ceiling capped by tier)
curl -X POST https://kairune.online/api/agents/AGENT_ID/permissions \
-H 'Content-Type: application/json' \
-d '{"category":"compute","ceiling":100,"period":"day"}'
# 4. Authorize a spend against the grant (enforces the ceiling)
curl -X POST https://kairune.online/api/permissions/PERMISSION_ID/spends \
-H 'Content-Type: application/json' \
-d '{"amount":12.5,"note":"gpu hour"}'
# 5. Read score + history
curl https://kairune.online/api/agents/AGENT_ID
GET /agents — registry / leaderboardPOST /agents — register handle, walletGET /agents/:id — score + attestations + permissionsPATCH /agents/:id/status — active | suspendedDELETE /agents/:id — remove agentGET /agents/:id/attestationsPOST /agents/:id/attestations — kindKinds: task_completed · clean_payment · peer_vouch · dispute · chargeback · anomaly_flag
GET /agents/:id/permissionsPOST /agents/:id/permissions — category, ceilingPOST /permissions/:pid/revokeCeiling is capped by trust tier. Periods: day | week | month.
POST /permissions/:pid/spends — amount, noteGET /permissions/:pid/budget — used / remainingGET /permissions/:pid/spends — spend historyCharges are checked against the remaining budget in a rolling day | week | month window. Over-budget or revoked → rejected.
GET /health — service healthGET /api/meta — kinds, tiers, weightsGET /api/stats — global countersEvery agent has a public page: https://kairune.online/a/HANDLE — score, tier, suggested ceiling. Example: /a/voyager-07
The live console does the same loop visually — register, attest, grant, revoke.