Settings
Site settings.
Get settings
/sites/{siteId}/settingsThe site with its settings, theme tokens, public address and launch checklist, as the dashboard’s Settings shows them: with any unpublished site-wide draft applied, and draft naming what is waiting (null when the live site matches). GET /sites/{siteId} returns the live settings.
Path parameters
siteIdstringrequiredThe site’s id.
Response 200
siteobjectrequiredA 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.
themeobjectrequired3 child fields
idstringrequirednamestringrequiredtokensarrayrequired
urlstringrequiredThe site’s public address.
launchanyrequiredThe launch checklist.
draftobjectnullableSite-wide changes saved but not live yet (site style, logo, menu, footer), or null. site.settings already includes them; publishing any page or POST /sites/{siteId}/publish puts them live.
2 child fields
areasarray of stringsrequiredOne of
stylelogomenufooterupdatedAtstringrequiredAn 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/sites/site_123/settings \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/settings', {
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.unvop.com/v1/sites/site_123/settings",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
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"
},
"theme": {
"id": "id_123",
"name": "Ana",
"tokens": [
{}
]
},
"url": "https://harbour-bakery.unvop.dev",
"launch": {},
"draft": {
"areas": [
"style"
],
"updatedAt": "2026-11-20T08:00:00.000Z"
}
}Change settings
/sites/{siteId}/settingsChange the site’s name, addresses or settings (nav, footer, organization, seo, tokens, locations, menu, articles, design fonts). Settings you send replace those keys; others are kept. Same checks as the dashboard. The site style (tokens, logo, favicon, theme, design css, fonts and view transitions) and the menu and footer (nav, menu, footer) save as a site-wide draft: the live site is unchanged until you publish (POST /sites/{siteId}/publish or any page publish), and POST /sites/{siteId}/settings/discard throws the draft away. The name, addresses, organization (contact details), seo, locations, map and articles apply at once. Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
Request body JSON
namestringup to 120 characters
hostnamesarray of stringsup to 10 items
settingsobject
Response 200
siteobjectrequiredA 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.
themeobjectrequired3 child fields
idstringrequirednamestringrequiredtokensarrayrequired
urlstringrequiredThe site’s public address.
launchanyrequiredThe launch checklist.
draftobjectnullableSite-wide changes saved but not live yet (site style, logo, menu, footer), or null. site.settings already includes them; publishing any page or POST /sites/{siteId}/publish puts them live.
2 child fields
areasarray of stringsrequiredOne of
stylelogomenufooterupdatedAtstringrequiredAn 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.
- 422The body is invalid; details say which values.
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itSends a real request. Asks before it changes anything.
curl -X PATCH https://api.unvop.com/v1/sites/site_123/settings \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ana",
"hostnames": [
"harbour-bakery.unvop.dev"
]
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/settings', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: "Ana",
hostnames: [
"harbour-bakery.unvop.dev"
]
}),
});
const data = await res.json();import os, requests
res = requests.patch(
"https://api.unvop.com/v1/sites/site_123/settings",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"name": "Ana",
"hostnames": [
"harbour-bakery.unvop.dev",
],
},
)
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"
},
"theme": {
"id": "id_123",
"name": "Ana",
"tokens": [
{}
]
},
"url": "https://harbour-bakery.unvop.dev",
"launch": {},
"draft": {
"areas": [
"style"
],
"updatedAt": "2026-11-20T08:00:00.000Z"
}
}Discard site-wide changes
/sites/{siteId}/settings/discardThrow away the unpublished site-wide draft (site style, logo, menu and footer changes) so the settings match the live site again. Pages’ drafts are not touched. Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
Response 200
siteobjectrequiredA 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.
themeobjectrequired3 child fields
idstringrequirednamestringrequiredtokensarrayrequired
urlstringrequiredThe site’s public address.
launchanyrequiredThe launch checklist.
draftobjectnullableSite-wide changes saved but not live yet (site style, logo, menu, footer), or null. site.settings already includes them; publishing any page or POST /sites/{siteId}/publish puts them live.
2 child fields
areasarray of stringsrequiredOne of
stylelogomenufooterupdatedAtstringrequiredAn 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 itSends a real request. Asks before it changes anything.
curl -X POST https://api.unvop.com/v1/sites/site_123/settings/discard \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/settings/discard', {
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/sites/site_123/settings/discard",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
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"
},
"theme": {
"id": "id_123",
"name": "Ana",
"tokens": [
{}
]
},
"url": "https://harbour-bakery.unvop.dev",
"launch": {},
"draft": {
"areas": [
"style"
],
"updatedAt": "2026-11-20T08:00:00.000Z"
}
}List site-wide versions
/sites/{siteId}/settings/revisionsThe last 50 published versions of the site style, logo, menu and footer, newest first, with the parts each publish changed (areas). The oldest may be what was live before the first site-wide publish.
Path parameters
siteIdstringrequiredThe site’s id.
Response 200
itemsarray of objectsrequired5 child fields
idstringrequirednotestringareasarray of stringsrequiredcreatedAtstringrequireduserNamestring
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/sites/site_123/settings/revisions \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/settings/revisions', {
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.unvop.com/v1/sites/site_123/settings/revisions",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{
"id": "rev_123",
"note": "New opening hours",
"areas": [],
"createdAt": "2026-11-20T08:00:00.000Z"
}
]
}Restore a site-wide version
/sites/{siteId}/settings/revisions/{revisionId}/restoreMake a published version of the site style, logo, menu and footer the site-wide draft again. Publish to put it live; this is how a site-wide publish is undone. Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
revisionIdstringrequiredA revision id from GET /sites/{siteId}/settings/revisions.
Response 200
siteobjectrequiredA 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.
themeobjectrequired3 child fields
idstringrequirednamestringrequiredtokensarrayrequired
urlstringrequiredThe site’s public address.
launchanyrequiredThe launch checklist.
draftobjectnullableSite-wide changes saved but not live yet (site style, logo, menu, footer), or null. site.settings already includes them; publishing any page or POST /sites/{siteId}/publish puts them live.
2 child fields
areasarray of stringsrequiredOne of
stylelogomenufooterupdatedAtstringrequiredAn 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 itSends a real request. Asks before it changes anything.
curl -X POST https://api.unvop.com/v1/sites/site_123/settings/revisions/rev_123/restore \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/settings/revisions/rev_123/restore', {
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/sites/site_123/settings/revisions/rev_123/restore",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
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"
},
"theme": {
"id": "id_123",
"name": "Ana",
"tokens": [
{}
]
},
"url": "https://harbour-bakery.unvop.dev",
"launch": {},
"draft": {
"areas": [
"style"
],
"updatedAt": "2026-11-20T08:00:00.000Z"
}
}