Developers Dashboard

Pages, articles and the blocks inside them.

List block types

GET/sites/{siteId}/blocks

Every 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

  • siteIdstringrequired

    The site’s id.

Response 200

  • itemsarrayrequired
  • cursorstringnullable

    Pass as ?cursor= to get the next page. Null when there are no more.

  • totalinteger

    How 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"
Response 200
{
  "items": [
    {}
  ],
  "cursor": null,
  "total": 1
}

List pages

GET/sites/{siteId}/pages

Every page and article on the site, the homepage first. Entry page templates of collections are listed only with ?kind=template.

Path parameters

  • siteIdstringrequired

    The site’s id.

Query parameters

  • kindstring

    One of page post template

Response 200

  • itemsarray of objectsrequired
    7 child fields
    • idstringrequired
    • slugstringrequired

      The address, like "/" or "/insights/my-post".

    • kindstringrequired

      One of page post template

    • titlestringrequired
    • statusstringrequired

      changed: live, with draft edits not yet published.

      One of draft published changed

    • updatedAtstringrequired

      An ISO 8601 timestamp.

    • publishedAtstringnullable

      An ISO 8601 timestamp.

  • cursorstringnullable

    Pass as ?cursor= to get the next page. Null when there are no more.

  • totalinteger

    How 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"
Response 200
{
  "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

POST/sites/{siteId}/pages
Scopecontent:writeIdempotent with a key

Add 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

  • siteIdstringrequired

    The site’s id.

Headers

  • Idempotency-Keystring

    Send the same key to repeat this request safely; the first answer is replayed for 24 hours.

    up to 200 characters

Request body JSON

  • titlestringrequired

    at least 1 characters · up to 200 characters

  • kindstringrequired

    One of page post

  • slugstring

    up to 200 characters

  • templateIdstring

    up to 64 characters

Response 201

  • idstringrequired
  • slugstringrequired

    The address, like "/" or "/insights/my-post".

  • kindstringrequired

    One of page post template

  • titlestringrequired
  • statusstringrequired

    changed: live, with draft edits not yet published.

    One of draft published changed

  • updatedAtstringrequired

    An ISO 8601 timestamp.

  • publishedAtstringnullable

    An ISO 8601 timestamp.

  • siteIdstringrequired
  • seoobjectrequired
  • blocksarray of objectsrequired
    6 child fields
    • idstringrequired

      Unique within the page.

    • typestringrequired

      A block type from GET /sites/{siteId}/blocks.

    • variantstring
    • propsobjectrequired

      The block’s content, shaped by its fields.

    • hiddenboolean
    • anchorstring

      An id for in-page links, like "pricing".

  • postobject
  • createdAtstringrequired

    An 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"
  }'
Response 201
{
  "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

GET/sites/{siteId}/pages/{page}/blocks
Scopecontent:readReturns an ETag

The blocks of the page’s draft, in order.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

Response 200

  • itemsarray of objectsrequired
    6 child fields
    • idstringrequired

      Unique within the page.

    • typestringrequired

      A block type from GET /sites/{siteId}/blocks.

    • variantstring
    • propsobjectrequired

      The block’s content, shaped by its fields.

    • hiddenboolean
    • anchorstring

      An 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"
Response 200
{
  "items": [
    {
      "id": "b_hero",
      "type": "richText",
      "variant": "default",
      "props": {
        "heading": "Fresh bread from 7am"
      },
      "hidden": false,
      "anchor": "pricing"
    }
  ]
}

Add a block

POST/sites/{siteId}/pages/{page}/blocks
Scopecontent:writeAccepts If-Match

Insert 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

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

Headers

  • If-Matchstring

    The ETag from your last read. The write is refused with 412 if the page changed since.

Request body JSON

  • typestringrequired

    A block type from GET /sites/{siteId}/blocks.

    at least 1 characters · up to 64 characters

  • propsobject

    Content for the block’s fields. Missing fields take the block’s defaults.

    default {}

  • variantstring

    up to 64 characters

  • hiddenboolean
  • anchorstring

    up to 64 characters

  • idstring

    Leave out to get a fresh id.

    up to 64 characters

  • positioninteger

    Where to put it, counting from 0. Default: the end.

    min 0

  • afterstring

    Put it right after the block with this id.

    up to 64 characters

  • beforestring

    Put it right before the block with this id.

    up to 64 characters

Response 201

  • pageobjectrequired

    A page with its blocks (the draft unless ?version=published).

    12 child fields
    • idstringrequired
    • slugstringrequired

      The address, like "/" or "/insights/my-post".

    • kindstringrequired

      One of page post template

    • titlestringrequired
    • statusstringrequired

      changed: live, with draft edits not yet published.

      One of draft published changed

    • updatedAtstringrequired

      An ISO 8601 timestamp.

    • publishedAtstringnullable

      An ISO 8601 timestamp.

    • siteIdstringrequired
    • seoobjectrequired
    • blocksarray of objectsrequired
      6 child fields
      • idstringrequired

        Unique within the page.

      • typestringrequired

        A block type from GET /sites/{siteId}/blocks.

      • variantstring
      • propsobjectrequired

        The block’s content, shaped by its fields.

      • hiddenboolean
      • anchorstring

        An id for in-page links, like "pricing".

    • postobject
    • createdAtstringrequired

      An ISO 8601 timestamp.

  • blockobjectrequired

    One section of a page.

    6 child fields
    • idstringrequired

      Unique within the page.

    • typestringrequired

      A block type from GET /sites/{siteId}/blocks.

    • variantstring
    • propsobjectrequired

      The block’s content, shaped by its fields.

    • hiddenboolean
    • anchorstring

      An 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"
  }'
