-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
P0-criticalCritical: Basic flow is brokenCritical: Basic flow is brokenbugSomething isn't workingSomething isn't working
Description
Problem
The skill detail page UI instructs buyers to purchase via:
API: POST /api/v1/escrows
However, this endpoint does not accept POST requests:
curl -X POST "https://agents.datafund.io/api/v1/escrows" \
-H "Content-Type: application/json" \
--data '{"skill_id":"...","buyer":"0x..."}'Response:
<pre>Cannot POST /api/v1/escrows</pre>Verification via OPTIONS:
access-control-allow-methods: GET, OPTIONS
The endpoint is read-only. POST is not implemented.
Also Tested
POST /api/v1/skills/:id/buy→ 404POST /api/v1/escrows/fund→ 404
No API endpoint exists to create or fund an escrow.
Impact
- Complete blocker: Users following UI instructions cannot purchase
- The documented purchase flow is non-functional
- Only workarounds: CLI tool or direct smart contract interaction
- Undermines trust in platform documentation
Expected Behavior
One of:
POST /api/v1/escrowsshould create/fund an escrowPOST /api/v1/skills/:id/buyshould initiate purchase- OR UI should show accurate instructions for actual purchase method
Relation to Other Issues
This is distinct from #9 (skills not linked to escrows) and #10 (no wallet UI). Even if those were fixed, users still couldn't purchase via the documented API method.
Suggested Fix
Implement POST /api/v1/escrows endpoint that:
- Accepts
skill_idandbuyeraddress - Validates skill exists and has content
- Creates escrow record (or returns existing)
- Returns escrow details for on-chain funding
OR update UI to show accurate purchase instructions.
Acceptance Criteria
-
POST /api/v1/escrowsendpoint exists and works - OR UI updated with working purchase instructions
- API documentation matches actual endpoints
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P0-criticalCritical: Basic flow is brokenCritical: Basic flow is brokenbugSomething isn't workingSomething isn't working