Wondersite

Developers & agents

Wondersite API

One call turns the URL of a small-business website into a finished modern homepage, built only from facts found on the site. Machine-readable description: /api/v1/openapi.json.

Create a redesign

POST https://wondersite.withglint.app/api/v1/redesigns
Content-Type: application/json

{ "url": "https://example-bakery.com", "look": "hearth" }   // look is optional

The call is synchronous: it answers when the redesign is finished, usually in 20–60 seconds and at most about 95. If it is still building then, you get 202 with the id; poll GET /api/v1/redesigns/{id} (free).

Looks: atelier, noir, garden, clinic, hearth, pop.

Response

{
  "id": "Xk2m…",
  "status": "done",
  "business": "Rosie's Bakery",
  "category": "Family bakery in Maple Falls, OR",
  "headline": "Baked before sunrise, every day",
  "look": "hearth",
  "studio_url": "https://wondersite.withglint.app/app/r/Xk2m…",
  "pitch_url": "https://wondersite.withglint.app/app/p/Xk2m…",
  "html_url": "https://wondersite.withglint.app/api/redesigns/Xk2m…/site",   // add ?look=noir for another look
  "screenshot_before_url": "https://wondersite.withglint.app/api/redesigns/Xk2m…/before.jpg",
  "brief": { … structured content of the new site … }
}

Paying

Option 1 · x402 (agents, no account)

Call without credentials and you receive 402 Payment Required with a PAYMENT-REQUIRED header (x402 v2, base64 JSON): scheme exact, $0.25 in USDC on Base mainnet (eip155:8453). Sign the payment with your wallet and repeat the request with a PAYMENT-SIGNATURE header. The payment is verified before any work starts and settled only when the redesign succeeds; the success response carries PAYMENT-RESPONSE. A site that cannot be rebuilt answers 422 and nothing is charged.

Any x402 v2 client works, for example Coinbase's x402-fetch or Cloudflare's Agents SDK payment helpers.

Option 2 · API key (Wondersite Pro)

Authorization: Bearer ws_live_…

Create keys under Plan & API. Calls count toward Pro's 200 redesigns per 30 days.

Errors

Rules of the road

Redesign sites you are pitching to, working for, or own. The output uses the site's own text and photos, so the business owner's rights in them still apply. See the terms.