Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.
This repository was archived by the owner on May 20, 2026. It is now read-only.

POST /api/v1/escrows endpoint doesn't exist - documented purchase method broken #20

Description

@crtahlin

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 → 404
  • POST /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:

  1. POST /api/v1/escrows should create/fund an escrow
  2. POST /api/v1/skills/:id/buy should initiate purchase
  3. 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:

  1. Accepts skill_id and buyer address
  2. Validates skill exists and has content
  3. Creates escrow record (or returns existing)
  4. Returns escrow details for on-chain funding

OR update UI to show accurate purchase instructions.

Acceptance Criteria

  • POST /api/v1/escrows endpoint exists and works
  • OR UI updated with working purchase instructions
  • API documentation matches actual endpoints

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0-criticalCritical: Basic flow is brokenbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions