Developers Dashboard

Create, change, publish and delete sites.

The site schema

GET/schema
No key needed

What a SiteSpec may contain for a theme: the theme’s tokens and forms, every block type with its fields, and the SiteSpec JSON Schema. Use it to write a whole site for POST /sites, or valid blocks for pages. No key needed.

Query parameters

  • themestring

    A theme id. Default: the base theme.

Response 200

  • versionstringrequired
  • blocksarrayrequired
  • siteSpecanyrequired

Errors

  • 422The body is invalid; details say which values.
Try itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/schema
Response 200
{
  "version": "v_123",
  "blocks": [
    {}
  ],
  "siteSpec": {}
}

Create a site

POST/sites
Scopesites:writeIdempotent with a key

Create a site from a SiteSpec you wrote, or from the base template with just a name. To have Unvop research, design and write the whole site from a description, start a build with POST /builds instead. Add ?dryRun=1 to validate without creating anything.

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

  • specobject

    A whole SiteSpec (see GET /schema). Leave it out to start from the base template.

  • namestring

    at least 1 characters · up to 120 characters

  • hostnamestring

    A web address for the site. Without one, a free subdomain is assigned when the platform has one.

  • ownerobject

    Invite this person as the owner. They get a link to set their password.

    2 child fields
    • emailstringrequired

      email

    • namestring

      up to 120 characters

  • publishboolean

    default true

Response 201

  • siteobjectrequirednullable

    A website.

    6 child fields
    • idstringrequired
    • namestringrequired
    • hostnamesarray of stringsrequired

      The web addresses the site answers at.

    • themestringrequired
    • settingsobjectrequired

      Navigation, footer, organization, SEO, tokens, design and more.

    • createdAtstringrequired

      An ISO 8601 timestamp.

  • urlsobjectrequired
    4 child fields
    • sitestringrequirednullable
    • adminstringrequired
    • setupstringrequirednullable
    • previewstringrequirednullable
  • warningsarray of objectsrequired
    2 child fields
    • pathstringrequired
    • messagestringrequired
  • dryRunbooleanrequired

Errors

  • 401No key, or the key isn’t valid.
  • 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
  • 409It conflicts with the current state.
  • 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 \
  -H "Authorization: Bearer $UNVOP_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "name": "Harbour Bakery",
    "owner": {
      "email": "owner@example.com",
      "name": "Sam"
    }
  }'
Response 201
{
  "site": {
    "id": "site_123",
    "name": "Harbour Bakery",
    "hostnames": [
      "harbour-bakery.unvop.dev"
    ],
    "theme": "studio",
    "settings": {},
    "createdAt": "2026-11-20T08:00:00.000Z"
  },
  "urls": {
    "site": "…",
    "admin": "…",
    "setup": "…",
    "preview": "…"
  },
  "warnings": [],
  "dryRun": false
}

List sites

GET/sites

The sites this key can reach, newest first. A site key sees its one site; an account key or OAuth grant sees the account’s sites it was given.

Query parameters

  • limitinteger

    How many to return (default 50).

    min 1 · max 200

  • cursorstring

    The cursor from the previous page.

Response 200

  • itemsarray of objectsrequired
    6 child fields
    • idstringrequired
    • namestringrequired
    • hostnamesarray of stringsrequired

      The web addresses the site answers at.

    • themestringrequired
    • settingsobjectrequired

      Navigation, footer, organization, SEO, tokens, design and more.

    • createdAtstringrequired

      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).
  • 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 \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "items": [
    {
      "id": "site_123",
      "name": "Harbour Bakery",
      "hostnames": [
        "harbour-bakery.unvop.dev"
      ],
      "theme": "studio",
      "settings": {},
      "createdAt": "2026-11-20T08:00:00.000Z"
    }
  ],
  "cursor": null,
  "total": 1
}

Get a site

GET/sites/{siteId}

One site with its settings.

Path parameters

  • siteIdstringrequired

    The site’s id.

Response 200

  • idstringrequired
  • namestringrequired
  • hostnamesarray of stringsrequired

    The web addresses the site answers at.

  • themestringrequired
  • settingsobjectrequired

    Navigation, footer, organization, SEO, tokens, design and more.

  • 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 itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/sites/site_123 \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "id": "site_123",
  "name": "Harbour Bakery",
  "hostnames": [
    "harbour-bakery.unvop.dev"
  ],
  "theme": "studio",
  "settings": {},
  "createdAt": "2026-11-20T08:00:00.000Z"
}

Update a site

PATCH/sites/{siteId}

Rename the site, change its web addresses, set brand tokens, the logo and tagline, or replace parts of its settings. Only the fields you send change. Brand tokens, the logo, theme, nav and footer save as a site-wide draft, as in the dashboard: the live site keeps its current look until you publish (POST /sites/{siteId}/publish, or publishing any page). The response shows the settings as they will look once published.

Path parameters

  • siteIdstringrequired

    The site’s id.

Request body JSON

  • namestring

    at least 1 characters · up to 120 characters

  • hostnamesarray of strings

    up to 10 items

  • brandobject

    Brand tokens (theme colours and fonts), the logo and the tagline.

    3 child fields
    • tokensmap of string
    • logoUrlstring

      up to 2,000 characters

    • taglinestring

      up to 200 characters

  • settingsobject

    Replace these settings: tagline, nav, footer, organization, seo, theme, crm. nav, footer and theme save as a draft until you publish.

Response 200

  • idstringrequired
  • namestringrequired
  • hostnamesarray of stringsrequired

    The web addresses the site answers at.

  • themestringrequired
  • settingsobjectrequired

    Navigation, footer, organization, SEO, tokens, design and more.

  • 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.
  • 409It conflicts with the current state.
  • 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 \
  -H "Authorization: Bearer $UNVOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Harbour Bakery",
    "hostnames": [
      "harbour-bakery.unvop.dev"
    ]
  }'
Response 200
{
  "id": "site_123",
  "name": "Harbour Bakery",
  "hostnames": [
    "harbour-bakery.unvop.dev"
  ],
  "theme": "studio",
  "settings": {},
  "createdAt": "2026-11-20T08:00:00.000Z"
}

Delete a site

DEL/sites/{siteId}

Delete a site. Add ?confirm=<siteId> to show you mean it. By default the site is hidden and its addresses released; add &hard=1 to remove it and all its data permanently. Needs a platform key.

Path parameters

  • siteIdstringrequired

    The site’s id.

Query parameters

  • confirmstringrequired

    The site id again.

  • hardstring

    1 to delete permanently.

    One of 1

Response 200

  • oktruerequired
  • deletedstringrequired

    One of soft hard

Errors

  • 400The request is malformed.
  • 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.
  • 410Gone.
  • 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 DELETE https://api.unvop.com/v1/sites/site_123?confirm=site_123 \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "ok": true,
  "deleted": "soft"
}

Publish every page

POST/sites/{siteId}/publish

Publish the draft of every page at once, and the site-wide draft (site style, logo, menu and footer changes) with them. settings lists the parts of the site-wide draft that went live (empty when there was none). To publish one page, use POST /sites/{siteId}/pages/{page}/publish, which also publishes the site-wide draft.

Path parameters

  • siteIdstringrequired

    The site’s id.

Response 200

  • oktruerequired
  • publishedintegerrequired
  • settingsarray of stringsrequired

    One of style logo menu footer

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/publish \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "ok": true,
  "published": 1,
  "settings": [
    "style"
  ]
}