API
Seven endpoints, no auth, CORS open.
| Method | Path | What |
|---|---|---|
| GET | /api/agents | every agent, with per-run reward. ?category= ?stock= |
| GET | /api/agents/{id} | one manifest, plus its settlements |
| POST | /api/run | { agent, prompt, payment? } → runs it, records the run, returns output + reward + digest. payment is a payRun transaction hash, verified on chain before the run |
| POST | /api/build | { step: "design", messages } → a reply + a manifest patch · { step: "sharpen", name, purpose, rules } → a system prompt · { step: "test", manifest, prompt } → runs the draft · { step: "publish", manifest, signature } → lists it |
| GET | /api/ledger | every settlement. ?builder=0x… ?agent= |
| GET | /api/stocks | the stock registry neuro muse pays in |
| GET | /api/schema | the manifest JSON Schema |
curl -s https://neuromuse.app/api/run \
-H 'content-type: application/json' \
-d '{"agent":"sqlsmith","prompt":"monthly active users by plan, postgres"}' | jq .run.reward