---
title: "space.build-preview@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/space.build-preview"
updated: null
---

# space.build-preview@1 · OpenVibe.Services

HTML: [space.build-preview@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/space.build-preview)

# SpaceBuildPreview `space.build-preview@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: space
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/space/build-preview.v1.json`](/docs/contracts/space.build-preview.json)

space.build-preview@1: where a person's space can be seen right now, as their agent sees it (OpenVibe.Space's builder API; plan 2026-10-22 §Z stage Z1). GET /api/v1/spaces/:id/preview answers { url, files, published }: the address to open (the editor with its live preview while the space is a draft, its own address once it is published), the paths of the files it is made of, and whether it is live.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `url` | string | yes | Where the space can be seen now. | - `format uri` |
| `files` | array of string | yes | The paths of the files the space is made of. | - `items: maxLength 80` |
| `published` | boolean | yes |  |  |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: draft

~~~~
{
  "url": "https://openvibe.space/spaces/my-podcast/edit",
  "files": [
    "index.html",
    "style.css"
  ],
  "published": false
}
~~~~

Rejected: not-a-boolean

~~~~
{
  "url": "https://openvibe.space/spaces/my-podcast/edit",
  "files": [],
  "published": "yes"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('space.build-preview@1', value);   // { valid, errors: [{ path, message }] }
~~~~
