Pages
Pages, articles and the blocks inside them.
- GET
/sites/{siteId}/blocksList block types - GET
/sites/{siteId}/pagesList pages - POST
/sites/{siteId}/pagesCreate a page - GET
/sites/{siteId}/pages/{page}/blocksList a page’s blocks - POST
/sites/{siteId}/pages/{page}/blocksAdd a block - GET
/sites/{siteId}/pages/{page}/blocks/{blockId}Get a block - PATCH
/sites/{siteId}/pages/{page}/blocks/{blockId}Change a block - DEL
/sites/{siteId}/pages/{page}/blocks/{blockId}Remove a block - POST
/sites/{siteId}/pages/{page}/blocks/{blockId}/moveMove a block - POST
/sites/{siteId}/pages/{page}/publishPublish a page - POST
/sites/{siteId}/pages/{page}/unpublishUnpublish a page - POST
/sites/{siteId}/pages/{page}/duplicateDuplicate a page - GET
/sites/{siteId}/pages/{page}/revisionsList revisions - POST
/sites/{siteId}/pages/{page}/revisions/{revisionId}/restoreRestore a revision - GET
/sites/{siteId}/pages/{page}Get a page - PUT
/sites/{siteId}/pages/{page}Create or replace a page - DEL
/sites/{siteId}/pages/{page}Delete a page
List block types
/sites/{siteId}/blocksEvery block the site’s pages can use, with its fields (name, type, label, options), defaults and variants. Use it to build valid blocks for pages.
Path parameters
siteIdstringrequiredThe site’s id.
Response 200
itemsarrayrequiredcursorstringnullablePass 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).
- 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/blocks \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/blocks', {
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/blocks",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{}
],
"cursor": null,
"total": 1
}List pages
/sites/{siteId}/pagesEvery page and article on the site, the homepage first. Entry page templates of collections are listed only with ?kind=template.
Path parameters
siteIdstringrequiredThe site’s id.
Query parameters
kindstringOne of
pageposttemplate
Response 200
itemsarray of objectsrequired7 child fields
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn 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).
- 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 itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/sites/site_123/pages \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages', {
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/pages",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null
}
],
"cursor": null,
"total": 1
}Create a page
/sites/{siteId}/pagesAdd a page or article from a title, optionally from one of the theme’s templates. It starts as a draft with a free address made from the title (or the slug you give). To write a whole page with its blocks in one call, use PUT /sites/{siteId}/pages/{page} instead.
Path parameters
siteIdstringrequiredThe site’s id.
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
titlestringrequiredat least 1 characters · up to 200 characters
kindstringrequiredOne of
pagepostslugstringup to 200 characters
templateIdstringup to 64 characters
Response 201
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn 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 https://api.unvop.com/v1/sites/site_123/pages \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"title": "About us",
"kind": "page"
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
title: "About us",
kind: "page"
}),
});
const data = await res.json();import os, requests, uuid
res = requests.post(
"https://api.unvop.com/v1/sites/site_123/pages",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"title": "About us",
"kind": "page",
},
)
data = res.json(){
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
}List a page’s blocks
/sites/{siteId}/pages/{page}/blocksThe blocks of the page’s draft, in order.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
Response 200
itemsarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
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/pages/index/blocks \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/blocks', {
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/pages/index/blocks",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
]
}Add a block
/sites/{siteId}/pages/{page}/blocksInsert a block into the page’s draft: at the end, at a position, or before or after another block. The page is validated as a whole; nothing is published until you publish it.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
Headers
If-MatchstringThe ETag from your last read. The write is refused with 412 if the page changed since.
Request body JSON
typestringrequiredA block type from GET /sites/{siteId}/blocks.
at least 1 characters · up to 64 characters
propsobjectContent for the block’s fields. Missing fields take the block’s defaults.
default {}
variantstringup to 64 characters
hiddenbooleananchorstringup to 64 characters
idstringLeave out to get a fresh id.
up to 64 characters
positionintegerWhere to put it, counting from 0. Default: the end.
min 0
afterstringPut it right after the block with this id.
up to 64 characters
beforestringPut it right before the block with this id.
up to 64 characters
Response 201
pageobjectrequiredA page with its blocks (the draft unless ?version=published).
12 child fields
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn ISO 8601 timestamp.
blockobjectrequiredOne section of a page.
6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
warningsarrayrequired
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.
- 412The page changed since you read it (If-Match).
- 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 https://api.unvop.com/v1/sites/site_123/pages/index/blocks \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "richText",
"props": {
"body": "<p>Open every day from 8.</p>"
},
"after": "b_hero"
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/blocks', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
type: "richText",
props: {
body: "<p>Open every day from 8.</p>"
},
after: "b_hero"
}),
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.unvop.com/v1/sites/site_123/pages/index/blocks",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"type": "richText",
"props": {
"body": "<p>Open every day from 8.</p>",
},
"after": "b_hero",
},
)
data = res.json(){
"page": {
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
},
"block": {
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
},
"warnings": []
}Get a block
/sites/{siteId}/pages/{page}/blocks/{blockId}One block of the page’s draft.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
blockIdstringrequired
Response 200
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
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/pages/index/blocks/b_hero \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/blocks/b_hero', {
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/pages/index/blocks/b_hero",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}Change a block
/sites/{siteId}/pages/{page}/blocks/{blockId}Change a block’s props, variant, visibility or anchor in the page’s draft. Props you leave out are kept.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
blockIdstringrequired
Headers
If-MatchstringThe ETag from your last read. The write is refused with 412 if the page changed since.
Request body JSON
propsobjectProps to change. Others are kept. Send null for a prop to remove it.
variantstringnullableup to 64 characters
hiddenbooleananchorstringnullableup to 64 characters
Response 200
pageobjectrequiredA page with its blocks (the draft unless ?version=published).
12 child fields
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn ISO 8601 timestamp.
blockobjectrequiredOne section of a page.
6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
warningsarrayrequired
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.
- 412The page changed since you read it (If-Match).
- 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/pages/index/blocks/b_hero \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"props": {
"heading": "Fresh bread from 7am"
}
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/blocks/b_hero', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
props: {
heading: "Fresh bread from 7am"
}
}),
});
const data = await res.json();import os, requests
res = requests.patch(
"https://api.unvop.com/v1/sites/site_123/pages/index/blocks/b_hero",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"props": {
"heading": "Fresh bread from 7am",
},
},
)
data = res.json(){
"page": {
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
},
"block": {
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
},
"warnings": []
}Remove a block
/sites/{siteId}/pages/{page}/blocks/{blockId}Remove a block from the page’s draft.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
blockIdstringrequired
Headers
If-MatchstringThe ETag from your last read. The write is refused with 412 if the page changed since.
Response 200
pageobjectrequiredA page with its blocks (the draft unless ?version=published).
12 child fields
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn ISO 8601 timestamp.
warningsarrayrequired
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.
- 412The page changed since you read it (If-Match).
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itSends a real request. Asks before it changes anything.
curl -X DELETE https://api.unvop.com/v1/sites/site_123/pages/index/blocks/b_hero \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/blocks/b_hero', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.delete(
"https://api.unvop.com/v1/sites/site_123/pages/index/blocks/b_hero",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"page": {
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
},
"warnings": []
}Move a block
/sites/{siteId}/pages/{page}/blocks/{blockId}/moveMove a block to a position, or before or after another block.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
blockIdstringrequired
Headers
If-MatchstringThe ETag from your last read. The write is refused with 412 if the page changed since.
Request body JSON
positionintegerWhere to put it, counting from 0. Default: the end.
min 0
afterstringPut it right after the block with this id.
up to 64 characters
beforestringPut it right before the block with this id.
up to 64 characters
Response 200
pageobjectrequiredA page with its blocks (the draft unless ?version=published).
12 child fields
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn ISO 8601 timestamp.
warningsarrayrequired
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.
- 412The page changed since you read it (If-Match).
- 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 https://api.unvop.com/v1/sites/site_123/pages/index/blocks/b_hero/move \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"position": 0,
"after": "…"
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/blocks/b_hero/move', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
position: 0,
after: "…"
}),
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.unvop.com/v1/sites/site_123/pages/index/blocks/b_hero/move",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"position": 0,
"after": "…",
},
)
data = res.json(){
"page": {
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
},
"warnings": []
}Publish a page
/sites/{siteId}/pages/{page}/publishMake the page’s draft live. Any waiting site-wide changes (site style, logo, menu and footer, saved through the settings or design endpoints) go live with it; sitePublished lists them when there were some. A revision is kept, so it can be restored later.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
Request body JSON
notestringup to 200 characters
Response 200
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn 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 https://api.unvop.com/v1/sites/site_123/pages/index/publish \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"note": "New opening hours"
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/publish', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
note: "New opening hours"
}),
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.unvop.com/v1/sites/site_123/pages/index/publish",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"note": "New opening hours",
},
)
data = res.json(){
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
}Unpublish a page
/sites/{siteId}/pages/{page}/unpublishTake the page off the live site. The draft is kept. The homepage can’t be unpublished.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
Response 200
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn 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/pages/index/unpublish \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/unpublish', {
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/pages/index/unpublish",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
}Duplicate a page
/sites/{siteId}/pages/{page}/duplicateCopy the page’s draft to a new draft page at a free address.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
Response 201
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn 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/pages/index/duplicate \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/duplicate', {
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/pages/index/duplicate",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
}List revisions
/sites/{siteId}/pages/{page}/revisionsThe page’s last 50 published versions, newest first.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
Response 200
itemsarray of objectsrequired5 child fields
idstringrequiredpageIdstringrequirednotestringcreatedAtstringrequiredAn ISO 8601 timestamp.
userNamestring
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/pages/index/revisions \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/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/pages/index/revisions",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{
"id": "rev_123",
"pageId": "page_123",
"note": "New opening hours",
"createdAt": "2026-11-20T08:00:00.000Z"
}
]
}Restore a revision
/sites/{siteId}/pages/{page}/revisions/{revisionId}/restorePut a published version back as the page’s draft. Publish it to make it live again.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
revisionIdstringrequired
Response 200
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn 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/pages/index/revisions/rev_123/restore \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index/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/pages/index/revisions/rev_123/restore",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"id": "rev_123",
"slug": "ana",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
}Get a page
/sites/{siteId}/pages/{page}A page with all its blocks: the draft, or the live version with ?version=published. The ETag header can be sent back as If-Match when you save.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
Query parameters
versionstringOne of
draftpublished
Response 200
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn 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 itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/sites/site_123/pages/index \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index', {
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/pages/index",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
}Create or replace a page
/sites/{siteId}/pages/{page}Write a whole page at an address: its title, SEO and every block. Creates the page when nothing is there. The blocks are checked against the theme’s block types; errors name the exact path (pages[0].blocks[2].props.heading). Saved as a draft unless publish is true (which also puts any waiting site-wide changes live). Send If-Match with the ETag you read to avoid overwriting someone else’s change.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
Headers
If-MatchstringThe ETag from your last read. The write is refused with 412 if the page changed since.
Request body JSON
titlestringrequiredat least 1 characters · up to 200 characters
kindstringOne of
pagepostseoobjecttitle, description, ogImage, canonical, noindex.
postobjectArticles only: excerpt, author, cover, tags.
blocksarray of objectsrequiredup to 250 items
publishbooleanPublish straight away. Default: save as a draft.
default false
Response 200
pageobjectrequiredA page with its blocks (the draft unless ?version=published).
12 child fields
idstringrequiredslugstringrequiredThe address, like "/" or "/insights/my-post".
kindstringrequiredOne of
pageposttemplatetitlestringrequiredstatusstringrequiredchanged: live, with draft edits not yet published.
One of
draftpublishedchangedupdatedAtstringrequiredAn ISO 8601 timestamp.
publishedAtstringnullableAn ISO 8601 timestamp.
siteIdstringrequiredseoobjectrequiredblocksarray of objectsrequired6 child fields
idstringrequiredUnique within the page.
typestringrequiredA block type from GET /sites/{siteId}/blocks.
variantstringpropsobjectrequiredThe block’s content, shaped by its fields.
hiddenbooleananchorstringAn id for in-page links, like "pricing".
postobjectcreatedAtstringrequiredAn ISO 8601 timestamp.
createdbooleanrequiredwarningsarrayrequired
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.
- 412The page changed since you read it (If-Match).
- 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 PUT https://api.unvop.com/v1/sites/site_123/pages/index \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "About us",
"blocks": [
{
"id": "b1",
"type": "richText",
"props": {
"body": "<p>We bake every morning.</p>"
}
}
],
"publish": false
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: "About us",
blocks: [
{
id: "b1",
type: "richText",
props: {
body: "<p>We bake every morning.</p>"
}
}
],
publish: false
}),
});
const data = await res.json();import os, requests
res = requests.put(
"https://api.unvop.com/v1/sites/site_123/pages/index",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"title": "About us",
"blocks": [
{
"id": "b1",
"type": "richText",
"props": {
"body": "<p>We bake every morning.</p>",
},
},
],
"publish": False,
},
)
data = res.json(){
"page": {
"id": "pg_123",
"slug": "/about",
"kind": "page",
"title": "About us",
"status": "draft",
"updatedAt": "2026-11-20T08:00:00.000Z",
"publishedAt": null,
"siteId": "site_123",
"seo": {},
"blocks": [
{
"id": "b_hero",
"type": "richText",
"variant": "default",
"props": {
"heading": "Fresh bread from 7am"
},
"hidden": false,
"anchor": "pricing"
}
],
"post": {},
"createdAt": "2026-11-20T08:00:00.000Z"
},
"created": false,
"warnings": []
}Delete a page
/sites/{siteId}/pages/{page}Delete a page and take it off the live site. The homepage can’t be deleted; replace it with PUT instead.
Path parameters
siteIdstringrequiredThe site’s id.
pagestringrequiredA page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.
Response 200
oktruerequired
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.
- 412The page changed since you read it (If-Match).
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itSends a real request. Asks before it changes anything.
curl -X DELETE https://api.unvop.com/v1/sites/site_123/pages/index \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/pages/index', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.delete(
"https://api.unvop.com/v1/sites/site_123/pages/index",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"ok": true
}