Response 201
{
  "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

GET/sites/{siteId}/pages/{page}/blocks/{blockId}

One block of the page’s draft.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

  • blockIdstringrequired

Response 200

  • idstringrequired

    Unique within the page.

  • typestringrequired

    A block type from GET /sites/{siteId}/blocks.

  • variantstring
  • propsobjectrequired

    The block’s content, shaped by its fields.

  • hiddenboolean
  • anchorstring

    An 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"
Response 200
{
  "id": "b_hero",
  "type": "richText",
  "variant": "default",
  "props": {
    "heading": "Fresh bread from 7am"
  },
  "hidden": false,
  "anchor": "pricing"
}

Change a block

PATCH/sites/{siteId}/pages/{page}/blocks/{blockId}
Scopecontent:writeAccepts If-Match

Change a block’s props, variant, visibility or anchor in the page’s draft. Props you leave out are kept.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

  • blockIdstringrequired

Headers

  • If-Matchstring

    The ETag from your last read. The write is refused with 412 if the page changed since.

Request body JSON

  • propsobject

    Props to change. Others are kept. Send null for a prop to remove it.

  • variantstringnullable

    up to 64 characters

  • hiddenboolean
  • anchorstringnullable

    up to 64 characters

Response 200

  • pageobjectrequired

    A page with its blocks (the draft unless ?version=published).

    12 child fields
    • idstringrequired
    • slugstringrequired

      The address, like "/" or "/insights/my-post".

    • kindstringrequired

      One of page post template

    • titlestringrequired
    • statusstringrequired

      changed: live, with draft edits not yet published.

      One of draft published changed

    • updatedAtstringrequired

      An ISO 8601 timestamp.

    • publishedAtstringnullable

      An ISO 8601 timestamp.

    • siteIdstringrequired
    • seoobjectrequired
    • blocksarray of objectsrequired
      6 child fields
      • idstringrequired

        Unique within the page.

      • typestringrequired

        A block type from GET /sites/{siteId}/blocks.

      • variantstring
      • propsobjectrequired

        The block’s content, shaped by its fields.

      • hiddenboolean
      • anchorstring

        An id for in-page links, like "pricing".

    • postobject
    • createdAtstringrequired

      An ISO 8601 timestamp.

  • blockobjectrequired

    One section of a page.

    6 child fields
    • idstringrequired

      Unique within the page.

    • typestringrequired

      A block type from GET /sites/{siteId}/blocks.

    • variantstring
    • propsobjectrequired

      The block’s content, shaped by its fields.

    • hiddenboolean
    • anchorstring

      An 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"
    }
  }'
