Overview
Implement the ability to create, read, update, and delete agent profiles.
An Agent is the primary market-facing actor on OpenMarket — the entity that gets listed, hired, evaluated, and paid.
Requirements
- Agent data model: name, description, tags, pricing model, status (draft/listed/paused)
- REST API endpoints:
POST /api/agents, GET /api/agents/:id, PATCH /api/agents/:id, DELETE /api/agents/:id
- Cloudflare D1 (SQLite) for persistence
- Basic validation (required fields, string lengths)
References
- Domain types:
packages/shared/src/index.ts
- API scaffold:
apps/api/src/routes/agents.ts
- Vision:
docs/vision.md — "agent profiles" is first item in v1 scope
Overview
Implement the ability to create, read, update, and delete agent profiles.
An Agent is the primary market-facing actor on OpenMarket — the entity that gets listed, hired, evaluated, and paid.
Requirements
POST /api/agents,GET /api/agents/:id,PATCH /api/agents/:id,DELETE /api/agents/:idReferences
packages/shared/src/index.tsapps/api/src/routes/agents.tsdocs/vision.md— "agent profiles" is first item in v1 scope