Developers Dashboard

A site’s own section types made from a prompt, and React components on agency plans, with their versions, reviews and approvals.

List section types and React components

GET/sites/{siteId}/components

The site’s own kinds of section. Add one to a page with a block of its type (x-<key> or r-<key>) and props in the shape of its fields.

Path parameters

  • siteIdstringrequired

    The site’s id.

Query parameters

  • kindstring

    One of section react

Response 200

  • itemsarray of objectsrequired
    7 child fields
    • idstringrequired
    • kindstringrequired

      One of section react

    • keystringrequired
    • typestringrequired

      The block type to use in page content: x-<key> for a section type, r-<key> for a React component.

    • namestringrequired
    • descriptionstringrequirednullable
    • liveVersionintegerrequirednullable
  • 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/components \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "items": [
    {
      "id": "id_123",
      "kind": "section",
      "key": "team",
      "type": "richText",
      "name": "Ana",
      "description": "Building the homepage",
      "liveVersion": 1
    }
  ],
  "cursor": null,
  "total": 1
}

Create a section type by hand

POST/sites/{siteId}/components
Scopedesign:writeRoleowner or admin

A section type from its parts: fields, a template in the template language (layout elements plus <text field>, <multiline field>, <rich field>, <image field>, <link field>, <each field> and <if field>; no static text, scripts, styles or event attributes) and css, scoped and filtered. Refused with the problems listed when anything is unsafe.

Path parameters

  • siteIdstringrequired

    The site’s id.

Request body JSON

  • namestringrequired

    up to 60 characters

  • descriptionstring

    up to 300 characters

  • fieldsarray of objectsrequired
    4 child fields
    • namestringrequired
    • labelstringrequired
    • typestringrequired
    • fieldsarray
  • templatestringrequired
  • cssstring
  • sampleobject

Response 201

  • componentobjectrequired
    10 child fields
    • idstringrequired
    • kindstringrequired

      One of section react

    • keystringrequired
    • typestringrequired

      The block type to use in page content: x-<key> for a section type, r-<key> for a React component.

    • namestringrequired
    • descriptionstringrequirednullable
    • liveVersionintegerrequirednullable
    • draftanyrequired

      The working copy: section {fields, template, css, sample}; React {source, fields, sample, interactive, origins}.

    • usedOnarray of objectsrequired
      3 child fields
      • idstringrequired
      • titlestringrequired
      • slugstringrequired
    • versionsarray of objectsrequired
      7 child fields
      • versionintegerrequired
      • statusstringrequired

        One of pending approved rejected

      • promptstringrequirednullable
      • reviewanyrequirednullable

        React: the static findings and the AI review.

      • approvedBystringrequirednullable
      • approvedAtstringrequirednullable
      • createdAtstringrequired
  • warningsarray of strings

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/components \
  -H "Authorization: Bearer $UNVOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Ana",
    "fields": [
      {
        "name": "Ana",
        "label": "Role",
        "type": "richText",
        "fields": [
          {}
        ]
      }
    ],
    "template": "…"
  }'
Response 201
{
  "component": {
    "id": "id_123",
    "kind": "section",
    "key": "team",
    "type": "richText",
    "name": "Ana",
    "description": "Building the homepage",
    "liveVersion": 1,
    "draft": {},
    "usedOn": [
      {
        "id": "id_123",
        "title": "About us",
        "slug": "ana"
      }
    ],
    "versions": [
      {
        "version": 1,
        "status": "pending",
        "prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
        "review": null,
        "approvedBy": "…",
        "approvedAt": "2026-11-20T08:00:00.000Z",
        "createdAt": "2026-11-20T08:00:00.000Z"
      }
    ]
  },
  "warnings": []
}

Create a section type from a prompt

POST/sites/{siteId}/components/generate
Scopedesign:writeRoleowner or admin

Describe a section ("a timeline of our history with a photo per year") and get a new section type for this site: fields, a safe template and scoped CSS in the site’s style, live at once. With kind "react" (agency plans) the agent writes a React component draft instead, which must be submitted and approved before it goes live. Takes about half a minute.

Path parameters

  • siteIdstringrequired

    The site’s id.

Request body JSON

  • promptstringrequired

    at least 3 characters · up to 2,000 characters

  • kindstring

    One of section react

Response 201

  • componentobjectrequired
    10 child fields
    • idstringrequired
    • kindstringrequired

      One of section react

    • keystringrequired
    • typestringrequired

      The block type to use in page content: x-<key> for a section type, r-<key> for a React component.

    • namestringrequired
    • descriptionstringrequirednullable
    • liveVersionintegerrequirednullable
    • draftanyrequired

      The working copy: section {fields, template, css, sample}; React {source, fields, sample, interactive, origins}.

    • usedOnarray of objectsrequired
      3 child fields
      • idstringrequired
      • titlestringrequired
      • slugstringrequired
    • versionsarray of objectsrequired
      7 child fields
      • versionintegerrequired
      • statusstringrequired

        One of pending approved rejected

      • promptstringrequirednullable
      • reviewanyrequirednullable

        React: the static findings and the AI review.

      • approvedBystringrequirednullable
      • approvedAtstringrequirednullable
      • createdAtstringrequired
  • warningsarray of strings

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/components/generate \
  -H "Authorization: Bearer $UNVOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes."
  }'
