Verse by CtruhDocsPlug-insPricingOpen in the docs site

API reference

Everything Verse does is plain HTTP on one origin: upload a 3D file, poll the compile, get a signed streaming link, own it, share it privately, pin review comments on it, publish tours and posters, watch the platform. The playground, /studio, the embed SDK and the Blender, Unity and Unreal exporters are all clients of these routes — nothing below is internal.

Every request and response shape on this page was executed against a live server before it was written down.

Conventions

Requests and responses

JSON in, JSON out, except where a body is raw bytes (GLB, PNG, upload parts) and where noted (204, 302, SSE). All /v1/* responses are Cache-Control: no-store (exception: /v1/pubkey, public, max-age=300). Scene artifacts under /ingest/* are immutable and cacheable (Cache-Control: public, immutable on hashed artifacts, ranges supported).

Error contract

Every error the application generates carries the header X-Verse-Error: 1 and a JSON body {"error": "<human-readable cause>"}. Every status ≥ 400 from every route — 400, 401, 402, 404, 405, 409, 413, 429, 500, 503, 507 — follows the rule, static-file 404s included:

curl -sS -D - https://verse.ctruh.com/v1/ingest/does-not-exist
# HTTP/1.1 404 Not Found
# X-Verse-Error: 1
# {"error":"unknown job"}

The header is the deterministic tell between the app and the network edge. Hosting proxies occasionally answer a request themselves — a bare 400 on a large or aborted body, a 502/504 on a timeout — and those responses do not carry it. Clients should treat:

Success responses never carry the header. The bundled exporters implement exactly this rule.

On the ingest routes the body also carries errorInfo — the structured twin of error (see Friendly errors). error is always a string.

Authentication

Three credentials, each optional, each for a different job:

CredentialHeaderGrants
API key vk_…X-API-Key: vk_…upload quota in keyed mode. Daily quota per key, default 512 MB; over → 429; unknown key → 401.
Account token (64 hex) — required to upload on verse.ctruh.comAuthorization: Bearer <token> — or the httpOnly verse_session cookie that POST /v1/account/login setsownership of what you publish, the account routes, /studio, moderation, and the per-account ingest rate limit. Returned once at POST /v1/account.
Share token (32 hex)?share=<token> on the URL, or X-Verse-Share: <token>read access to one private scene's artifacts and review comments. Minted by the owner, revocable individually.

A request carrying both an API key and account auth is quota-checked by the key and owned by the account.

Sign up free, then upload. On the hosted service every route that adds content refuses an unsigned caller with 401 before reading the body: POST /v1/ingest (including the capture and game kinds), /v1/ingest/begin, PUT /v1/ingest/part/<id>, POST /v1/ingest/commit/<id>, /v1/ingest/url, /v1/plan2home/analyze and /build, /v1/poster, /v1/tour, /v1/experience and the MCP upload tools. A valid account token, a verse_session cookie, an org key (vk_…) or a provisioned X-API-Key counts as signed in. The body is

{ "error": "Uploading to Verse needs a free account. Opening a Verse link never does. Sign up free with your email, then upload again.",
  "errorInfo": { "code": "signin_required", "title": "Create a free account to upload", "retryable": false, … },
  "code": "signin_required", "signup_url": "https://verse.ctruh.com/signin" }

GET /v1/auth/options and GET /v1/limits report requireSignin / signInRequired. Viewing is untouched: published scenes (including those uploaded anonymously before the switch) and every public page keep working.

People signing in through the website use a six-digit code sent by email or WhatsApp (Sign in); that creates the same verse_session cookie. The code routes (/v1/auth/*) exist for the website only and are not a stable API: scripts and plug-ins keep using the account token.

Rate limits

Exceeding a limit returns 429 with a body that says which limit and a Retry-After header. On the hosted service an account can upload 100 files an hour; files over 500 MB also count against an hourly cap by plan (2 on Free, 5 on Starter, 10 on Pro, 25 on Scale; code: "large_upload_limit"). GET /v1/limits reports the live numbers (uploadsPerHour, largeUploadMB, largeUploadsPerHour). Other routes (publishing, review posts, account creation, sign-in, dashboard reads, telemetry, the assistant) have their own generous limits.

Plan allowances: 402 and the Verse-Upgrade header

Every plan has monthly allowances (storage, bandwidth, API calls, Verse Homes, films, room captures, renders, seats, max upload — see Plans and pricing). The server enforces all of them. API calls are requests authenticated with an Authorization: Bearer header (an org API key or an account token); they are counted per account and per key for the billing month. /v1/plans, sign-in and webhooks are never counted, and a browser session (cookie) is not an API call.

At an allowance the route answers 402 Payment Required:

{
  "error": "Your API allowance for this month is used up. Starter includes more API calls a month.",
  "code": "upgrade_required",
  "feature": "apiCallsPerMonth",
  "limit": <your plan's allowance>,
  "used": <the same number>,
  "plan": "free",
  "suggest": "starter",
  "upgrade_url": "https://verse.ctruh.com/pricing?from=api_call&suggest=starter",
  "nudge": { "type": "limit_100", "title": "…", "body": "…", "url": "https://verse.ctruh.com/n/…", "next": { "plan": "starter", "price": { … } } }
}

error, limit, used, plan and upgrade_url are always present (upgradeUrl, relative, is kept for older clients); feature names the allowance (storageGB, bandwidthGB, apiCallsPerMonth, plan2homePerMonth, filmsPerMonth, capturesPerMonth, rendersPerMonth, seats, rawUploadMB, …). The upgrade_url carries the trial offer while the account's trial runs (&offer=trial). A 402 is not retryable until the plan changes or the billing month resets.

A size-cap 402 (feature: rawUploadMB / pluginUploadMB / browserUploadMB, from POST /v1/ingest/begin or a plug-in upload) also carries the caps in bytes so a plug-in can show them without arithmetic: planName and suggestName (display names), limitMB / limitBytes (this plan), nextLimitMB / nextLimitBytes (the suggested plan), bytesPerMB (1,048,576) and fitBytes (the largest prepared file that still fits). The same block is on GET /v1/account/plan as pluginUpload (also for an anonymous caller, at the Free caps), and its upgrade_url is absolute.

Near an allowance (80 % or more of API calls used) every API response carries a Verse-Upgrade header:

Verse-Upgrade: https://verse.ctruh.com/pricing?suggest=starter&from=nudge_limit_80; meter=apiCallsPerMonth; used=82%; plan=free; next=starter

Viewers are never refused: a published scene keeps opening when its owner is over the month's bandwidth (it is served at a lighter quality).

Endpoint index

AreaRoutes
IngestGET /v1/limits · POST /v1/ingest · GET /v1/ingest/<job> · POST /v1/ingest/<job>/contact · POST /v1/ingest/url · POST /v1/ingest/begin · `PUTGET /v1/ingest/part/<uploadId>·POST /v1/ingest/commit/<uploadId>`
AccountsPOST /v1/account · POST /v1/account/login · POST /v1/account/logout · GET /v1/account · GET /v1/account/scenes · GET /v1/account/stats · GET /v1/account/analytics[.csv] · `GETPOST /v1/account/webhooks·DELETE /v1/account/webhooks/<id>·GET /v1/account/webhooks/<id>/deliveries`
ScenesPOST /v1/scenes/<id>/claim · DELETE /v1/scenes/<id> · PATCH /v1/scenes/<id> · GET /v1/scenes/<id>/stats · `POSTGET /v1/scenes/<id>/share·DELETE /v1/scenes/<id>/share/<shareId>·GET /v1/scenes/<id>/current·/v1/scenes/<id>/versions[/<n>[/diff/activate/file/stage]]·GET /v1/scenes/<id>/heatmap·GET /v1/scenes/<id>/analytics[.csv]·GET /v1/scenes/<id>/report[.csv]·GETPOST /v1/scenes/<id>/report/links·DELETE /v1/scenes/<id>/report/links/<linkId>·GET /v1/reports/<token>[.csv]·GETPUTDELETE /v1/scenes/<id>/enquiry·GET /v1/scenes/<id>/experiences·PUTGET /v1/scenes/<id>/experience·PUT /v1/scenes/<id>/ground·GETPUT /v1/scenes/<id>/config`
EmbedsGET /oembed · GET /embed (the lazy embed card)
Review comments`POSTGET /v1/review/<scene>·DELETE /v1/review/<scene>/<id>·POST /v1/review/<scene>/<id>/resolve`
PublishingPOST /v1/experience · `GETPUT /v1/experience/<id>·POST /v1/experience/<id>/media·POST /v1/tour·POST /v1/poster`
PresenceGET /v1/room/<room>/events (SSE) · POST /v1/room/<room>/pose · POST /v1/room/<room>/signal · POST /v1/room/<room>/leave · POST /v1/tour/invite · GET /v1/tour/invite/<code> · GET /t/<code>
SigningGET /v1/pubkey
StatusGET /v1/health/deep · GET /v1/status · GET /v1/config
Floor plan to 3D homePOST /v1/plan2home/analyze · POST /v1/plan2home/build · GET /v1/plan2home/status
AssistantPOST /v1/assist (SSE) · GET /v1/assist/status

Ingest

GET /v1/limits

What an uploader should know before choosing a file. Public, no auth, Cache-Control: public, max-age=60. The app's upload screen and its preflight are driven by this body; guide: What you can upload.

curl -sS https://verse.ctruh.com/v1/limits
{
  "limits": { "maxUploadBytes": 21474836480, "maxUploadMB": 1024, "oneShotMaxMB": 95, "resumableAboveMB": 64, "preparedLimitMB": 1024, "maxPreparedUploadMB": 20480,
              "maxSplats": 4000000,
              "uploadsPerHour": { "anonymous": 0, "account": 100 }, "largeUploadMB": 500, "largeUploadsPerHour": { "free": 2, "starter": 5, "pro": 10, "scale": 25 },
              "signInRequired": true, "jobRecordTtlMin": 120, … },
  "formats": [ { "ext": "glb", "name": "GLB (binary glTF 2.0)", "kind": "mesh", "note": "…" }, … ],
  "extensions": { "decoded": ["KHR_draco_mesh_compression", "KHR_mesh_quantization", "EXT_texture_webp", "KHR_texture_basisu", "EXT_meshopt_compression", "KHR_meshopt_compression"],
                  "unsupported": ["EXT_texture_avif", "KHR_gaussian_splatting"] },
  "recommended": { "triangles": 3000000, "textures": 400, "textureSizePx": 2048, "fileMB": 170, "basis": "…", "note": "…" },
  "timing": { "secondsPerMB": 8, "floorS": 15, "source": "formula", "samples": 0 },
  "queue": { "active": 1, "compiling": 1, "waiting": 0 },
  "notify": { "email": true },
  "scanImport": { "extensions": ["usdz", "usd", "usda", "usdc", "glb", "gltf", "ply", "obj", "zip", "e57", "las", "laz", "xyz", "pts", "splat"],
                  "maxUploadMB": 512,
                  "maxCloudPoints": 200000000, "maxSplats": 4000000,
                  "up": ["auto", "x", "y", "z", "-x", "-y", "-z"], "units": ["auto", "m", "cm", "mm", "in", "ft"], "linkImport": false }
}
FieldMeaning
limitsenforced — what this server accepts
recommendedrecommendations, not limits — the largest scene tested every release; larger scenes are attempted
timingtypical build seconds per source MB — source: "history" once the server has enough completed builds of its own, else the "formula" (~8 s/MB)
queuelive: how busy the server is right now
notify.emailwhether this server can email uploaders (see contact)
scanImportImport a scan: the capture extensions, the upload cap, the point and splat caps, the accepted X-Verse-Up / X-Verse-Units values, and linkImport: false (a hosted-tour link is recognised, not fetched)

POST /v1/ingest

Upload a 3D file; the compile runs in the background.

curl -sS -X POST https://verse.ctruh.com/v1/ingest \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: model/gltf-binary" -H "X-Verse-Name: docs-demo" \
  --data-binary @scene.glb
# HTTP/1.1 202 Accepted
# {"job":"docs-demo-718035483f84"}

GET /v1/ingest/<job>

Fidelity mode (2.8) adds to a done record: path ("fidelity" | "streamed"), glbUrl (https://verse.ctruh.com/ingest/<id>.fidelity.glb), classification ({ kind, path, requested, resolved, reason? } — which road was taken and why), look, digest (sha256:<hex> of the artifact) and signature (base64 Ed25519 over that digest, verifiable with /v1/pubkey), stats.mode: "fidelity"; arUrl as for a streamed scene.

Poll every few seconds until status leaves "compiling". Small models compile in seconds; multi-million-triangle scans in minutes. estimateS is the expected build time.

A finished record may carry prepare: { inputBytes, outputBytes, resized, meshesInstanced, seconds } when the server ran verse-prepare on the upload (it does not when the file arrived with the marker), and its fixes line says what changed.

curl -sS https://verse.ctruh.com/v1/ingest/docs-demo-718035483f84
{ "status": "compiling", "stage": "textures", "started": 1790833827622, "sizeMB": 0.0016, "estimateS": 15,
  "attempt": 1, "progress": 0.31, "etaS": 9, "etaText": "A few seconds left",
  "preflight": { "format": "glb", "triangles": 24, "meshes": 2, "materials": 2, "textures": 0, "compression": [] } }
{
  "status":   "done",
  "finished": 1790833827961,
  "url":      "https://verse.ctruh.com/?vpk=ingest/docs-demo-718035483f84.vpk",
  "vpkUrl":   "https://verse.ctruh.com/ingest/docs-demo-718035483f84.vpk",
  "stageUrl": "https://verse.ctruh.com/ingest/docs-demo-718035483f84.stage.json",
  "planUrl":  "https://verse.ctruh.com/ingest/docs-demo-718035483f84.plan.svg",
  "arUrl":    "https://verse.ctruh.com/ingest/docs-demo-718035483f84.usdz",
  "ar":       { "bytes": 13122418, "triangles": 24, "textures": 0, "resized": 0, "seconds": 0.01 },
  "stats":    { "mode": "streamed", "tris": 24 },
  "signed":   true,
  "verify":   { "ok": true }
}
{ "status": "error", "finished": 1790833827961,
  "error": "The file has no meshes with triangles — nothing we could show. Make sure the objects are selected and visible when exporting, and that “Mesh” is ticked in the exporter. Curves, empties and cameras alone are not enough.",
  "errorInfo": { "code": "no_meshes", "title": "There is no 3D geometry in this file",
                 "message": "The file has no meshes with triangles — nothing we could show.",
                 "fix": "Make sure the objects are selected and visible when exporting, …", "retryable": false } }

While compiling:

FieldMeaning
progress0..1, never goes back
etaS / etaTextseconds left and its label ("About 6 min left"). Never counts up: it includes the queue wait while queued, and once a build overruns its estimate etaS is 0, overEstimate is true and the label reads "Finishing up — taking a little longer than usual". Absent during preparing (no number is promised before the server knows whether the job must queue)
queue{ position, waiting } while the job waits its turn
attempt1..3 — which build attempt is running (failed builds retry automatically)
healingpresent while a retry runs: one plain sentence for the uploader, e.g. "Rebuilding with lighter settings. No action needed."
preflightwhat the server's inspection found: format, triangles, meshes, materials, textures, compression
fixeswhat the server repaired on the fly, in plain words (also on the done record)
contacttrue once a contact is attached (never the contact itself)

When done:

FieldMeaning
urlthe share link — opens the viewer and streams
vpkUrl / vspUrl / vpcUrlthe compiled scene file itself (signed)
cdnUrlpresent when a CDN is configured: the same artifact on the edge (the origin URL would 302 there anyway)
stageUrl / planUrlthe staging manifest and floor plan (below); absent when the scene has no walkable floor
arUrl / ar(2.7) See it in your room: the iOS AR Quick Look package GET /ingest/<id>.usdz (model/vnd.usdz+zip; same visibility and ?v= rules as the scene) and its report { bytes, triangles, textures, resized, seconds } — present for product-scale scenes (interiors never); otherwise ar: { skipped } says why and there is no arUrl
propsUrl(2.7) IFC/USD scenes: the <id>.props.json object index — per-object identity, storeys, types and property sets (IFC and USD)
convert(2.7) IFC/USD scenes: the conversion report { kind, schema, products, triangles, materials, storeys, skipped, seconds } (while stage is converting: { kind, phase, done, total })
stats{ tris } for meshes (+ products for IFC/USD), { splats } for captures, { points } for point clouds; healed: true when the scene landed on a retry
attemptspresent when more than one build attempt was needed (also on a final error)
signedtrue = Ed25519-signed by this server and the signature verified before the job was marked done. (false only on .vsp splat jobs whose signing failed; the capture still streams and the record carries warning)
verify{ ok, repaired? } — every scene is verified before the link is handed out; repaired lists anything fixed on the spot
stats.mode"streamed" (a .vpk) or "classic" — published through the lossless fallback; the record then has modelUrl instead of vpkUrl, plus fallback { mode, reason } and notice (the sentence to show the uploader)
posteradded later by the first viewer's automatic capture (ingest/<id>.poster.png)
prepare{ inputBytes, outputBytes, resized, meshesInstanced, seconds } when the server ran verse-prepare on the upload
bake(2.7) when the upload asked for a bake: { quality, seconds }, or { quality, skipped } with the reason the scene was published live-lit instead — see Bake for me

Compile stages

While compiling, stage is live text such as preparing, converting, baking, queued, textures, geometry, packing, signing, verifying or publishing. Treat the value as informational: new stages may be added, so never gate behaviour on a specific string.

Friendly errors

No raw compiler, OS or runtime text ever reaches an uploader. Every failure maps to one entry of a single list of codes:

codeWhen
file_too_large · empty_file · unsupported_format · already_compiled · gltf_versionthe file is not something the server builds
gltf_external_filesa GLB/glTF that references a separate .bin or image files
corrupt_file · no_meshes · unsupported_geometry · unsupported_feature · bad_texturethe model itself: damaged, empty, lines/points, a compression that cannot be decoded, an unreadable image
splat_invalid · splat_too_manyGaussian-splat captures
cloud_invalid · cloud_too_manypoint clouds (.ply/.las/.laz/.e57; 200 M-point cap)
bim_invalid(2.7) not a readable IFC or USD file, or it has no objects with geometry — not retryable
convert_failed(2.7) the IFC/USD converter crashed or ran past its budget (15 min) — retryable
rate_limited · quota_exceeded · auth_required · bad_requestthe request
storage_full · server_busy · server_unreachablethe server cannot take the upload right now (507, 503, a gateway timeout) — retryable
upload_interrupted · upload_incomplete · upload_expired · networkthe transfer
out_of_memory · compile_timeout · output_invalidthe build failed after the automatic retries and the model was too large for compatibility mode
compile_stalled · compile_interrupted · server_restart · compiler_unavailable · storage_write_failedour side — retryable, we are alerted
unknown_jobjob records expire after 2 hours
internalanything unforeseen: an honest generic message; the full detail is in our server log and we are alerted

Treat unknown codes as internal; new codes may be added.

Retries and verification

A build that fails for a recoverable reason is retried automatically, up to 3 attempts, on lighter settings. Every scene is verified before its job is marked done, so a broken file is never handed out as a link. While a retry runs the record carries attempt and healing; a healed scene reports stats.healed: true and attempts. If every attempt fails, the job still ends done in compatibility mode (below).

Lossless fallback

When every attempt fails, the uploader still gets a working link: the model itself is published in compatibility mode (full quality, one larger download).

{ "status": "done",
  "url": "https://verse.ctruh.com/?model=ingest/villa-0413581a2dd3.classic.glb",
  "modelUrl": "https://verse.ctruh.com/ingest/villa-0413581a2dd3.classic.glb",
  "stats": { "mode": "classic", "tris": 184220 },
  "fallback": { "mode": "classic", "reason": "out_of_memory" },
  "notice": "Published in compatibility mode: full quality, larger download.",
  "attempts": 3 }

POST /v1/ingest/<job>/contact

Attach the uploader's contact to a job — the app's "email me when it's live" form. JSON body, max 4 KB:

curl -sS -X POST https://verse.ctruh.com/v1/ingest/docs-demo-718035483f84/contact \
  -H "Content-Type: application/json" \
  -d '{"name":"Sam Example","phone":"+00 000 000 0000","email":"sam@example.com","consent":true}'
# {"ok":true,"emailConfigured":true,"emailed":false,"notify":"when-live"}

Staging sidecars

Walkable scenes also get, beside the scene file:

Retention

Account-owned scenes are permanent. Scenes without an owner may be removed after a while; sign in to keep scenes permanently. Uploaded source files are deleted after the build, except for a scene published in compatibility mode, where the uploaded file is the scene. Finished job records expire after 2 h.

Bake for me (2.7)

A live-lit GLB — lights in the file (KHR_lights_punctual), no lightmaps — streams with live lighting. Ask for a cloud bake and the server bakes the lighting before it publishes, so the link opens with the baked look (see the guide):

curl -sS -X POST https://verse.ctruh.com/v1/ingest -H "Content-Type: model/gltf-binary" \
  -H "X-Verse-Name: flat-a" -H "X-Verse-Bake: preview" --data-binary @flat-a.glb
# … poll: {"status":"compiling","stage":"baking","bake":{"quality":"preview","done":12,"total":40},"workText":"Baking lighting · 12 of 40"}
# … done: {"status":"done","bake":{"quality":"preview","seconds":312.4},"fixes":["Baked the lighting for you (preview quality): …"]}

Resumable uploads

For clients whose single large POST keeps dying mid-body (edge proxies are unkind to 100 MB+ requests). Same pipeline, different transport: commit answers the exact 202 {job} the one-shot path does and everything from GET /v1/ingest/<job> on is identical. The Blender add-on switches to this flow automatically above 100 MB.

POST /v1/ingest/begin

curl -sS -X POST https://verse.ctruh.com/v1/ingest/begin -H "Content-Type: application/json" \
  -d '{"size":1696,"name":"docs-resumable"}'
# {"uploadId":"c5de5f9fdbf9aab0","received":0,"size":1696}

PUT /v1/ingest/part/<uploadId>

Append one part. Strictly ordered, one at a time: the part's Content-Range start must equal the server's current received.

curl -sS -X PUT https://verse.ctruh.com/v1/ingest/part/c5de5f9fdbf9aab0 \
  -H "Content-Range: bytes 0-847/1696" --data-binary @part1.bin
# {"uploadId":"c5de5f9fdbf9aab0","received":848,"size":1696}
{ "error": "out-of-order part: next byte is 848", "received": 848 }

GET /v1/ingest/part/<uploadId>

200 { uploadId, received, size } — how a client that lost its connection learns where to resume. After a server restart received is the number of bytes that actually reached the disk (it may sit in the middle of the part that was in flight). A committed upload also carries job.

POST /v1/ingest/commit/<uploadId>

Send the same auth headers as a one-shot upload (X-API-Key debits the quota here; Authorization: Bearer stamps the owner).

curl -sS -X POST https://verse.ctruh.com/v1/ingest/commit/c5de5f9fdbf9aab0
# HTTP/1.1 202 Accepted
# {"job":"docs-resumable-c47d410e4f51"}

Upload sessions survive server restarts. After a restart GET /v1/ingest/part/<uploadId> answers the true received and the client continues from there. A client should treat a network error or a gateway status (502/503/504 without X-Verse-Error) on any of these routes as "the server is away": wait, GET the part to resync, carry on. The web app does exactly that and shows "Reconnecting — your upload is safe" meanwhile. 2 hours of inactivity expires a session and later requests answer 404. A 404/405 on begin is also how an older server without these routes announces itself — fall back to one-shot.

Upload from URL

POST /v1/ingest/url — the server fetches the file itself and compiles it exactly like a body upload. For automation platforms (Zapier, Make, n8n) and CMS media libraries, where the file already has a URL and should not pass through the automation platform.

curl -sS -X POST https://verse.ctruh.com/v1/ingest/url -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -d '{"url":"https://www.dropbox.com/scl/fi/…/palm-villa.glb?dl=1","name":"palm-villa"}'
# HTTP/1.1 202 Accepted
# {"job":"palm-villa-3f1c9a2b7e04","sizeBytes":48213990,"source":"uc1234.dl.dropboxusercontent.com"}

Splat captures

POST /v1/ingest with a .splat/.ply body (and ideally X-Verse-Kind: splat) packs a streamed .vsp instead of compiling a mesh. Same limits, quotas, rate buckets and polling (stage packing):

{
  "status": "done",
  "url":    "https://verse.ctruh.com/?model=ingest/room-9f3a01b2c4d5.vsp",
  "vspUrl": "https://verse.ctruh.com/ingest/room-9f3a01b2c4d5.vsp",
  "stats":  { "splats": 1200000 },
  "signed": true
}

.vsp files are Ed25519-signed like every scene. Splats need a browser with WebGPU.

Point clouds

POST /v1/ingest with a .ply (xyz vertices, no 3DGS fields), .las, .laz, .e57 or .xyz / .pts text body — X-Verse-Kind: cloud recommended — publishes a streamed point cloud (.vpc). Same limits, quotas, rate buckets and polling (stage packing); input cap 200 M points (limits.maxCloudPoints; cloud_too_many otherwise, cloud_invalid for unreadable files):

{
  "status": "done",
  "url":    "https://verse.ctruh.com/?model=ingest/scan-9f3a01b2c4d5.vpc",
  "vpcUrl": "https://verse.ctruh.com/ingest/scan-9f3a01b2c4d5.vpc",
  "stats":  { "points": 5000000 },
  "signed": true
}

.vpc files are Ed25519-signed. The viewer streams them with WebGPU and WebGL2; ?cloud=scale,min,max,lit tunes the point discs. Text clouds: one point per line, x y z with optional intensity, colour (0–255 or 0–1) and normal. Formats not read: ASCII LAS text dumps, PTX, .e57 spherical-only scans without Cartesian data.

IFC and USD (2.7)

POST /v1/ingest with an .ifc (IFC2x3 or IFC4 STEP) or a single-file USD (.usdz, .usd, .usda, .usdc) body — X-Verse-Kind: ifc | usd is a hint; the bytes decide. The upload is converted on the server (stage converting) and published like any model, with **every product kept as its own object**: a click names the object, and hiding a storey removes it.

{
  "status": "done",
  "url":      "https://verse.ctruh.com/?vpk=ingest/house-9f3a01b2c4d5.vpk",
  "vpkUrl":   "https://verse.ctruh.com/ingest/house-9f3a01b2c4d5.vpk",
  "propsUrl": "https://verse.ctruh.com/ingest/house-9f3a01b2c4d5.props.json",
  "stats":    { "mode": "streamed", "tris": 48, "products": 4 },
  "convert":  { "kind": "ifc", "schema": "IFC4", "products": 4, "triangles": 48, "materials": 3, "storeys": 2, "skipped": 0, "seconds": 0.1 },
  "fixes":    ["Converted the IFC model (IFC4) on our side: 4 objects, 48 triangles, 2 storeys in 1 s. Click any object in the link for its properties."]
}

FBX and OBJ (3.0)

POST /v1/ingest with an .fbx (binary or ASCII, FBX 2011–2020 / 7.1–7.7), an .obj, or a .zip holding either with its .mtl and textures — X-Verse-Kind: fbx | obj is a hint; the bytes decide. The upload is converted on the server (stage converting; MTL texture paths are repaired against the zip) into a GLB that then takes the ordinary GLB road: Fidelity (X-Verse-Path: fidelity for a product) or streamed. No props sidecar.

{
  "status": "done",
  "url": "https://verse.ctruh.com/?vpk=ingest/boat-9f3a01b2c4d5.vpk",
  "convert": { "kind": "fbx", "schema": "FBX 7.4 ASCII", "container": "zip", "products": 115,
               "triangles": 3747008, "materials": 28, "images": 95, "pbrUpgraded": 28,
               "units": "from the FBX header", "size": [36.2, 19.9, 23.8], "animations": 0, "skins": 0,
               "missingTextures": [], "missingTextureCount": 0, "seconds": 72.1 },
  "fixes": ["Converted the FBX 7.4 ASCII file on our side (from the zip): 115 objects, 3,747,008 triangles, 28 materials, 95 textures — 36 × 20 × 24 m; 28 PBR materials (3ds Max Physical / Stingray / Arnold) mapped in 1 min."]
}

Accounts & Studio

Accounts add ownership, analytics, privacy and moderation on top of ingest. There is no e-mail and no password: the account token is the credential, like an API key.

The token is returned once, at creation. It cannot be recovered or rotated (delete-and-recreate is the rotation story). Anyone holding it controls the account.

Accounts sit beside keyed mode: every existing share link behaves exactly as before, and scenes uploaded anonymously earlier keep streaming (new anonymous uploads are refused on the hosted service). Auth on every account route (and on any ingest, poster, tour or experience publish that should carry an owner): Authorization: Bearer <token>, or the verse_session cookie.

POST /v1/account

curl -sS -X POST https://verse.ctruh.com/v1/account -H "Content-Type: application/json" -d '{"name":"Docs Demo"}'
# {"accountId":"acct-5fab29f5aa8e","name":"Docs Demo","createdAt":1790833829999,
#  "token":"<64 hex, shown once>",
#  "note":"This token is shown once and IS your credential — store it like an API key."}

Hard-limited to 3 per day per IP. name ≤ 80 chars.

POST /v1/account/login · POST /v1/account/logout

curl -sS -c jar.txt -X POST https://verse.ctruh.com/v1/account/login \
  -H "Content-Type: application/json" -d '{"token":"<token>"}'
# {"accountId":"acct-5fab29f5aa8e","name":"Docs Demo"}

login sets verse_session (httpOnly, SameSite=Lax, Secure over https; value = the token) — how /studio authenticates in a browser. logout clears it.

GET /v1/account · /v1/account/scenes · /v1/account/stats

curl -sS https://verse.ctruh.com/v1/account -H "Authorization: Bearer <token>"
# {"accountId":"acct-5fab29f5aa8e","name":"Docs Demo","createdAt":1790833829999}

curl -sS https://verse.ctruh.com/v1/account/scenes -H "Authorization: Bearer <token>"
# {"accountId":"acct-5fab29f5aa8e","scenes":[{"id":"docs-demo-718035483f84","kind":"vpk","path":"streamed",
#   "url":"https://verse.ctruh.com/?vpk=ingest/docs-demo-718035483f84.vpk",
#   "fileUrl":"https://verse.ctruh.com/ingest/docs-demo-718035483f84.vpk","visibility":"unlisted",
#   "engine":{"version":12,"current":12,"older":false},
#   "sizeBytes":46910,"created":1790833827960,
#   "stats":{"opens":0,"uniqueSessions":0,"totalMinutes":0},"reviews":{"open":0,"total":0}},
#  {"id":"shoe-0437dfafa54a","kind":"fidelity","path":"fidelity",
#   "url":"https://verse.ctruh.com/?glb=ingest/shoe-0437dfafa54a.fidelity.glb",
#   "fileUrl":"https://verse.ctruh.com/ingest/shoe-0437dfafa54a.fidelity.glb",
#   "glbUrl":"https://verse.ctruh.com/ingest/shoe-0437dfafa54a.fidelity.glb", …}]}

curl -sS https://verse.ctruh.com/v1/account/stats -H "Authorization: Bearer <token>"
# {"accountId":"acct-5fab29f5aa8e","scenes":1,"opens":0,"uniqueSessions":0,"totalMinutes":0,
#  "last7d":[{"day":"2026-09-25","opens":0}, … 7 entries]}

An open is a visitor's first visit to a scene on a day; totalMinutes is an estimate of time spent. For full analytics see Analytics.

GET /studio is the dashboard built on these routes: create/sign in, scene cards (poster, open, copy link, embed snippet, delete), visibility and share links per scene, stats, claim by id, sign out — and, per streamed scene (2.5.0), a Versions panel (list, diff, make current, delete, upload new version) and an Analytics panel (heatmap over the floor plan + funnel).

POST /v1/early-access

The landing page's "Get early access" form. Body { "email", "role"?, "website"? } (website is a honeypot: leave it empty). Public, no account; 8 / hour / IP. Always 200 { "ok": true } for a valid address, new or repeat, so the endpoint cannot be used to probe the list; 400 { error, field } for a bad address. Each address is stored once, privately, and never logged. A new address may receive one thank-you email; replying "unsubscribe" opts out.

GET /v1/unsubscribe?t=<token>

The one-click unsubscribe in every early-access and plug-in email (also sent as List-Unsubscribe / List-Unsubscribe-Post). The token is signed per address; GET or POST removes the address from every future send and answers a small page. Replying "unsubscribe" is honoured too.

POST /v1/interest

The site's plug-in interest beacon: a click on a plug-in's download link, guide link or "Notify me" button sends { "plugin", "action": "download" | "guide" | "notify", "page" } (204; unknown values are ignored). The server adds nothing per person: a coarse two-letter country from the edge header when there is one, and a count of signed-in clicks. No IP, email or user agent is stored. POST /v1/early-access also takes "plugin": "<id>" for "Notify me when it's ready" on a coming-soon plug-in: the address is stored once, tagged with the plug-in ids, and gets no thank-you email.

Plug-in browser sign-in: /v1/auth/device · /v1/me

How the Unity, Unreal, Blender and Substance 3D Painter plug-ins get an account key without a pasted token. The plug-in calls POST /v1/auth/device with {client, host?} and gets {device_code, user_code, verify_url, interval, expires_in}; it opens verify_url (/connect?code=…). /connect is self-contained: signed out, it shows Sign in with email (and mobile where enabled) and the same one-time-code flow as /signin (a new address creates a Free account), then approves the plug-in automatically and says to return to it; signed in already, one tap on "Continue as <email>" approves it. The plug-in, computer and code are shown on the page before sign-in. A small "Use an access token instead" link remains for scripted setups. The plug-in polls POST /v1/auth/device/token with {device_code}: 428 pending, 429 slower, 410 expired or denied, and once 200 {token, account}. GET /v1/me with that token returns {email, plan, storage}. Each approval mints its own revocable key. Guide: Sign in with browser.

Webhooks (2.7)

Per-account receivers for the things an integration waits on. Events:

EventWhendata
scene.readya job the account owns finished{ job, scene, status: "done", url, vpkUrl?, stats? } (scene = the scene id, the same as job)
scene.failed…or failed (the friendly error, never the raw detail){ job, scene, status: "error", error, code }
pingonly from POST …/webhooks/<id>/test — not subscribable{ hook, events }
comment.addeda review pin landed on an owned scene{ scene, comment: { id, t, pos, text, author?, measure? } }
version.promoteda new version went live, or a rollback{ scene, version, job?, diffSummary? | rollback: true }
config.changedthe owner saved (or cleared) a configuration schema{ scene, groups: [{ id, name, options }] }

A delivery is one POST of { "id", "event", "t", "account", "data" } with Content-Type: application/json and the headers X-Verse-Event, X-Verse-Delivery (the id), X-Verse-Timestamp (unix seconds) and X-Verse-Signature: sha256=<hex> — HMAC-SHA256 with the hook's secret over <timestamp>.<raw body>. Verify by recomputing it over the bytes you received and comparing in constant time; reject stale timestamps. A non-2xx answer, a timeout (10 s) or an unreachable host is retried: 3 tries, backoff 2 s then 8 s. Redirects are not followed and the receiver's response body is never read or stored.

import { createHmac, timingSafeEqual } from "node:crypto";
const expected = "sha256=" + createHmac("sha256", SECRET).update(`${req.headers["x-verse-timestamp"]}.${rawBody}`).digest("hex");
const ok = timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers["x-verse-signature"] ?? ""));

Or, with @ctruhtech/verse-sdk (WebCrypto — Node 18+, Workers, Deno, Bun): await verifyWebhook({ secret, body: rawBody, signature, timestamp }) — constant-time, rejects timestamps more than 5 minutes off. Copy-paste receivers: developers.md § Webhooks.

GET /v1/account/webhooks

→ { "accountId", "events": [...all five], "webhooks": [{ "id", "url", "events", "created", "secretHint", "last"? }] }. The secret is never returned after creation; secretHint is its last four characters. last is the newest delivery's { t, ok, event }.

POST /v1/account/webhooks

curl -sS https://verse.ctruh.com/v1/account/webhooks -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/verse-hook","events":["scene.ready","comment.added"]}'
# {"id":"3f1c9a2b7e04","url":"https://example.com/verse-hook","events":[…],"created":…,"secretHint":"…c1d2","secret":"<shown once>"}

url must be an absolute http(s) URL (in production: a public address, no credentials); events defaults to all five; secret (16–128 chars) is generated when omitted and shown once. Ten webhooks per account. Errors: 400 · 401 · 409 at the cap.

DELETE /v1/account/webhooks/<id>

→ { "deleted" }. The delivery log goes with it. 404 for another account's hook.

GET /v1/account/webhooks/<id>/deliveries

→ { "id", "deliveries": [{ "id", "event", "t", "ok", "attempts": [{ "t", "ms", "status", "error"? }] }] }, the last 50, newest first. status 0 with error "timeout" or "unreachable" when no HTTP answer came back. No secrets, no payloads from the receiver — the log is safe to show in Studio.

POST /v1/account/webhooks/<id>/test

One signed ping delivery to the hook now, a single attempt (no retries), logged like any other → { "id", "delivery", "ok", "status", "ms", "error"? }. The quickest way to prove a receiver verifies signatures before the first real upload.

curl -sS -X POST https://verse.ctruh.com/v1/account/webhooks/3f1c9a2b7e04/test -H "Authorization: Bearer $TOKEN"
# {"id":"3f1c9a2b7e04","delivery":"9a0b…","ok":true,"status":200,"ms":41}

Scenes

All owner-only unless noted: 401 without account auth, 404 for anyone who is not the owner (existence is never advertised).

RouteWhat
POST /v1/scenes/<id>/claimTake ownership of an unowned scene → { "id", "owner" }. 409 if someone else owns it.
DELETE /v1/scenes/<id>Remove the artifact, its sidecars, poster and review file; every share link stops working; the job record 404s.
PATCH /v1/scenes/<id> { "visibility" }"public" · "unlisted" (default) · "private" → { "id", "visibility" }.
GET /v1/scenes/<id>/statsPer-scene { id, opens, uniqueSessions, totalMinutes, last7d }.
POST /v1/scenes/<id>/shareMint a share token → { "id", "suffix", "created", "shareToken" }. The 32-hex token is shown once (stored hashed); up to 32 per scene.
GET /v1/scenes/<id>/shareActive share links as { "scene", "shares": [{ "id", "suffix", "created" }] } — never the tokens.
DELETE /v1/scenes/<id>/share/<shareId>Revoke one → { "revoked": "<shareId>" }; holders get 404s from then on.
curl -sS -X POST https://verse.ctruh.com/v1/scenes/docs-demo-718035483f84/claim -H "Authorization: Bearer <token>"
# {"id":"docs-demo-718035483f84","owner":"acct-5fab29f5aa8e"}
curl -sS -X PATCH https://verse.ctruh.com/v1/scenes/docs-demo-718035483f84 -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" -d '{"visibility":"private"}'
# {"id":"docs-demo-718035483f84","visibility":"private"}
curl -sS -X POST https://verse.ctruh.com/v1/scenes/docs-demo-718035483f84/share -H "Authorization: Bearer <token>"
# {"id":"0ca2f454","suffix":"629b","created":1790833830310,"shareToken":"<32 hex, shown once>"}

Visibility & share tokens

curl -sS -D - -o /dev/null https://verse.ctruh.com/ingest/docs-demo-718035483f84.vpk
# HTTP/1.1 404 Not Found
# X-Verse-Private: 1
curl -sS -D - -o /dev/null -H "Range: bytes=0-1023" \
  "https://verse.ctruh.com/ingest/docs-demo-718035483f84.vpk?share=<shareToken>"
# HTTP/1.1 206 Partial Content
# Cache-Control: private, no-store

Share tokens are 32 hex characters, returned once and never logged. Pass ?share= on the share link or on file URLs, or send X-Verse-Share. Deleting the scene or losing ownership revokes them all.

CDN caveat: on a server with a CDN in front, unlisted/public artifacts > 302 to the edge; a private scene never redirects — CDN copies are public bytes with no auth in front. Flipping an already-cached scene private does not purge the edge; purge it there.

Anonymous (ownerless) scenes have no visibility record and can never be private until an owner claims them. Step-by-step: Share privately with tokens.

Scene versions (2.5.0)

An owned, streamed (.vpk) scene takes a new upload as a version. The share link (/view?vpk=ingest/<id>.vpk) never changes and always serves the current version; Studio lists every version with a diff against the one before; rollback points the link at an older version. Private/share-token rules are unchanged (version artifacts are only reached through the scene's own names or the owner-only routes below).

RouteWhoWhat
GET /v1/scenes/<id>/currentanyone who may read the scene (private: owner or ?share=){ id, version, versions, file } — file is ingest/<id>.vpk for a scene without versions, ingest/<id>.vpk?v=<N> otherwise. no-store.
POST /v1/scenes/<id>/versions (GLB body, Content-Type: model/gltf-binary, optional X-Verse-Name)ownerCompiles the upload as an ordinary job → 202 { id, job, pending: true, url }; when it finishes it is promoted: archived as version N, made current, diffed. Poll GET /v1/ingest/<job> — the finished record carries sceneId, version, diffSummary and points at the scene link.
POST /v1/scenes/<id>/versions (JSON { "job" })ownerAttach a job the same account uploaded through /v1/ingest — done (200 { version }) or still compiling (202 { pending: true }, promoted when done). The job stops being a scene of its own.
GET /v1/scenes/<id>/versionsowner{ id, current, versions: [{ n, created, sizeBytes, tris, materials, textures, name, bounds, variants, current, diffSummary }], pending?, lastError? } — oldest first.
GET /v1/scenes/<id>/versions/<n>/diffownerThe diff of version n against the version before it: triangles/sizeBytes { before, after, delta }, bounds (min/max/extent deltas), materials (added/removed/changed by name with base colour hex, metallic, roughness, texture resolution), textures (count, largest, resolutionChanges per image), summary.
POST /v1/scenes/<id>/versions/<n>/activateownerRollback / forward: the scene's names serve version n → { id, current, changed }.
GET /v1/scenes/<id>/versions/<n>/file · /stageownerThat version's .vpk (Range supported) and staging manifest — Studio's "Open v2".
DELETE /v1/scenes/<id>/versions/<n>ownerRemove an archived version (never the current one: 409). Numbers are never reused.
curl -sS -X POST https://verse.ctruh.com/v1/scenes/docs-demo-718035483f84/versions -H "Authorization: Bearer <token>" \
  -H "Content-Type: model/gltf-binary" -H "X-Verse-Name: flat-v2" --data-binary @flat-v2.glb
# {"id":"docs-demo-718035483f84","job":"flat-v2-3c1f0a9e77d2","pending":true,"url":"https://verse.ctruh.com/?vpk=ingest/docs-demo-718035483f84.vpk"}
curl -sS https://verse.ctruh.com/v1/scenes/docs-demo-718035483f84/current
# {"id":"docs-demo-718035483f84","version":2,"versions":2,"file":"ingest/docs-demo-718035483f84.vpk?v=2","v":2}
curl -sS https://verse.ctruh.com/v1/scenes/docs-demo-718035483f84/versions/2/diff -H "Authorization: Bearer <token>"
# {"from":1,"to":2,"summary":"+12 triangles · 1 material added · 2 changed · 1 resolution change · +1 KB", …}

Up to 50 versions per scene. A new version is a new URL (?v=), so no cache purge is needed. The upload screen in /app offers "New version of …" to a signed-in owner (/app?version-of=<id> preselects).

Heatmap (2.5.0)

RouteWhoWhat
GET /v1/scenes/<id>/heatmapownerWhere visitors stood, as a 2D grid over the floor plan, plus the funnel. { id, window, sessions, samples, grid: { ox, oz, cell, nx, nz, stood[], max, bounds }, funnel: { opens, entered, walked, s30, m2 }, privacy }. The grid lines up with the .plan.svg, so it draws straight over the plan. Cached a minute; ?fresh=1 refreshes.

The heatmap comes from where visitors look while the scene is open. No IP is stored; ?analytics=0, the embed option analytics: false and Do Not Track opt a viewer out entirely.

Analytics

The numbers behind Studio's Analytics page (/studio/analytics) and the printable client report (/studio/report?scene=<id>&days=30). Guide: Show your clients who looked.

RouteWhoWhat
GET /v1/scenes/<id>/analytics?days=7|30|90ownerOne scene over the last 7, 30 (default) or 90 UTC days (other values → 400). { id, range: {days, from, to}, views, uniqueViewers, returningViewers, time: {totalSeconds, medianSeconds, averageSeconds}, funnel: [{key, label, n, pct}], hotspotClicks, devices: {class, os, inApp, via: [{key, n, pct}]}, title, rooms: [{key, name, kind: "room"|"outside"|"overview", visitors, seconds, pct, area, x, z, corridor, named}], roomsSource: "plan"|"none", floorM2, roomsPerVisit, roomMap, viewpoints: [{x, z, yaw, samples, seconds, room, facing}], samples, daily: [{day, views, uniqueViewers}], heatmap: {ox, oz, cell, nx, nz, stood[], samples, inside, outsideSamples, outside: [{x, z, n, ex, ez}], framed, max, bounds}, plan, enquiry, privacy }. title is the scene's name for people (the upload's file name without the id suffix). roomMap is the room of every plan cell (one character per cell, "0"… = keys[i], ~ open sky, . none) for click-to-rename. Funnel keys: opened, interacted, stayed30, enquired. Cached a minute; ?fresh=1 refreshes. Non-owners 404, anonymous 401.
GET /v1/scenes/<id>/analytics.csv?days=…ownerThe same as a CSV attachment: header, metric,value rows, one row per day, funnel, rooms, device / OS / in-app browser / arrival breakdowns.
GET /v1/account/analytics?days=…accountEvery scene you own added up (unique viewers are the union across scenes) plus scenes: [{id, views, uniqueViewers, medianSeconds, totalSeconds, enquiries, enquiryConfigured}]. Rooms and viewpoints are per scene only.
GET /v1/account/analytics.csv?days=…accountThe account roll-up as CSV, with one row per scene.
GET /v1/scenes/<id>/enquirypublic (mirrors the scene's visibility)The scene's enquiry button {label, url}, or 204 when none is set. The viewer draws it over the canvas.
PUT /v1/scenes/<id>/enquiryowner{label?, url} — url must be https://…, mailto:… or tel:… (else 400); label ≤ 40 characters (default "Enquire"). {url: null} clears.
DELETE /v1/scenes/<id>/enquiryownerRemoves the button.
GET /v1/scenes/<id>/report?days=7|30|90ownerThe viewer report: everything /analytics returns plus sources: [{key, n, pct}] (one per visit — keys below), hotspots: [{key, name, opens, sessions, pct}] (opens by hotspot id, named after the default experience's hotspot), linkClicks, questions: {total, sessions, pct}, viewers: [{id, sessions, seconds, device, source, rooms, topRoom, roomList: [{name, seconds}], hotspots, questions, firstSeen, lastSeen}] (the 100 who spent the most time, busiest first), viewerCount, preparedBy, visibility, sceneUrl, shared: false and links (this scene's report links, as below).
GET /v1/scenes/<id>/report.csv?days=…ownerThe viewer report as a CSV attachment: the /analytics.csv sections plus hotspot_opens, hotspot_links_followed, questions_asked, sessions_with_questions metrics, source breakdown rows, a hotspot section and one row per viewer (all of them).
POST /v1/scenes/<id>/report/linksowner{label?, days?} (label ≤ 60 characters, days 7 / 30 (default) / 90 — the link's rolling window) → 201 {id, link: {id, label, days, created, last4}, token, path: "/r/<token>"}. The token (r + 40 hex) is shown once. At most 16 per scene (409).
GET /v1/scenes/<id>/report/linksowner{id, links: [{id, label, days, created, last4}]} — never a token or hash.
DELETE /v1/scenes/<id>/report/links/<linkId>ownerRevokes the link at once (404 if it is not this scene's). Deleting the scene revokes all of them.
GET /v1/reports/<token>anyone with the linkThe viewer report for the link's window, shared: true, link: {label, days, created}. Without the owner-only fields: no links, no roomList, the enquiry label only. For a private scene: sceneUrl: null, plan: false (the plan image is a scene artifact behind the private gate; the room map is drawn without it). Unknown, malformed and revoked tokens are all 404. Cache-Control: private, no-store, Referrer-Policy: no-referrer, X-Robots-Tag: noindex. Report tokens and scene share tokens have different shapes: neither opens the other.
GET /v1/reports/<token>.csvanyone with the linkThe same CSV as the owner's.
PUT /v1/scenes/<id>/roomsowner{key, name} names one room (key from rooms[].key; unknown → 400); name: "" goes back to the default. Stored per scene (≤ 64), used by the dashboard, CSV and report for every stored day.

Definitions. A view is one browser tab opening the scene (a session); a session belongs to the UTC day of its first row. Unique viewers are distinct browser ids; returning ones opened the scene in two or more sessions in the range. Time is time the scene was visible. Interacted = a drag, tap, wheel or key on the page, or walking. Stayed 30 s+ = 30 seconds or more of visible time. Enquired = a click on the enquiry button. Rooms are detected automatically from the scene's floor plan and can be renamed. A room is named by the owner (PUT …/rooms), else after the default experience's hotspot standing in it, else "Room N" / "Corridor N"; its key stays the same so stored days and names stay attached. Samples under open sky read "Outdoors (terrace / garden)", samples off the plan "Overview (outside the floor plan)". A scene without an interior plan reports no rooms (roomsSource: "none"). The heatmap is framed to the plan; samples outside it are listed in heatmap.outside with their edge position (ex, ez).

Viewer report. The page is /studio/report?scene=<id> for the owner and /r/<token> for a shared link. A visit's source is one key: embed when it ran in an iframe; else the in-app browser it opened in (whatsapp, instagram, facebook, linkedin, twitter, tiktok, snapchat, telegram, wechat, line); else the referring site's class (google, search, email, youtube, other…); else share (a private share link) or direct (typed, a QR code, an app that sends no referrer). A viewer is one browser id; their source is how they first arrived, their device the one they used last. A viewer's id in a report (V- + 6 hex) is a pseudonym, stable within the scene's reports. Hotspot opens count every opening of a hotspot (by its id); questions count questions asked in Ask Verse while the scene was open — never their text.

Storage. Daily totals per scene are kept for 400 days. Deleting a scene deletes them.

Privacy. Only the fields analytics needs are stored; the browser id is stored as a pseudonym; no IP is ever written. Requests with DNT: 1 or Sec-GPC: 1 are answered 204 with X-Verse-Analytics: off and not stored.

Guided tours: a scene's experiences (2.7)

An owner authors hotspots and a guided tour in the viewer (?author=1, docs/guides/author-a-guided-tour.md) and saves them as a version-2 experience manifest. These routes tie experiences to the scene they belong to and pick the one the share link plays.

GET /v1/scenes/<id>/experiences

Owner-only → { "scene", "default", "experiences": [{ "id", "name", "created", "updated", "path", "url", "author" }] }, newest first. url is the ?experience=/v1/experience/<id> link; author the same link with &author=1. default names the experience the plain share link (/?vpk=ingest/<id>.vpk) layers over the scene, or null. Errors: 401 no auth · 404 not the owner's scene.

PUT /v1/scenes/<id>/experience

curl -sS -X PUT https://verse.ctruh.com/v1/scenes/SCENE/experience -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" -d '{"experience":"exp-38fd878a72"}'
# {"scene":"SCENE","experience":"exp-38fd878a72"}

Owner-only. experience must name one of this scene's experiences (owned by the same account, published for this scene), or null to clear. Errors: 400 not one of the scene's experiences · 401 · 404.

GET /v1/scenes/<id>/experience

Public, mirroring the scene's visibility (a private scene needs the owner's auth or a share token; strangers get the same 404 as a missing scene) → { "id", "path", "experience": <manifest> }, Cache-Control: no-store. 204 No Content when none is set — the viewer and embeds probe this on every ingest-scene open, and a 204 keeps the browser console quiet.

Background (2.8)

GET · PUT /v1/scenes/<id>/background · PUT /v1/scenes/<id>/background/image

curl -sS -X PUT https://verse.ctruh.com/v1/scenes/SCENE/background -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" -d '{"bg":"grad:2a2f45,0b0d12"}'
# {"scene":"SCENE","bg":"grad:2a2f45,0b0d12","image":null}
curl -sS -X PUT https://verse.ctruh.com/v1/scenes/SCENE/background/image -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: image/vnd.radiance" --data-binary @studio.hdr
# {"scene":"SCENE","bg":"hdr:ingest/SCENE.bg.hdr","image":"ingest/SCENE.bg.hdr","path":"ingest/SCENE.bg.hdr","url":"https://verse.ctruh.com/ingest/SCENE.bg.hdr","bytes":393258}
curl -sS https://verse.ctruh.com/v1/scenes/SCENE/background
# {"scene":"SCENE","bg":"hdr:ingest/SCENE.bg.hdr","image":"ingest/SCENE.bg.hdr","updated":1791753199560}

What sits behind the scene (Fidelity mode guide → Background): bg is one spec string — rrggbb (solid), transparent, grad:rrggbb,rrggbb (top → bottom), studio:neutral|warm|dark (also the image-based lighting), image:ingest/<id>.bg.<jpg|png> (picture, backdrop only), hdr:ingest/<id>.bg.hdr (lights the model too), or "" to clear. The PUT is owner-only and stores the scene's <id>.bg.json sidecar; /image takes raw JPEG, PNG or Radiance .hdr bytes (sniffed; ≤ 20 MB; EXR is not read yet) as <id>.bg.<ext> and sets bg to it. GET is readable by whoever may open the scene (private: owner or share token). The viewer replays it on load; ?bg= on a link wins; the embed SDK has setBackground / getBackground and the background event. Same visibility, version and delete rules as the other sidecars. Errors: 400 bad spec / not an image · 401 · 404 not the owner's scene · 413 over 20 MB.

Camera paths

GET · POST · PUT /v1/scenes/<id>/paths · GET · PUT · DELETE /v1/scenes/<id>/paths/<pid>

curl -sS -X POST https://verse.ctruh.com/v1/scenes/SCENE/paths -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" -d '{"name":"Walkthrough","mode":"walk","keys":[
    {"p":[0,1.6,0],"f":[0,0,-1],"label":"Entry"},
    {"p":[0,1.6,-4],"f":[1,0,0],"ease":"stop","hold":1.5,"label":"Living"},
    {"p":[3,1.6,-4],"f":[1,0,0],"fov":40,"look":[5,1,-4]}]}'
# {"scene":"SCENE","id":"p3f9a1c02de","default":true,"keys":3}
curl -sS https://verse.ctruh.com/v1/scenes/SCENE/paths
# {"scene":"SCENE","default":"p3f9a1c02de","paths":[{"id":"p3f9a1c02de","name":"Walkthrough","mode":"walk","keys":3,"labels":["Entry","Living",null],"updated":1792230000000}],"canEdit":false}
curl -sS https://verse.ctruh.com/v1/scenes/SCENE/paths/default

A camera path is the owner's authored walkthrough: keyframes recorded in the viewer (Path → Record), stored with the scene. Each key carries p (eye) and f (forward), and optionally fov (vertical degrees, 5–150), dur (seconds to the next key; absent = auto from distance and turn), hold (dwell seconds), ease (smooth — default — · stop · linear), look (a look-at target: two consecutive keys with one keep it framed) and label (the chapter name, ≤ 80 chars). mode: walk (eye height over the floor, collision-safe) or fly; speed in m/s for auto timing. The viewer plays it as a smooth camera move. POST creates (the first path becomes the default), PUT /paths/<pid> replaces ("default": true also makes it the default), PUT /paths {default: pid|null} picks the share link's default, DELETE removes. Writes are owner-only; GETs mirror the scene's visibility, Cache-Control: no-store. A share link plays a path with ?path=<pid> (or ?path=default). Limits: 24 paths per scene, 2–256 keys, 96 KB per body. Errors: 400 malformed key / bad id · 401 · 404 not the owner's scene or no such path · 409 too many paths · 413.

Default paths — POST /v1/scenes/<id>/paths/auto

curl -sS https://verse.ctruh.com/v1/scenes/SCENE/paths
# {"scene":"SCENE","default":"p2fc0a3e33e","auto":{"id":"p2fc0a3e33e","kind":"drone","edited":false},
#  "paths":[{"id":"p2fc0a3e33e","name":"Fly-through","mode":"fly","kind":"drone","auto":true,"keys":11,…}],"canEdit":false}
curl -sS -X POST https://verse.ctruh.com/v1/scenes/SCENE/paths/auto -H "Authorization: Bearer $TOKEN"
# {"scene":"SCENE","default":true,"id":"p2fc0a3e33e","name":"Fly-through","mode":"fly","kind":"drone","auto":true,"keys":[…]}

Every scene gets a default camera path without anyone recording one, stored as an ordinary path tagged auto: true with a kind: walk (a walkthrough of every room for interiors and buildings), drone (a fly-through for exteriors, sites, cities and captures) or orbit (a 360° turn around a product).

The auto path becomes the scene's default unless the owner chose another. An owner's PUT to it makes it theirs (auto: false, from: "auto", and the list's auto.edited: true); a re-upload re-plans an unedited auto path and keeps an edited or deleted one. POST /paths/auto (owner) is "Reset to auto": it re-plans the path in place and makes it the default (422 when the scene has nothing to plan from). GET /paths/auto reads it. A share link or embed plays the default path on open with ?autoplay=path.

Interactivity

GET · PUT /v1/scenes/<id>/interact

curl -sS -X PUT https://verse.ctruh.com/v1/scenes/SCENE/interact -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"hotspots":[{"id":"living","anchor":[1,1.5,2],"title":"Living room","price":"₹ 1.2 Cr","icon":"price","cta":{"label":"Book a visit","url":"https://wa.me/910000000000"}}],"toggles":{"daynight":true}}'
curl -sS https://verse.ctruh.com/v1/scenes/SCENE/interact
curl -sS -X PUT https://verse.ctruh.com/v1/scenes/SCENE/interact -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" -d '{"clear":true}'

The owner's light interactivity for a scene, kept beside it as the <id>.interact.json sidecar: hotspots (a pin on a surface with a card — title, text, image, price tag, a call-to-action such as "Book a visit" or a WhatsApp link, an optional "Fly there" camera), interactive objects (a picked door, piece of furniture or lamp with an action: door open/close by hinge or slide, visibility, material finish switch, light switch, clip glTF animation) with their triggers (click, near with a radius, a guided-tour tour stop) and the scene toggles (daynight, empty — hides the furniture group, measure). The viewer authors it with ?interact=edit (signed in); every viewer of the scene gets it. The schema and its limits (64 hotspots, 64 objects, 64 KB) are checked by the same code on the server and in the viewer: URLs must be https:/http:, tel:, mailto:, whatsapp: or a same-site path, images https: or same-site. GET mirrors the scene's visibility (private: owner or share token) and answers 204 when nothing is saved; PUT is owner-only and returns the stored, sanitized document; {"clear": true} removes it. Same delete rules as the other sidecars. Errors: 400 invalid JSON · 401 · 404 not the owner's scene · 413 over 64 KB. Hotspot opens, call-to-action clicks and object use reach the owner's analytics as act rows (hotspot, cta, object; see Analytics).

Ground heightfield (2.7, exterior kit)

PUT /v1/scenes/<id>/ground

curl -sS -X PUT https://verse.ctruh.com/v1/scenes/SCENE/ground -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: image/png" --data-binary @terrain.png
# {"scene":"SCENE","path":"ingest/SCENE.ground.png","url":"https://verse.ctruh.com/ingest/SCENE.ground.png","width":1024,"height":1024,"bytes":412233}

Owner-only. The body is a PNG (≤ 4096 × 4096, ≤ 8 MB; the red channel is the height, 0–255 → 0–amplitude metres) stored as the scene's <id>.ground.png sidecar — the same visibility, version and delete rules as the poster (a private scene gates it; deleting the scene removes it). The exterior kit displaces its ground with it when ground.kind is heightfield and ground.heightfield points at the path (the Exterior panel's Upload does both); the walker stands on the displaced ground. Re-uploading replaces the file. Errors: 400 not a PNG / over 4096 × 4096 pixels · 401 · 404 not the owner's scene · 413 over 8 MB.

Configurator: a scene's configuration schema (2.7)

2.5 switched one KHR_materials_variants name from ?variant=. The configuration schema is the owner's layer on top: option groups ("Fabric", "Legs", "Size"), each option mapping to a material variant and/or explicit material aliases (multi-material groups) and/or a visibility set, with an optional SKU and a display-only price. The viewer shows it as a panel, the embed SDK as setConfiguration() / getConfiguration() / the configuration event, and the whole pick rides the link as ?cfg=fabric:oak,legs:black (only non-default picks). Guide: docs/guides/build-a-configurator.md.

{
  "title": "Configure",
  "currency": "USD",
  "base": 890,
  "groups": [
    { "id": "fabric", "name": "Fabric", "default": "oak",
      "options": [
        { "id": "oak",    "name": "Oak",    "variant": "Oak" },
        { "id": "walnut", "name": "Walnut", "variant": "Walnut", "price": 120, "sku": "SOFA-WAL" } ] },
    { "id": "legs", "name": "Legs",
      "options": [
        { "id": "steel", "name": "Steel", "materials": { "4": 7 }, "swatch": "#8a8f98" },
        { "id": "none",  "name": "No legs", "hide": [4], "price": -40 } ] }
  ]
}

Rules (the same code the viewer renders with): ≤ 16 groups × 32 options; ids [a-z0-9_-]{1,32} (slugged from the name when omitted); variant must name one of the scene's variants; materials is {dst: src} glTF material indices (dst draws as src); hide lists material indices the option hides; price is a number ≥ 0 rounded to cents, sku ≤ 48 chars, swatch #rrggbb. Later groups win a material conflict. Nothing here bills: the price total is a label.

GET /v1/scenes/<id>/config

Public, mirroring the scene's visibility (a private scene needs the owner's auth or ?share=; strangers get the same 404 as a missing scene) → { "scene", "config", "updated" }, Cache-Control: no-store. 204 No Content when the scene has no schema — the viewer probes this on every streamed-scene open.

PUT /v1/scenes/<id>/config

curl -sS -X PUT https://verse.ctruh.com/v1/scenes/SCENE/config -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" -d @schema.json
# {"scene":"SCENE","config":{"version":1,"groups":[…]},"warnings":["option \"x\": unknown variant \"Teak\""]}

Owner-only (60/hour/IP). Body = the schema (or {"config": <schema>}); {"groups": []} / {"config": null} clears it. The response carries the canonical form (ids filled, defaults set) and warnings for anything dropped. Fires the config.changed webhook. Errors: 400 nothing usable (errors lists why) · 401 · 404 not the owner's scene · 413 over 64 KB.

Media surfaces + spatial audio (2.7)

An owner puts a video on a surface and ambient sounds in the room (?author=1 → Media, docs/guides/video-and-audio.md). The table lives in the scene's staging manifest (<id>.stage.json: media, audio) and follows the scene through versions; because that file is served immutable, the viewer reads it through the no-store route below.

GET /v1/scenes/<id>/media

Public, mirroring the scene's visibility (a private scene needs the owner's auth or a share token; strangers get a missing scene's 404) → { "scene", "media": [{ "material", "url", "loop", "emissive", "audio" }], "audio": [{ "pos", "url", "radius", "loop", "gain" }] }, Cache-Control: no-store. 204 No Content when the scene has neither.

PUT /v1/scenes/<id>/media

curl -sS -X PUT https://verse.ctruh.com/v1/scenes/SCENE/media -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"media":[{"material":3,"url":"/ingest/SCENE.media/1.mp4","emissive":1.5,"audio":true}],
       "audio":[{"pos":[2,1.2,-1],"url":"/ingest/SCENE.media/2.mp3","radius":6,"gain":0.8}]}'
# {"scene":"SCENE","media":[...],"audio":[...]}   (normalized)

Owner-only; replaces the whole table (≤ 32 KB). media: at most 4 surfaces (the renderer's media layers), each a distinct glTF material index with a same-origin video url (/ingest/<id>.media/<n>.mp4 from the upload route, or any path on this host — cross-origin URLs are refused: the frame is read back on the GPU and must not be tainted), loop (default true), emissive glow 0–8 (default 1) and audio (default false: play the video's own sound from the surface). audio: at most 16 ambient emitters, pos [x, y, z], same-origin url, radius 0.5–200 m (linear rolloff to silence), loop, gain 0–2. Errors: 400 validation (the message names the field) · 401 · 404 not the owner's scene · 409 the scene has no staging manifest (a classic GLB scene; media surfaces need a streamed scene).

POST /v1/scenes/<id>/media/upload

curl -sS -X POST https://verse.ctruh.com/v1/scenes/SCENE/media/upload -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: video/mp4" --data-binary @tv-loop.mp4
# {"path":"ingest/SCENE.media/1.mp4","url":"https://verse.ctruh.com/ingest/SCENE.media/1.mp4","bytes":4188212,"kind":"video","ext":"mp4"}

Web games

Host an HTML5 game from a .zip and play it on its own origin, play.ctruh.io (Host a web game). Owner routes need an account token.

RouteDoes
POST /v1/gamesraw .zip body, X-Verse-Name: <file name>, optional X-Verse-Title; answers the game record (id, player and embed URLs, dropped-file count)
POST /v1/ingest with X-Verse-Kind: gamethe same, through the upload road (also chosen when a zip has an index.html and scripts)
POST /v1/games/<id>/replacea new build, same link
PATCH /v1/games/<id>{title, visibility, isolation, orientation}
PUT /v1/games/<id>/coverPNG, JPG or WebP up to 3 MB; GET …/cover (a Ctruh card when none)
POST /v1/games/<id>/sharea private share code
DELETE /v1/games/<id>remove the game
GET /v1/account/gamesthe owner's library

Limits come from the plan: zip size 50 MB Free, 500 MB Starter, 1 GB Pro, 2 GB Scale; one game on Free. Zips are refused with a plain reason for more than 4,000 files, more than five times the plan size once unpacked, symlinks, absolute or .. paths, or a password.

Embeds

Guide: Embed anywhere. Product pages: 3D on product pages (WooCommerce, Magento, BigCommerce, Salesforce Commerce Cloud).

oEmbed

GET /oembed?url=<share link>&maxwidth=<px>&maxheight=<px>&format=json (public, CORS *, rate-limited 1200/h per IP)

Answers for share links on this server's host and on verse.ctruh.com. A link is /, /app, /view or /embed with vpk=, glb=, model= or scene=; look options on the link (look, bg, env, variant, cfg, lights, view, sky, weather, fog, ground, select, experience, tour) and aspect=16:9|4:3|1:1|3:4|9:16|21:9, load=tap, analytics=0 carry into the embed.

{
  "version": "1.0",
  "type": "rich",
  "provider_name": "Ctruh Verse",
  "provider_url": "https://verse.ctruh.com/",
  "title": "Palm villa",
  "html": "<div class=\"verse-embed\" style=\"position:relative;width:100%;max-width:640px;aspect-ratio:16/9;margin:0 auto\"><iframe src=\"https://verse.ctruh.com/embed?vpk=ingest/palm-villa-0a1b2c3d4e5f.vpk\" title=\"Palm villa — 3D view\" loading=\"lazy\" allow=\"fullscreen; xr-spatial-tracking; accelerometer; gyroscope; magnetometer; autoplay; clipboard-write\" allowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\" style=\"…\"></iframe></div>",
  "width": 640,
  "height": 360,
  "cache_age": 3600,
  "thumbnail_url": "https://verse.ctruh.com/ingest/palm-villa-0a1b2c3d4e5f.poster.png",
  "thumbnail_width": 1200,
  "thumbnail_height": 630
}

Share-page tags

A share page that names a scene (/?vpk=…, /view?glb=…, /app?…) carries, right after its <title>: <link rel="alternate" type="application/json+oembed"> (oEmbed discovery), Open Graph (og:title, og:description, og:url, og:image = the poster or the site image, with og:image:width/height) and a Twitter summary_large_image card. A private scene's page gets them only with a valid token (plus robots: noindex); without one the page is the plain app page, the same as for an unknown scene.

GET /embed

The lazy embed card that the oEmbed html, the plug-ins and Studio's embed code frame. The same query as embed.html (vpk / glb / model / scene, look options, share, analytics=0) plus:

ParameterEffect
load=tapLoad the 3D on tap only (also the default when the browser asks to save data)
guard=0No scroll guard: the scene takes every gesture from the start (default: vertical swipes and the wheel scroll the host page until the visitor taps / clicks the scene)
fs=0No fullscreen button (default: top-right; links out to /view where the frame cannot go fullscreen, as on iPhone)
ar=0No "View in AR" control (default: shown where the device can place the scene — WebXR, or Quick Look on iOS)

It is one small HTML page: the scene's poster and title inlined, no engine. When it is 25 % visible (IntersectionObserver), or on tap, it replaces itself with embed.html (the engine), keeping the poster behind the canvas until the first frame. Headers: Cross-Origin-Resource-Policy: cross-origin and Cross-Origin-Embedder-Policy: require-corp (on /embed.html too), so pages that are themselves cross-origin isolated can frame it; no X-Frame-Options. A private scene without a token gets the generic card (no title, no poster), identical to an unknown scene's.

Review comments

Pinned comments in 3D space on a shared scene — the client-review workflow. Access mirrors the scene: public and unlisted scenes are open to anyone with the link; a private scene's comments need the owner's auth or a share token (?share= / X-Verse-Share). Strangers see 404.

Comments are deleted with the scene.

POST /v1/review/<sceneId>

No account required; 60/hour/IP.

curl -sS -X POST https://verse.ctruh.com/v1/review/docs-demo-718035483f84 -H "Content-Type: application/json" \
  -d '{"pos":[1.2,0.9,-0.4],"text":"Can we see this wall in the oak finish?","author":"Priya"}'
# {"id":"c76ae3e41a","t":1790833830642}

GET /v1/review/<sceneId>

curl -sS https://verse.ctruh.com/v1/review/docs-demo-718035483f84
# {"scene":"docs-demo-718035483f84","comments":[{"id":"c76ae3e41a","t":1790833830642,
#   "pos":[1.2,0.9,-0.4],"text":"Can we see this wall in the oak finish?","author":"Priya","resolved":false}]}

Oldest first; resolved comments included. 404 for a private scene without access.

POST /v1/review/<sceneId>/<id>/resolve · DELETE /v1/review/<sceneId>/<id>

Owner-of-scene moderation (Bearer token or cookie).

curl -sS -X POST https://verse.ctruh.com/v1/review/docs-demo-718035483f84/c76ae3e41a/resolve -H "Authorization: Bearer <token>"
# {"id":"c76ae3e41a","resolved":true}
curl -sS -X DELETE https://verse.ctruh.com/v1/review/docs-demo-718035483f84/c76ae3e41a -H "Authorization: Bearer <token>"
# {"deleted":"c76ae3e41a"}

GET /v1/account/scenes carries reviews: { open, total } per scene. Guide: Collect client review comments.

Publishing: experiences, tours, posters

Needs an account (Authorization: Bearer <token>) on the hosted service; 30/hour/IP; account auth stamps an owner. All three return { "path", "url" } with a server-chosen random id.

POST /v1/experience

curl -sS -X POST https://verse.ctruh.com/v1/experience -H "Content-Type: application/json" \
  -d '{"name":"Docs showroom","scene":"ingest/docs-demo-718035483f84.vpk",
       "hotspots":[{"id":"front","label":"Front","position":[0,1.2,3],"look":[0,0.5,0]}]}'
# {"path":"ingest/exp-38fd878a72.verse.json","url":"https://verse.ctruh.com/?experience=ingest/exp-38fd878a72.verse.json"}

GET /v1/experience/<id> · PUT /v1/experience/<id> (2.7)

curl -sS https://verse.ctruh.com/v1/experience/exp-38fd878a72
# {"id":"exp-38fd878a72","path":"ingest/exp-38fd878a72.verse.json","experience":{...}}
curl -sS -X PUT https://verse.ctruh.com/v1/experience/exp-38fd878a72 -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" -d @manifest.json
# {"id":"exp-38fd878a72","path":"ingest/exp-38fd878a72.verse.json","url":"https://verse.ctruh.com/?experience=/v1/experience/exp-38fd878a72"}

POST /v1/experience/<id>/media (2.7)

curl -sS -X POST https://verse.ctruh.com/v1/experience/exp-38fd878a72/media -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: audio/mpeg" --data-binary @kitchen.mp3
# {"path":"ingest/exp-38fd878a72-media-9a1b2c3d.mp3","url":"https://verse.ctruh.com/ingest/exp-38fd878a72-media-9a1b2c3d.mp3","bytes":381204}

POST /v1/tour

curl -sS -X POST https://verse.ctruh.com/v1/tour -H "Content-Type: application/json" \
  -d '{"name":"docs tour","scene":"ingest/docs-demo-718035483f84.vpk",
       "samples":[[0,0,1.6,3,0,0,-1],[4,3,1.6,0,-1,0,0]]}'
# {"path":"ingest/tour-488fd5fe4b.tour.json","url":"https://verse.ctruh.com/?tour=ingest/tour-488fd5fe4b.tour.json"}

POST /v1/poster

curl -sS -X POST https://verse.ctruh.com/v1/poster -H "Content-Type: image/png" --data-binary @poster.png
# {"path":"ingest/poster-748cf2228b.png","url":"https://verse.ctruh.com/ingest/poster-748cf2228b.png"}

Presence rooms

Live-tour presence: a room is a named set of viewers who see each other's camera pose. HTTP only (SSE out, tiny POSTs in); poses are memory-only, 10 s TTL — nothing is recorded and a restart empties every room. <room> is 1–64 chars of [A-Za-z0-9_-]; treat room ids as capability URLs.

GET /v1/room/<room>/events

text/event-stream, Access-Control-Allow-Origin: *. The roster arrives on connect and then on change, coalesced to ≤ ~10 frames/s:

data: {"peers":[{"id":"docs-viewer-1","name":"Docs","color":"#78aaff","pose":[0,1.6,3,0,0,-1],"flags":{}}]}

2.7 (voice + presenter): open the stream as ?id=<your peer id> and it is tagged — signals addressed to that id arrive on it as named events. The first frame on a tagged or untagged stream is the config:

event: config
data: {"ice":[{"urls":["stun:…"]}],"mesh":6}

event: signal
data: {"from":"docs-viewer-2","to":"docs-viewer-1","kind":"offer","data":{"type":"offer","sdp":"..."},"t":1760000000000}

ice is the STUN server list; mesh is the voice mesh cap (6 talkers per room). Each peer's flags object carries whichever of presenter, hand, muted, voice, ptt, host (the live tour's host) are set and the presenter's laser point [x, y, z]. The stream carries a comment line (: hb <ms>) every 5 s as a heartbeat: a client that sees 15 s of silence should reopen it. Older clients that ignore named events keep working unchanged.

POST /v1/room/<room>/pose

curl -sS -X POST https://verse.ctruh.com/v1/room/docs-room/pose -H "Content-Type: application/json" \
  -d '{"id":"docs-viewer-1","name":"Docs","color":"#78aaff","pose":[0,1.6,3,0,0,-1]}'
# HTTP/1.1 204 No Content

POST /v1/room/<room>/signal

Relay for voice signalling and presenter events (2.7). The server forwards the body verbatim and at once to the SSE stream(s) opened with ?id=<to> — or, for to: "*", to every tagged stream in the room except the sender's — and keeps nothing. No audio ever passes through here: voice is WebRTC peer-to-peer and only the SDP / ICE text is relayed.

curl -sS -X POST https://verse.ctruh.com/v1/room/docs-room/signal -H "Content-Type: application/json" \
  -d '{"from":"docs-viewer-2","to":"docs-viewer-1","kind":"offer","data":{"type":"offer","sdp":"..."}}'
# HTTP/1.1 204 No Content
# X-Verse-Delivered: 1

Tour together, live

An agent's one tap mints a short invite link; a buyer opens it on any everyday device (WhatsApp / Instagram in-app browsers included) and lands in the agent's room as a guest who follows the host's camera. Three routes on top of the presence room, all memory only — an invite is {scene, room, created, expires}, no account, no name, no address; the room name is the capability and the code only shortens it. Guide: Tour together.

POST /v1/tour/invite

curl -sS -X POST https://verse.ctruh.com/v1/tour/invite -H "Content-Type: application/json" \
  -d '{"scene":"ingest/5f2c…e1.vpk"}'
# {"code":"k7m2xq4","url":"https://verse.ctruh.com/t/k7m2xq4","room":"tour-m8w3q2vk7p","scene":"ingest/5f2c…e1.vpk",
#  "expiresAt":1760100000000,"landing":"/view?vpk=ingest%2F5f2c…e1.vpk&room=tour-m8w3q2vk7p&live=1"}

GET /v1/tour/invite/<code>

{code, room, scene, expiresAt, landing} for a live invite, 404 for an unknown or expired code. no-store.

GET /t/<code>

The link people open. 302 to /view?vpk=<scene>&room=<room>&live=1 (no-store); an unknown or expired code answers a small 404 HTML page ("This tour link has expired"). live=1 makes the viewer join as a guest: the Enter gate on everyday devices, then the optional name chip, then following the host. ?room=<room>&host=1 hosts a room at once; a plain ?room= is the 2.7 viewer with the tour bar.

POST /v1/room/<room>/leave

curl -sS -X POST https://verse.ctruh.com/v1/room/docs-room/leave -H "Content-Type: application/json" -d '{"id":"docs-viewer-1"}'
# HTTP/1.1 204 No Content

A page that closes says so (the viewer sends it with sendBeacon on pagehide), and the peer is dropped from the roster and rebroadcast at at once, so guests see that the host left right away. Body ≤ 256 B, {id} (4–32 chars [A-Za-z0-9_-]); 400 bad id. Optional: a client that never sends it (the embed's own room join, older viewers) is swept after 10 s as before.

Live-tour signals and flags

Signing

GET /v1/pubkey

The deployment's Ed25519 public key. No auth; Cache-Control: public, max-age=300.

curl -sS https://verse.ctruh.com/v1/pubkey
# {"alg":"Ed25519","spki":"MCowBQYDK2VwAyEABHN2qIj3nOB4cvTPeA0erREzZQC1G4kpkunME6GA0B8="}

spki is base64 SubjectPublicKeyInfo DER, importable as-is with crypto.subtle.importKey("spki", der, { name: "Ed25519" }, false, ["verify"]). The viewer fetches it from the host page's origin — the page embedding a scene is the trust anchor — and reports signed: true | false | "unverified". It must be identical across deploys; a changed spki means the key was not persisted and earlier scenes now read signed: false (they still load).

Status

GET /v1/health/deep

No auth, rate-limited. 200 { "ok": true, … } when the service is healthy, 503 otherwise. Point an uptime monitor at it.

GET /v1/status

Public: the JSON behind the status page. No customer data.

GET /v1/config

Public settings the viewer reads once per page. Treat the body as informational.

Floor plan to 3D home

Turn a brochure floor plan into a furnished, walkable scene. Guide: Floor plan to 3D home. Both POSTs have the same limits as POST /v1/ingest, and a build counts as an upload.

Privacy: the image is read by an AI service so the labels on the plan can be read; it is not kept by that service.

GET /v1/plan2home/status

200 { "enabled": true, "ai": false, "styles": [{ "id": "modern-indian", "label": "Modern Indian", "blurb": "…" }, …], "defaultStyle": "modern-indian", "maxImageBytes": 25165824 }. ai is true when the AI reader is on.

POST /v1/plan2home/analyze

POST /v1/plan2home/build

Assistant

The endpoint behind Verse Chat. Guide: Verse Chat. It has no server-side side effects and no access to accounts, tokens, scenes or files: it returns text plus UI actions from a fixed whitelist, which the page validates again and runs itself.

POST /v1/assist

data: {"type":"text","delta":"Opening the upload panel."}
data: {"type":"action","action":{"type":"open_upload"}}
data: {"type":"done","mode":"ai"}

text events are appended in order; action events arrive after the text; done carries the mode that answered (ai or basic); an error event means the reply was cut short and no action should run.

curl -N -X POST "https://verse.ctruh.com/v1/assist" -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"how big can my file be?"}],"context":{"surface":"landing"}}'

GET /v1/assist/status

{ "mode": "ai" } or { "mode": "basic" } (answers from a fixed set of common tasks and a search over these docs).

POST /v1/telemetry

Where the viewer sends anonymous usage and analytics rows. Not for direct use; always answers 204. See Analytics for what is kept.

JS SDK

@ctruhtech/verse-sdk (since 2.6.0; 4.1.1 today) is the typed, dependency-free client for every route on this page — upload (one-shot and resumable, progress, cancel), job polling with stage callbacks, scenes, share tokens, versions and diffs, review comments, heatmap, publishing, presence, operations, and embedViewer() over the embed SDK. ESM + CJS + full typings; Node 18+ and browsers. Full reference with a runnable example per method: docs/sdk.md. Served without a package manager at /sdk/verse-sdk.js (same headers as embed.js):

import { VerseClient } from "https://verse.ctruh.com/sdk/verse-sdk.js";
const verse = new VerseClient({ baseUrl: "https://verse.ctruh.com", token: "<account token>" });
const done = await verse.publish(bytes, { name: "chair", onStage: (s) => console.log(s) });
console.log(verse.shareLink(done));

This page, the Postman collection and the SDK are generated from one route table and checked against the server on every release.

4.0 developer kit: the <verse-viewer> element, React and Vue wrappers, analytics.*, embedCode(), scenes.shares.link(), webhooks.test() and verifyWebhook() — one page of copy-paste examples in developers.md.

The original single-file verse-sdk.js (v0: VerseClient({ endpoint, apiKey }), ingest(), mount()) stays served at /verse-sdk.js for existing pages; new code should use @ctruhtech/verse-sdk.

Embed SDK

One script, embed.js, mounts the engine in an iframe from the Verse origin — full reference in embed-sdk.md, guide in Embed the viewer. What ships in embeds versus the playground:

Playground ↔ embed parity

FeaturePlaygroundEmbed SDKNotes
Streamed .vpk / .vsp / GLB / splat loading✔✔same engine, same routes (same-origin only)
Orbit / pinch / wheel camera✔✔shared camera-controls.js
Walk mode + analog move✔✔ walk() / move()no on-screen joystick in embeds; feed move() from your UI
Animations, picking, materials, sun, exposure, DoF, emitters, props, sounds, rooms, tours, experiences✔✔see embed-sdk.md
Voice + presenter mode (2.7)✔ viewers panel✔ joinRoom(id, { voice }), present(), setVoice(), room / peer / speaking eventssame voice.js / presenter.js inside the iframe; the follower veil renders in-frame
Video export✔ Export video chip✔ exportVideo() / cancelExport()embeds hand the bytes to the host page instead of auto-downloading — guide
Review pins✔ Review chip✔ opt-in review: true, setReviewMode() / getComments()same review.js inside the iframe; owner moderation stays playground/studio-only
Private scenes✔ ?share=✔ share optionthe token covers bytes and review calls
HDR display output✔ ?hdr=auto defaultopt-in hdr: "auto" | 1 (default SDR)embeds never shift a host page's colours uninvited
On-demand renderingopt-in ?render=demand (default on battery)✔ defaultembeds park when nothing changes
Upload / ingest UI✔✘use verse-sdk.js from your own page
Stats HUD / inspector / editor / minimap✔✘playground chrome; embeds expose progress events instead

Video export in embeds

viewer.exportVideo({ duration, fps, height, format, bitrate }) records the scene's tour inside the iframe and resolves { blob, mimeType, name, width, height, frames, cancelled }; export-progress events stream meanwhile; cancelExport() resolves { cancelled: true }. Message protocol for non-SDK hosts: verse:export-video down, verse:event {name:"export-progress"} up, verse:export-video-done with the transferred ArrayBuffer (or { id, error }), verse:export-video-cancel. Details and a copy-paste page: Export a flythrough video.

Plug-ins

Every Verse plug-in speaks this API — POST /v1/ingest (resumable for large files) → poll → hand the user url — and honours the error contract (app errors shown as they are, one retry on network-edge failures only). Download them from the Downloads page:

Changelog

What changed and when: Changelog.