Response 200
{
  "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

DEL/sites/{siteId}/pages/{page}/blocks/{blockId}
Scopecontent:writeAccepts If-Match

Remove a block from the page’s draft.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

  • blockIdstringrequired

Headers

  • If-Matchstring

    The ETag from your last read. The write is refused with 412 if the page changed since.

Response 200

  • pageobjectrequired

    A page with its blocks (the draft unless ?version=published).

    12 child fields
    • idstringrequired
    • slugstringrequired

      The address, like "/" or "/insights/my-post".

    • kindstringrequired

      One of page post template

    • titlestringrequired
    • statusstringrequired

      changed: live, with draft edits not yet published.

      One of draft published changed

    • updatedAtstringrequired

      An ISO 8601 timestamp.

    • publishedAtstringnullable

      An ISO 8601 timestamp.

    • siteIdstringrequired
    • seoobjectrequired
    • blocksarray of objectsrequired
      6 child fields
      • idstringrequired

        Unique within the page.

      • typestringrequired

        A block type from GET /sites/{siteId}/blocks.

      • variantstring
      • propsobjectrequired

        The block’s content, shaped by its fields.

      • hiddenboolean
      • anchorstring

        An id for in-page links, like "pricing".

    • postobject
    • createdAtstringrequired

      An 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"
Response 200
{
  "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

POST/sites/{siteId}/pages/{page}/blocks/{blockId}/move
Scopecontent:writeAccepts If-Match

Move a block to a position, or before or after another block.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

  • blockIdstringrequired

Headers

  • If-Matchstring

    The ETag from your last read. The write is refused with 412 if the page changed since.

Request body JSON

  • positioninteger

    Where to put it, counting from 0. Default: the end.

    min 0

  • afterstring

    Put it right after the block with this id.

    up to 64 characters

  • beforestring

    Put it right before the block with this id.

    up to 64 characters

Response 200

  • pageobjectrequired

    A page with its blocks (the draft unless ?version=published).

    12 child fields
    • idstringrequired
    • slugstringrequired

      The address, like "/" or "/insights/my-post".

    • kindstringrequired

      One of page post template

    • titlestringrequired
    • statusstringrequired

      changed: live, with draft edits not yet published.

      One of draft published changed

    • updatedAtstringrequired

      An ISO 8601 timestamp.

    • publishedAtstringnullable

      An ISO 8601 timestamp.

    • siteIdstringrequired
    • seoobjectrequired
    • blocksarray of objectsrequired
      6 child fields
      • idstringrequired

        Unique within the page.

      • typestringrequired

        A block type from GET /sites/{siteId}/blocks.

      • variantstring
      • propsobjectrequired

        The block’s content, shaped by its fields.

      • hiddenboolean
      • anchorstring

        An id for in-page links, like "pricing".

    • postobject
    • createdAtstringrequired

      An 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": "…"
  }'
Response 200
{
  "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

POST/sites/{siteId}/pages/{page}/publish

Make 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

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

Request body JSON

  • notestring

    up to 200 characters

Response 200

  • idstringrequired
  • slugstringrequired

    The address, like "/" or "/insights/my-post".

  • kindstringrequired

    One of page post template

  • titlestringrequired
  • statusstringrequired

    changed: live, with draft edits not yet published.

    One of draft published changed

  • updatedAtstringrequired

    An ISO 8601 timestamp.

  • publishedAtstringnullable

    An ISO 8601 timestamp.

  • siteIdstringrequired
  • seoobjectrequired
  • blocksarray of objectsrequired
    6 child fields
    • idstringrequired

      Unique within the page.

    • typestringrequired

      A block type from GET /sites/{siteId}/blocks.

    • variantstring
    • propsobjectrequired

      The block’s content, shaped by its fields.

    • hiddenboolean
    • anchorstring

      An id for in-page links, like "pricing".

  • postobject
  • createdAtstringrequired

    An 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"
  }'
Response 200
{
  "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

POST/sites/{siteId}/pages/{page}/unpublish

Take the page off the live site. The draft is kept. The homepage can’t be unpublished.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

Response 200

  • idstringrequired
  • slugstringrequired

    The address, like "/" or "/insights/my-post".

  • kindstringrequired

    One of page post template

  • titlestringrequired
  • statusstringrequired

    changed: live, with draft edits not yet published.

    One of draft published changed

  • updatedAtstringrequired

    An ISO 8601 timestamp.

  • publishedAtstringnullable

    An ISO 8601 timestamp.

  • siteIdstringrequired
  • seoobjectrequired
  • blocksarray of objectsrequired
    6 child fields
    • idstringrequired

      Unique within the page.

    • typestringrequired

      A block type from GET /sites/{siteId}/blocks.

    • variantstring
    • propsobjectrequired

      The block’s content, shaped by its fields.

    • hiddenboolean
    • anchorstring

      An id for in-page links, like "pricing".

  • postobject
  • createdAtstringrequired

    An 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"
Response 200
{
  "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

POST/sites/{siteId}/pages/{page}/duplicate

Copy the page’s draft to a new draft page at a free address.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

Response 201

  • idstringrequired
  • slugstringrequired

    The address, like "/" or "/insights/my-post".

  • kindstringrequired

    One of page post template

  • titlestringrequired
  • statusstringrequired

    changed: live, with draft edits not yet published.

    One of draft published changed

  • updatedAtstringrequired

    An ISO 8601 timestamp.

  • publishedAtstringnullable

    An ISO 8601 timestamp.

  • siteIdstringrequired
  • seoobjectrequired
  • blocksarray of objectsrequired
    6 child fields
    • idstringrequired

      Unique within the page.

    • typestringrequired

      A block type from GET /sites/{siteId}/blocks.

    • variantstring
    • propsobjectrequired

      The block’s content, shaped by its fields.

    • hiddenboolean
    • anchorstring

      An id for in-page links, like "pricing".

  • postobject
  • createdAtstringrequired

    An 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"
Response 201
{
  "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

GET/sites/{siteId}/pages/{page}/revisions

The page’s last 50 published versions, newest first.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

Response 200

  • itemsarray of objectsrequired
    5 child fields
    • idstringrequired
    • pageIdstringrequired
    • notestring
    • createdAtstringrequired

      An 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"
Response 200
{
  "items": [
    {
      "id": "rev_123",
      "pageId": "page_123",
      "note": "New opening hours",
      "createdAt": "2026-11-20T08:00:00.000Z"
    }
  ]
}

Restore a revision

POST/sites/{siteId}/pages/{page}/revisions/{revisionId}/restore

Put a published version back as the page’s draft. Publish it to make it live again.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

  • revisionIdstringrequired

Response 200

  • idstringrequired
  • slugstringrequired

    The address, like "/" or "/insights/my-post".

  • kindstringrequired

    One of page post template

  • titlestringrequired
  • statusstringrequired

    changed: live, with draft edits not yet published.

    One of draft published changed

  • updatedAtstringrequired

    An ISO 8601 timestamp.

  • publishedAtstringnullable

    An ISO 8601 timestamp.

  • siteIdstringrequired
  • seoobjectrequired
  • blocksarray of objectsrequired
    6 child fields
    • idstringrequired

      Unique within the page.

    • typestringrequired

      A block type from GET /sites/{siteId}/blocks.

    • variantstring
    • propsobjectrequired

      The block’s content, shaped by its fields.

    • hiddenboolean
    • anchorstring

      An id for in-page links, like "pricing".

  • postobject
  • createdAtstringrequired

    An 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"
Response 200
{
  "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

GET/sites/{siteId}/pages/{page}
Scopecontent:readReturns an ETag

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

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

Query parameters

  • versionstring

    One of draft published

Response 200

  • idstringrequired
  • slugstringrequired

    The address, like "/" or "/insights/my-post".

  • kindstringrequired

    One of page post template

  • titlestringrequired
  • statusstringrequired

    changed: live, with draft edits not yet published.

    One of draft published changed

  • updatedAtstringrequired

    An ISO 8601 timestamp.

  • publishedAtstringnullable

    An ISO 8601 timestamp.

  • siteIdstringrequired
  • seoobjectrequired
  • blocksarray of objectsrequired
    6 child fields
    • idstringrequired

      Unique within the page.

    • typestringrequired

      A block type from GET /sites/{siteId}/blocks.

    • variantstring
    • propsobjectrequired

      The block’s content, shaped by its fields.

    • hiddenboolean
    • anchorstring

      An id for in-page links, like "pricing".

  • postobject
  • createdAtstringrequired

    An 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"
Response 200
{
  "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

PUT/sites/{siteId}/pages/{page}
Scopecontent:writeAccepts If-Match

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

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A page id (pg_…) or its address: "index" for the homepage, "about" for /about, "insights/my-post" for /insights/my-post.

Headers

  • If-Matchstring

    The ETag from your last read. The write is refused with 412 if the page changed since.

Request body JSON

  • titlestringrequired

    at least 1 characters · up to 200 characters

  • kindstring

    One of page post

  • seoobject

    title, description, ogImage, canonical, noindex.

  • postobject

    Articles only: excerpt, author, cover, tags.

  • blocksarray of objectsrequired

    up to 250 items

  • publishboolean

    Publish straight away. Default: save as a draft.

    default false

Response 200

  • pageobjectrequired

    A page with its blocks (the draft unless ?version=published).

    12 child fields
    • idstringrequired
    • slugstringrequired

      The address, like "/" or "/insights/my-post".

    • kindstringrequired

      One of page post template

    • titlestringrequired
    • statusstringrequired

      changed: live, with draft edits not yet published.

      One of draft published changed

    • updatedAtstringrequired

      An ISO 8601 timestamp.

    • publishedAtstringnullable

      An ISO 8601 timestamp.

    • siteIdstringrequired
    • seoobjectrequired
    • blocksarray of objectsrequired
      6 child fields
      • idstringrequired

        Unique within the page.

      • typestringrequired

        A block type from GET /sites/{siteId}/blocks.

      • variantstring
      • propsobjectrequired

        The block’s content, shaped by its fields.

      • hiddenboolean
      • anchorstring

        An id for in-page links, like "pricing".

    • postobject
    • createdAtstringrequired

      An ISO 8601 timestamp.

  • createdbooleanrequired
  • 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 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
  }'
Response 200
{
  "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

DEL/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

  • siteIdstringrequired

    The site’s id.

  • pagestringrequired

    A 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"
Response 200
{
  "ok": true
}