Response 201
{
  "component": {
    "id": "id_123",
    "kind": "section",
    "key": "team",
    "type": "richText",
    "name": "Ana",
    "description": "Building the homepage",
    "liveVersion": 1,
    "draft": {},
    "usedOn": [
      {
        "id": "id_123",
        "title": "About us",
        "slug": "ana"
      }
    ],
    "versions": [
      {
        "version": 1,
        "status": "pending",
        "prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
        "review": null,
        "approvedBy": "…",
        "approvedAt": "2026-11-20T08:00:00.000Z",
        "createdAt": "2026-11-20T08:00:00.000Z"
      }
    ]
  },
  "warnings": []
}

Get a component

GET/sites/{siteId}/components/{component}

A section type or React component by id or key, with its working copy, versions (and reviews) and the pages that use it.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • componentstringrequired

    The component id or key.

Response 200

  • idstringrequired
  • kindstringrequired

    One of section react

  • keystringrequired
  • typestringrequired

    The block type to use in page content: x-<key> for a section type, r-<key> for a React component.

  • namestringrequired
  • descriptionstringrequirednullable
  • liveVersionintegerrequirednullable
  • draftanyrequired

    The working copy: section {fields, template, css, sample}; React {source, fields, sample, interactive, origins}.

  • usedOnarray of objectsrequired
    3 child fields
    • idstringrequired
    • titlestringrequired
    • slugstringrequired
  • versionsarray of objectsrequired
    7 child fields
    • versionintegerrequired
    • statusstringrequired

      One of pending approved rejected

    • promptstringrequirednullable
    • reviewanyrequirednullable

      React: the static findings and the AI review.

    • approvedBystringrequirednullable
    • approvedAtstringrequirednullable
    • createdAtstringrequired

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/components/component_123 \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "id": "id_123",
  "kind": "section",
  "key": "team",
  "type": "richText",
  "name": "Ana",
  "description": "Building the homepage",
  "liveVersion": 1,
  "draft": {},
  "usedOn": [
    {
      "id": "id_123",
      "title": "About us",
      "slug": "ana"
    }
  ],
  "versions": [
    {
      "version": 1,
      "status": "pending",
      "prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
      "review": null,
      "approvedBy": "…",
      "approvedAt": "2026-11-20T08:00:00.000Z",
      "createdAt": "2026-11-20T08:00:00.000Z"
    }
  ]
}

Change a component

PATCH/sites/{siteId}/components/{component}
Scopedesign:writeRoleowner or admin

Section types: send instruction for a change in plain words (the agent makes it), or the full fields, template, css and sample to save by hand; either way a new version goes live. React components: send the draft (source, fields, sample, interactive, origins, name) or an instruction; the draft is saved, and nothing goes live until it is submitted and approved.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • componentstringrequired

    The component id or key.

Request body JSON

  • instructionstring

    up to 2,000 characters

Response 200

  • componentobjectrequired
    10 child fields
    • idstringrequired
    • kindstringrequired

      One of section react

    • keystringrequired
    • typestringrequired

      The block type to use in page content: x-<key> for a section type, r-<key> for a React component.

    • namestringrequired
    • descriptionstringrequirednullable
    • liveVersionintegerrequirednullable
    • draftanyrequired

      The working copy: section {fields, template, css, sample}; React {source, fields, sample, interactive, origins}.

    • usedOnarray of objectsrequired
      3 child fields
      • idstringrequired
      • titlestringrequired
      • slugstringrequired
    • versionsarray of objectsrequired
      7 child fields
      • versionintegerrequired
      • statusstringrequired

        One of pending approved rejected

      • promptstringrequirednullable
      • reviewanyrequirednullable

        React: the static findings and the AI review.

      • approvedBystringrequirednullable
      • approvedAtstringrequirednullable
      • createdAtstringrequired
  • warningsarray of strings

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/components/component_123 \
  -H "Authorization: Bearer $UNVOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "instruction": "…"
  }'
Response 200
{
  "component": {
    "id": "id_123",
    "kind": "section",
    "key": "team",
    "type": "richText",
    "name": "Ana",
    "description": "Building the homepage",
    "liveVersion": 1,
    "draft": {},
    "usedOn": [
      {
        "id": "id_123",
        "title": "About us",
        "slug": "ana"
      }
    ],
    "versions": [
      {
        "version": 1,
        "status": "pending",
        "prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
        "review": null,
        "approvedBy": "…",
        "approvedAt": "2026-11-20T08:00:00.000Z",
        "createdAt": "2026-11-20T08:00:00.000Z"
      }
    ]
  },
  "warnings": []
}

Delete a component

DEL/sites/{siteId}/components/{component}
Scopedesign:writeRoleowner or admin

