Skip to main content
POST
/
v1
/
tools
/
build
curl -X POST https://win.oneshotagent.com/v1/tools/build \
  -H "Content-Type: application/json" \
  -H "X-Agent-ID: 0xYourWalletAddress" \
  -d '{
    "build_id": "550e8400-e29b-41d4-a716-446655440000",
    "product": {
      "name": "TaskFlow 2.0",
      "description": "Now with AI automation! AI-powered task management for remote teams.",
      "pricing": "Free tier, Pro $15/mo, Team $35/mo"
    }
  }'
{
  "error": "payment_required",
  "payment_request": {
    "chain_id": 8453,
    "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5.00",
    "recipient": "0x..."
  },
  "context": {
    "tool": "build",
    "quote_id": "quote_xyz789",
    "is_update": true,
    "type": "saas",
    "product_name": "TaskFlow 2.0",
    "pricing": {
      "base_price": "10.00",
      "update_discount": "-5.00",
      "total": "5.00"
    },
    "expires_at": "2024-01-15T12:00:00Z"
  }
}

Overview

The Update Build API allows you to modify an existing website. It reuses the same hosting infrastructure, providing faster deployments and discounted pricing while maintaining your existing URL and SEO.

Authentication

Requires x402 payment. First call returns a quote (402), second call with payment executes.

Request Body

build_id
string
required
The request_id from the original build’s completed result. This identifies which website to update.
product
object
required
Updated product information.
type
string
Website type (optional, keeps existing if not specified)
sections
string[]
Updated sections to include
lead_capture
object
Lead capture configuration
brand
object
Updated brand settings
images
object
Updated image URLs
domain
string
Custom domain

Quote Response (402)

Returns pricing with update discount applied:
context.is_update
boolean
true for update requests
context.pricing.update_discount
string
Discount amount applied

Execution Response (202)

Same as create, but updates existing deployment.
curl -X POST https://win.oneshotagent.com/v1/tools/build \
  -H "Content-Type: application/json" \
  -H "X-Agent-ID: 0xYourWalletAddress" \
  -d '{
    "build_id": "550e8400-e29b-41d4-a716-446655440000",
    "product": {
      "name": "TaskFlow 2.0",
      "description": "Now with AI automation! AI-powered task management for remote teams.",
      "pricing": "Free tier, Pro $15/mo, Team $35/mo"
    }
  }'
{
  "error": "payment_required",
  "payment_request": {
    "chain_id": 8453,
    "token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5.00",
    "recipient": "0x..."
  },
  "context": {
    "tool": "build",
    "quote_id": "quote_xyz789",
    "is_update": true,
    "type": "saas",
    "product_name": "TaskFlow 2.0",
    "pricing": {
      "base_price": "10.00",
      "update_discount": "-5.00",
      "total": "5.00"
    },
    "expires_at": "2024-01-15T12:00:00Z"
  }
}

Benefits of Updates

  • Faster deployments: Reuses existing infrastructure
  • Discounted pricing: Significant savings vs new builds
  • Same URL: Maintains existing domain and SEO
  • Version history: Previous versions accessible in GitHub
Store the request_id from your initial build to use for future updates.