Builds
Build a whole site from a prompt with the AI pipeline, and follow it.
- POST
/buildsBuild a site from a prompt - GET
/buildsList builds - GET
/builds/{buildId}Get a build - GET
/builds/{buildId}/eventsStream a build’s progress - POST
/builds/{buildId}/cancelStop a build - POST
/builds/{buildId}/retryPick a failed build back up - POST
/builds/uploads/{kind}Upload a file for a build - GET
/subdomains/{name}Check a free address - POST
/generateGenerate a site in one call (legacy)
Build a site from a prompt
/buildsStart the full AI build: research, a design reference, the design system, copy, pages and images, then deploy, a proof pass and an audit. It takes several minutes and runs on its own; follow it with GET /builds/{buildId} or stream GET /builds/{buildId}/events. The same request sent twice within two minutes returns the build already running. You can have two builds running at once.
Headers
Idempotency-KeystringSend the same key to repeat this request safely; the first answer is replayed for 24 hours.
up to 200 characters
Request body JSON
promptstringrequiredWhat the business does and who for, in two or three sentences or more. The more real detail, the better the site.
up to 8,000 characters
namestringThe business name.
up to 120 characters
websitestringThe business’s current website. Research reads it for real details; enough on its own to start from.
up to 300 characters
subdomainstringThe free address to use, like "harbour-bakery" for harbour-bakery.<sites domain>. Check it with GET /subdomains/{name}.
up to 40 characters
localestringThe site’s language, like en-GB or es.
up to 20 characters
addressstringup to 300 characters
phonestringup to 40 characters
emailstringup to 200 characters
mapsobjectThe business’s Google Maps listing.
2 child fields
placeIdstringrequiredurlstring
brandobjectColours and a note on the look you want.
2 child fields
tokensmap of stringnotesstringup to 1,000 characters
logostringAn upload id from POST /builds/uploads/logo.
up to 80 characters
iconstringA logo upload id to use as the site icon.
up to 80 characters
inspirationarray of stringsUpload ids from POST /builds/uploads/inspiration: sites or pictures whose look you like.
up to 6 items
siteIdstringRebuild this site (you must own it) instead of making a new one.
sourceobjectRebuild your own live website as an editable Unvop site.
3 child fields
urlstringrequiredownSitetruerequiredYou confirm the site is your own.
instructionsstringup to 2,000 characters
screenshotobjectRebuild a screenshot as an editable site.
3 child fields
uploadstringrequiredAn upload id from POST /builds/uploads/screenshot.
viewportobjectrequired3 child fields
widthintegerrequiredheightintegerrequireddevicestringrequiredOne of
desktoptabletmobile
instructionsstringup to 2,000 characters
Response 202
jobobjectrequiredAn AI site build: the full research, design, writing, building, deploy and review pipeline.
14 child fields
idstringrequiredstatusstringrequiredOne of
queuedrunningsucceededfailedstagestringrequiredThe stage the build is in, like researching, designing, writing, building, deploying, reviewing, done.
messagestringrequiredWhat it is doing now, in a sentence.
promptstringrequiredsiteIdstringrequirednullableThe site, once deployed.
hostnamestringrequirednullableurlstringrequirednullableThe live site, once deployed.
referenceUrlstringrequirednullableThe design reference image, once drawn.
imagesarray of objectsrequired3 child fields
urlstringrequiredaltstringrequiredplacementstringrequired
errorstringrequirednullableerrorCodestringrequirednullablecreatedAtstringrequiredAn ISO 8601 timestamp.
updatedAtstringrequiredAn ISO 8601 timestamp.
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 409It conflicts with the current state.
- 422The body is invalid; details say which values.
- 429Too many requests; wait for RateLimit-Reset seconds.
- 503Not available on this server.
Try itSends a real request. Asks before it changes anything.
curl https://api.unvop.com/v1/builds \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes, open 7 to 3 every day, with a cafe upstairs looking over the harbour.",
"name": "Harbour Bakery",
"subdomain": "harbour-bakery"
}'const res = await fetch('https://api.unvop.com/v1/builds', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
prompt: "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes, open 7 to 3 every day, with a cafe upstairs looking over the harbour.",
name: "Harbour Bakery",
subdomain: "harbour-bakery"
}),
});
const data = await res.json();import os, requests, uuid
res = requests.post(
"https://api.unvop.com/v1/builds",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes, open 7 to 3 every day, with a cafe upstairs looking over the harbour.",
"name": "Harbour Bakery",
"subdomain": "harbour-bakery",
},
)
data = res.json(){
"job": {
"id": "job_123",
"status": "queued",
"stage": "lead",
"message": "Building the homepage",
"prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
"siteId": "site_123",
"hostname": "harbour-bakery.unvop.dev",
"url": "https://harbour-bakery.unvop.dev",
"referenceUrl": null,
"images": [],
"error": null,
"errorCode": null,
"createdAt": "2026-11-20T08:00:00.000Z",
"updatedAt": "2026-11-20T08:00:00.000Z"
}
}List builds
/buildsYour account’s 20 most recent builds, newest first.
Response 200
itemsarray of objectsrequired14 child fields
idstringrequiredstatusstringrequiredOne of
queuedrunningsucceededfailedstagestringrequiredThe stage the build is in, like researching, designing, writing, building, deploying, reviewing, done.
messagestringrequiredWhat it is doing now, in a sentence.
promptstringrequiredsiteIdstringrequirednullableThe site, once deployed.
hostnamestringrequirednullableurlstringrequirednullableThe live site, once deployed.
referenceUrlstringrequirednullableThe design reference image, once drawn.
imagesarray of objectsrequired3 child fields
urlstringrequiredaltstringrequiredplacementstringrequired
errorstringrequirednullableerrorCodestringrequirednullablecreatedAtstringrequiredAn ISO 8601 timestamp.
updatedAtstringrequiredAn ISO 8601 timestamp.
cursorstringnullablePass as ?cursor= to get the next page. Null when there are no more.
totalintegerHow many there are in all, when the list knows.
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/builds \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/builds', {
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.unvop.com/v1/builds",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{
"id": "job_123",
"status": "queued",
"stage": "lead",
"message": "Building the homepage",
"prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
"siteId": "site_123",
"hostname": "harbour-bakery.unvop.dev",
"url": "https://harbour-bakery.unvop.dev",
"referenceUrl": null,
"images": [],
"error": null,
"errorCode": null,
"createdAt": "2026-11-20T08:00:00.000Z",
"updatedAt": "2026-11-20T08:00:00.000Z"
}
],
"cursor": null,
"total": 1
}Get a build
/builds/{buildId}Where a build is: its status (queued, running, succeeded, failed), stage, a sentence on what it is doing, the images so far, and once deployed the site id and live address. A build that went quiet is picked back up.
Path parameters
buildIdstringrequired
Response 200
jobobjectrequiredAn AI site build: the full research, design, writing, building, deploy and review pipeline.
14 child fields
idstringrequiredstatusstringrequiredOne of
queuedrunningsucceededfailedstagestringrequiredThe stage the build is in, like researching, designing, writing, building, deploying, reviewing, done.
messagestringrequiredWhat it is doing now, in a sentence.
promptstringrequiredsiteIdstringrequirednullableThe site, once deployed.
hostnamestringrequirednullableurlstringrequirednullableThe live site, once deployed.
referenceUrlstringrequirednullableThe design reference image, once drawn.
imagesarray of objectsrequired3 child fields
urlstringrequiredaltstringrequiredplacementstringrequired
errorstringrequirednullableerrorCodestringrequirednullablecreatedAtstringrequiredAn ISO 8601 timestamp.
updatedAtstringrequiredAn ISO 8601 timestamp.
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 404Not found, or not reachable with this key.
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/builds/job_123 \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/builds/job_123', {
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.unvop.com/v1/builds/job_123",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"job": {
"id": "job_123",
"status": "queued",
"stage": "lead",
"message": "Building the homepage",
"prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
"siteId": "site_123",
"hostname": "harbour-bakery.unvop.dev",
"url": "https://harbour-bakery.unvop.dev",
"referenceUrl": null,
"images": [],
"error": null,
"errorCode": null,
"createdAt": "2026-11-20T08:00:00.000Z",
"updatedAt": "2026-11-20T08:00:00.000Z"
}
}Stream a build’s progress
/builds/{buildId}/eventsServer-Sent Events: a "build" event with the build each time its stage or message changes, then "done" when it succeeds or fails. The stream closes after five minutes; reconnect to keep following. Send Accept: text/event-stream.
Path parameters
buildIdstringrequired
Response 200 text/event-stream; each event’s data is:
idstringrequiredstatusstringrequiredOne of
queuedrunningsucceededfailedstagestringrequiredThe stage the build is in, like researching, designing, writing, building, deploying, reviewing, done.
messagestringrequiredWhat it is doing now, in a sentence.
promptstringrequiredsiteIdstringrequirednullableThe site, once deployed.
hostnamestringrequirednullableurlstringrequirednullableThe live site, once deployed.
referenceUrlstringrequirednullableThe design reference image, once drawn.
imagesarray of objectsrequired3 child fields
urlstringrequiredaltstringrequiredplacementstringrequired
errorstringrequirednullableerrorCodestringrequirednullablecreatedAtstringrequiredAn ISO 8601 timestamp.
updatedAtstringrequiredAn ISO 8601 timestamp.
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 404Not found, or not reachable with this key.
- 429Too many requests; wait for RateLimit-Reset seconds.
This endpoint streams Server-Sent Events, so Try it is off here. Use curl with -N.
curl -N https://api.unvop.com/v1/builds/job_123/events \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Accept: text/event-stream"const res = await fetch('https://api.unvop.com/v1/builds/job_123/events', {
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
Accept: 'text/event-stream',
},
});
const reader = res.body.pipeThrough(new TextDecoderStream()).getReader();
for (let r = await reader.read(); !r.done; r = await reader.read()) {
console.log(r.value); // event: build, data: {…}
}import os, requests
res = requests.get(
"https://api.unvop.com/v1/builds/job_123/events",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}", "Accept": "text/event-stream"},
stream=True,
)
for line in res.iter_lines(decode_unicode=True):
print(line)event: build
data: {"id":"job_123","status":"queued","stage":"lead","message":"Building the homepage","prompt":"Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.","siteId":"site_123","hostname":"harbour-bakery.unvop.dev","url":"https://harbour-bakery.unvop.dev","referenceUrl":null,"images":[],"error":null,"errorCode":null,"createdAt":"2026-11-20T08:00:00.000Z","updatedAt":"2026-11-20T08:00:00.000Z"}
event: done
data: {"status":"succeeded","siteId":"site_123","url":"https://harbour-bakery.unvop.dev","error":null}Stop a build
/builds/{buildId}/cancelStop a build in progress. Finished stages stay stored; nothing after this point runs or spends.
Path parameters
buildIdstringrequired
Response 200
jobobjectrequiredAn AI site build: the full research, design, writing, building, deploy and review pipeline.
14 child fields
idstringrequiredstatusstringrequiredOne of
queuedrunningsucceededfailedstagestringrequiredThe stage the build is in, like researching, designing, writing, building, deploying, reviewing, done.
messagestringrequiredWhat it is doing now, in a sentence.
promptstringrequiredsiteIdstringrequirednullableThe site, once deployed.
hostnamestringrequirednullableurlstringrequirednullableThe live site, once deployed.
referenceUrlstringrequirednullableThe design reference image, once drawn.
imagesarray of objectsrequired3 child fields
urlstringrequiredaltstringrequiredplacementstringrequired
errorstringrequirednullableerrorCodestringrequirednullablecreatedAtstringrequiredAn ISO 8601 timestamp.
updatedAtstringrequiredAn ISO 8601 timestamp.
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 404Not found, or not reachable with this key.
- 409It conflicts with the current state.
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itSends a real request. Asks before it changes anything.
curl -X POST https://api.unvop.com/v1/builds/job_123/cancel \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/builds/job_123/cancel', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.unvop.com/v1/builds/job_123/cancel",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"job": {
"id": "job_123",
"status": "queued",
"stage": "lead",
"message": "Building the homepage",
"prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
"siteId": "site_123",
"hostname": "harbour-bakery.unvop.dev",
"url": "https://harbour-bakery.unvop.dev",
"referenceUrl": null,
"images": [],
"error": null,
"errorCode": null,
"createdAt": "2026-11-20T08:00:00.000Z",
"updatedAt": "2026-11-20T08:00:00.000Z"
}
}Pick a failed build back up
/builds/{buildId}/retryRestart a failed build where it stopped. Finished stages are skipped, so only the failed stage and those after it run again.
Path parameters
buildIdstringrequired
Response 202
jobobjectrequiredAn AI site build: the full research, design, writing, building, deploy and review pipeline.
14 child fields
idstringrequiredstatusstringrequiredOne of
queuedrunningsucceededfailedstagestringrequiredThe stage the build is in, like researching, designing, writing, building, deploying, reviewing, done.
messagestringrequiredWhat it is doing now, in a sentence.
promptstringrequiredsiteIdstringrequirednullableThe site, once deployed.
hostnamestringrequirednullableurlstringrequirednullableThe live site, once deployed.
referenceUrlstringrequirednullableThe design reference image, once drawn.
imagesarray of objectsrequired3 child fields
urlstringrequiredaltstringrequiredplacementstringrequired
errorstringrequirednullableerrorCodestringrequirednullablecreatedAtstringrequiredAn ISO 8601 timestamp.
updatedAtstringrequiredAn ISO 8601 timestamp.
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 404Not found, or not reachable with this key.
- 409It conflicts with the current state.
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itSends a real request. Asks before it changes anything.
curl -X POST https://api.unvop.com/v1/builds/job_123/retry \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/builds/job_123/retry', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.unvop.com/v1/builds/job_123/retry",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"job": {
"id": "job_123",
"status": "queued",
"stage": "lead",
"message": "Building the homepage",
"prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
"siteId": "site_123",
"hostname": "harbour-bakery.unvop.dev",
"url": "https://harbour-bakery.unvop.dev",
"referenceUrl": null,
"images": [],
"error": null,
"errorCode": null,
"createdAt": "2026-11-20T08:00:00.000Z",
"updatedAt": "2026-11-20T08:00:00.000Z"
}
}Upload a file for a build
/builds/uploads/{kind}Upload the owner’s logo (PNG, JPEG, WebP or SVG), an inspiration image, or a screenshot to rebuild, as multipart/form-data in a "file" field. Returns an upload id to pass to POST /builds as logo, icon, inspiration or screenshot.upload. Uploads stay private to your account.
Path parameters
kindstringrequiredlogo, inspiration or screenshot.
Request body multipart/form-data
filefilerequiredaltstring
Response 201
uploadobjectrequired1 child field
idstringrequired
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 404Not found, or not reachable with this key.
- 413Too large.
- 422The body is invalid; details say which values.
- 429Too many requests; wait for RateLimit-Reset seconds.
This endpoint takes a file upload, so Try it is off here. Use the curl example.
curl https://api.unvop.com/v1/builds/uploads/logo \
-H "Authorization: Bearer $UNVOP_KEY" \
-F "file=@logo.png"const form = new FormData();
form.append('file', fileBlob, 'logo.png');
const res = await fetch('https://api.unvop.com/v1/builds/uploads/logo', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
body: form,
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.unvop.com/v1/builds/uploads/logo",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
files={"file": open("logo.png", "rb")},
)
data = res.json(){
"upload": {
"id": "upl_123"
}
}Check a free address
/subdomains/{name}Whether a free address (name.<sites domain>) is available for a new site.
Path parameters
namestringrequired
Response 200
availablebooleanrequiredhostnamestringurlstringnullablereasonstring
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 404Not found, or not reachable with this key.
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/subdomains/harbour-bakery \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/subdomains/harbour-bakery', {
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.unvop.com/v1/subdomains/harbour-bakery",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"available": true,
"hostname": "harbour-bakery.unvop.dev",
"url": "https://harbour-bakery.unvop.dev",
"reason": null
}Generate a site in one call (legacy)
/generateThe older one-call generator: one model writes a SiteSpec and the site is created when it returns. It has no research, design reference, images or review. Prefer POST /builds, which runs the full pipeline. Send Accept: text/event-stream for progress events.
Headers
Idempotency-KeystringSend the same key to repeat this request safely; the first answer is replayed for 24 hours.
up to 200 characters
Request body JSON
promptstringrequiredat least 20 characters · up to 8,000 characters
namestringat least 1 characters · up to 120 characters
localestringup to 20 characters
hostnamestringownerobject2 child fields
emailstringrequiredemail
namestringup to 120 characters
brandobject4 child fields
tokensmap of stringlogoUrlstringup to 2,000 characters
taglinestringup to 200 characters
notesstringup to 1,000 characters
publishbooleandefault true
dryRunbooleandefault false
Response 201
siteobjectrequirednullableA website.
6 child fields
idstringrequirednamestringrequiredhostnamesarray of stringsrequiredThe web addresses the site answers at.
themestringrequiredsettingsobjectrequiredNavigation, footer, organization, SEO, tokens, design and more.
createdAtstringrequiredAn ISO 8601 timestamp.
urlsobjectrequired4 child fields
sitestringrequirednullableadminstringrequiredsetupstringrequirednullablepreviewstringrequirednullable
warningsarray of objectsrequired2 child fields
pathstringrequiredmessagestringrequired
dryRunbooleanrequired
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 422The body is invalid; details say which values.
- 429Too many requests; wait for RateLimit-Reset seconds.
- 503Not available on this server.
Try itSends a real request. Asks before it changes anything.
curl https://api.unvop.com/v1/generate \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes."
}'const res = await fetch('https://api.unvop.com/v1/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
prompt: "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes."
}),
});
const data = await res.json();import os, requests, uuid
res = requests.post(
"https://api.unvop.com/v1/generate",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
},
)
data = res.json(){
"site": {
"id": "site_123",
"name": "Harbour Bakery",
"hostnames": [
"harbour-bakery.unvop.dev"
],
"theme": "studio",
"settings": {},
"createdAt": "2026-11-20T08:00:00.000Z"
},
"urls": {
"site": "…",
"admin": "…",
"setup": "…",
"preview": "…"
},
"warnings": [],
"dryRun": false
}