Deletes the component and its versions. Sections of this type disappear from the pages that use them.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • componentstringrequired

    The component id or key.

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.
  • 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/components/component_123 \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "ok": true
}

List a component’s versions

GET/sites/{siteId}/components/{component}/versions

Every version, newest first: who made and approved it, its review, and which one is live. Versions never change; publishing an older one is a rollback.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • componentstringrequired

    The component id or key.

Response 200

  • itemsarray of objectsrequired
    7 child fields
    • versionintegerrequired
    • statusstringrequired

      One of pending approved rejected

    • promptstringrequirednullable
    • reviewanyrequirednullable

      React: the static findings and the AI review.

    • approvedBystringrequirednullable
    • approvedAtstringrequirednullable
    • createdAtstringrequired
  • 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/components/component_123/versions \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "items": [
    {
      "version": 1,
      "status": "pending",
      "prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
      "review": null,
      "approvedBy": "…",
      "approvedAt": "2026-11-20T08:00:00.000Z",
      "createdAt": "2026-11-20T08:00:00.000Z"
    }
  ],
  "cursor": null,
  "total": 1
}

Send a React component for review

POST/sites/{siteId}/components/{component}/submit
Scopedesign:writeRoleowner or admin

Compiles the draft, runs the static checks, renders it once in the sandbox and runs the AI review. The result is a pending version that an owner or admin approves with publishComponent.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • componentstringrequired

    The component id or key.

Response 201

  • idstringrequired
  • kindstringrequired

    One of section react

  • keystringrequired
  • typestringrequired

    The block type to use in page content: x-<key> for a section type, r-<key> for a React component.

  • namestringrequired
  • descriptionstringrequirednullable
  • liveVersionintegerrequirednullable
  • draftanyrequired

    The working copy: section {fields, template, css, sample}; React {source, fields, sample, interactive, origins}.

  • usedOnarray of objectsrequired
    3 child fields
    • idstringrequired
    • titlestringrequired
    • slugstringrequired
  • versionsarray of objectsrequired
    7 child fields
    • versionintegerrequired
    • statusstringrequired

      One of pending approved rejected

    • promptstringrequirednullable
    • reviewanyrequirednullable

      React: the static findings and the AI review.

    • approvedBystringrequirednullable
    • approvedAtstringrequirednullable
    • createdAtstringrequired

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/components/component_123/submit \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 201
{
  "id": "id_123",
  "kind": "section",
  "key": "team",
  "type": "richText",
  "name": "Ana",
  "description": "Building the homepage",
  "liveVersion": 1,
  "draft": {},
  "usedOn": [
    {
      "id": "id_123",
      "title": "About us",
      "slug": "ana"
    }
  ],
  "versions": [
    {
      "version": 1,
      "status": "pending",
      "prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
      "review": null,
      "approvedBy": "…",
      "approvedAt": "2026-11-20T08:00:00.000Z",
      "createdAt": "2026-11-20T08:00:00.000Z"
    }
  ]
}

Publish a version

POST/sites/{siteId}/components/{component}/publish
Scopedesign:writeRoleowner or admin

Makes version live. For a React component a pending version is approved first, recorded against the caller; an approved one is simply made live again (rollback). For a section type any version can be made live.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • componentstringrequired

    The component id or key.

Request body JSON

  • versionintegerrequired

    min 1

Response 200

  • idstringrequired
  • kindstringrequired

    One of section react

  • keystringrequired
  • typestringrequired

    The block type to use in page content: x-<key> for a section type, r-<key> for a React component.

  • namestringrequired
  • descriptionstringrequirednullable
  • liveVersionintegerrequirednullable
  • draftanyrequired

    The working copy: section {fields, template, css, sample}; React {source, fields, sample, interactive, origins}.

  • usedOnarray of objectsrequired
    3 child fields
    • idstringrequired
    • titlestringrequired
    • slugstringrequired
  • versionsarray of objectsrequired
    7 child fields
    • versionintegerrequired
    • statusstringrequired

      One of pending approved rejected

    • promptstringrequirednullable
    • reviewanyrequirednullable

      React: the static findings and the AI review.

    • approvedBystringrequirednullable
    • approvedAtstringrequirednullable
    • createdAtstringrequired

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/components/component_123/publish \
  -H "Authorization: Bearer $UNVOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "version": 1
  }'
Response 200
{
  "id": "id_123",
  "kind": "section",
  "key": "team",
  "type": "richText",
  "name": "Ana",
  "description": "Building the homepage",
  "liveVersion": 1,
  "draft": {},
  "usedOn": [
    {
      "id": "id_123",
      "title": "About us",
      "slug": "ana"
    }
  ],
  "versions": [
    {
      "version": 1,
      "status": "pending",
      "prompt": "Harbour Bakery is a family bakery in Falmouth. Sourdough, pastries and celebration cakes.",
      "review": null,
      "approvedBy": "…",
      "approvedAt": "2026-11-20T08:00:00.000Z",
      "createdAt": "2026-11-20T08:00:00.000Z"
    }
  ]
}