← Docs

API Reference

All REST endpoints served by the clawREFORM daemon on port 4332.

MethodPathPurpose
GET/api/healthHealth check + version
GET/api/agentsList all agents
POST/api/agents/{id}/messageSend message to agent (triggers LLM)
GET/api/budgetGlobal budget status
PUT/api/budgetUpdate global budget limits
GET/api/budget/agentsPer-agent cost ranking
GET/api/budget/agents/{id}Single agent budget detail
GET/api/network/statusOFP network status
GET/api/peersConnected OFP peers
GET/api/a2a/agentsExternal A2A agents
POST/api/a2a/discoverDiscover A2A agent at URL
POST/api/a2a/sendSend task to external A2A agent
GET/api/a2a/tasks/{id}/statusCheck external task status

Example: Send a message

$ curl -X POST http://127.0.0.1:4332/api/agents/default/message \
  -H "Content-Type: application/json" \
  -d '{"message": "Summarize the Rust changelog in 3 bullets"}'

The agent routes the message to the configured LLM provider, executes any tool calls, and returns the final response. Budget is metered per call.