Overview
The Build API creates fully-functional, production-ready websites from product descriptions. From SaaS landing pages to portfolios, restaurant sites to event pages — OneShot analyzes your requirements, generates professional content, and deploys to live URLs with real hosting infrastructure.
Coming soon: Full-stack applications with databases, authentication, and backend logic.
Authentication
Requires x402 payment. First call returns a quote (402), second call with payment executes.
Request Body
Product information for the website. Description of the product/service (minimum 10 characters)
Industry category (e.g., “SaaS”, “E-commerce”, “Consulting”)
Pricing information to display (e.g., “Free tier, Pro $12/mo”)
Build type. Options: saas, portfolio, agency, personal, product, funnel, restaurant, event, app, social
URL to analyze for content/inspiration. Adds $10 to quote.
Specific sections to include (e.g., ["hero", "features", "pricing", "testimonials"])
Lead capture form configuration. Show lead_capture properties
Enable lead capture form. Adds $15 to quote.
Email to receive leads (defaults to agent inbox)
Brand customization options. Primary brand color in hex format (e.g., #4F46E5)
Brand tone: professional, playful, bold, or minimal
Custom domain (e.g., mysite.com). Adds $20 to quote.
Existing build ID to update (for iterations). Use /update endpoint instead.
Quote Response (402)
The first request returns pricing and analysis:
Quote ID to include in payment request
Product name from request
AI analysis of the build request
Detailed pricing breakdown
Quote expiration timestamp (1 hour)
Execution Response (202)
After payment, the build is initiated:
Job ID for tracking build status
processing - build is in progress
Email address for lead capture (if enabled)
Completed Job Result
Poll /v1/requests/{request_id} for the result:
Live URL (e.g., https://taskflow.oneshotagent.com)
Preview URL before DNS propagation
result.lead_capture_email
Email address receiving lead submissions
AI-evaluated quality score (1-10)
curl -X POST https://win.oneshotagent.com/v1/tools/build \
-H "Content-Type: application/json" \
-H "X-Agent-ID: 0xYourWalletAddress" \
-d '{
"type": "saas",
"product": {
"name": "TaskFlow",
"description": "AI-powered task management for remote teams. Automate workflows, track progress, and collaborate seamlessly.",
"industry": "Productivity",
"pricing": "Free tier, Pro $12/mo, Team $29/mo"
},
"lead_capture": {
"enabled": true
},
"brand": {
"primary_color": "#4F46E5",
"tone": "professional"
}
}'
Quote Response (402)
Execution Response (202)
Completed Result
{
"error" : "payment_required" ,
"message" : "Payment required for website build." ,
"payment_request" : {
"chain_id" : 8453 ,
"token_address" : "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" ,
"amount" : "25.00" ,
"recipient" : "0x..."
},
"context" : {
"tool" : "build" ,
"quote_id" : "quote_abc123" ,
"type" : "saas" ,
"product_name" : "TaskFlow" ,
"analysis" : {
"inferred_type" : "saas" ,
"estimated_sections" : 5 ,
"needs_lead_capture" : true ,
"complexity_score" : 0.7 ,
"reasoning" : "SaaS product with pricing tiers and team features"
},
"pricing" : {
"base_price" : "10.00" ,
"extra_sections_fee" : "10.00" ,
"lead_capture_fee" : "5.00" ,
"source_analysis_fee" : "0.00" ,
"custom_domain_fee" : "0.00" ,
"total" : "25.00"
},
"expires_at" : "2024-01-15T12:00:00Z"
}
}
Pricing
Component Cost Base price (3 sections) $10.00 Extra sections $5.00 each Lead capture $5.00 Source URL analysis $5.00 Custom domain $10.00
All builds include high-quality stock images from Unsplash at no extra cost.
Updates to existing builds are discounted. Use the Update Build endpoint with your build_id.