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.
- Base URL:
https://verse.ctruh.comfor the hosted service. Examples usehttps://verse.ctruh.com. - New here? The API quickstart is the three-call
version of this page. The Postman collection at
/verse-api.postman_collection.jsonhas every route below ready to run (generated from the same route table as the JS/TS SDK). - History: Changelog.
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:
- error +
X-Verse-Error: 1→ the app spoke. Theerrorstring is authoritative and actionable; do not blind-retry a 4xx (401/413/429/507say exactly what to fix or wait for). - error without the header → an intermediary spoke; the app never saw or never finished the request. Transient — one retry is appropriate.
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:
| Credential | Header | Grants |
|---|---|---|
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.com | Authorization: Bearer <token> — or the httpOnly verse_session cookie that POST /v1/account/login sets | ownership 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=starterViewers 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
| Area | Routes | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Ingest | GET /v1/limits · POST /v1/ingest · GET /v1/ingest/<job> · POST /v1/ingest/<job>/contact · POST /v1/ingest/url · POST /v1/ingest/begin · `PUT | GET /v1/ingest/part/<uploadId>·POST /v1/ingest/commit/<uploadId>` | ||||||||
| Accounts | POST /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] · `GET | POST /v1/account/webhooks·DELETE /v1/account/webhooks/<id>·GET /v1/account/webhooks/<id>/deliveries` | ||||||||
| Scenes | POST /v1/scenes/<id>/claim · DELETE /v1/scenes/<id> · PATCH /v1/scenes/<id> · GET /v1/scenes/<id>/stats · `POST | GET /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]·GET | POST /v1/scenes/<id>/report/links·DELETE /v1/scenes/<id>/report/links/<linkId>·GET /v1/reports/<token>[.csv]·GET | PUT | DELETE /v1/scenes/<id>/enquiry·GET /v1/scenes/<id>/experiences·PUT | GET /v1/scenes/<id>/experience·PUT /v1/scenes/<id>/ground·GET | PUT /v1/scenes/<id>/config` |
| Embeds | GET /oembed · GET /embed (the lazy embed card) | |||||||||
| Review comments | `POST | GET /v1/review/<scene>·DELETE /v1/review/<scene>/<id>·POST /v1/review/<scene>/<id>/resolve` | ||||||||
| Publishing | POST /v1/experience · `GET | PUT /v1/experience/<id>·POST /v1/experience/<id>/media·POST /v1/tour·POST /v1/poster` | ||||||||
| Presence | GET /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> | |||||||||
| Signing | GET /v1/pubkey | |||||||||
| Status | GET /v1/health/deep · GET /v1/status · GET /v1/config | |||||||||
| Floor plan to 3D home | POST /v1/plan2home/analyze · POST /v1/plan2home/build · GET /v1/plan2home/status | |||||||||
| Assistant | POST /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 }
}maxUploadBytesis the server-wide ceiling: the largest plan's raw cap (20 GB, Scale), in bytes. It is not your own limit.maxUploadMBis the Free plan's raw cap (100 MB). Paid plans allow more: Starter 2 GB, Pro 10 GB, Scale 20 GB.- A file over your own plan's cap is refused at
beginwith402 upgrade_required.
| Field | Meaning |
|---|---|
limits | enforced — what this server accepts |
recommended | recommendations, not limits — the largest scene tested every release; larger scenes are attempted |
timing | typical build seconds per source MB — source: "history" once the server has enough completed builds of its own, else the "formula" (~8 s/MB) |
queue | live: how busy the server is right now |
notify.email | whether this server can email uploaders (see contact) |
scanImport | Import 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.
- Body: the raw bytes — no multipart. A GLB (
Content-Type: model/gltf-binary), a Gaussian-splat capture (.splatantimatter15 or INRIA 3DGS binary.ply), a point cloud (.plywithx y zvertices,.las/.lazLAS 1.2–1.4 point formats 0–10,.e57), an IFC building model (.ifc, IFC2x3 / IFC4), a USD scene (.usdz,.usd,.usda,.usdc— one self-contained file; see IFC and USD), or an FBX / OBJ model, alone or in a.zipwith its textures (see FBX and OBJ). One-shot maxoneShotMaxMB(95 MB on the hosted service; 512 MB by default on a self-hosted server); anything larger, and anything over 64 MB, goes through the resumable upload (up to the plan's raw cap, 100 MB on Free) and is prepared on arrival. - Headers (optional):
X-Verse-Name— slug prefix for the scene id ([a-z0-9-_]);X-Verse-Kind: splat|cloud|ifc|usd|fbx|obj|ply(a PLY mesh) — force the kind (otherwise detected from the file itself; for IFC, USD, FBX and OBJ the bytes decide and the header is only a hint);X-Verse-Units: m|cm|mm|in|ft— the file's unit for an OBJ (see FBX and OBJ) and, 4.0, for a scan capture that does not declare one (OBJ, PLY, text clouds, E57, LAS; otherwise read from the capture's height);X-Verse-Up: auto|x|y|z|-x|-y|-z— which file axis is up for a capture (otherwise detected; GLB and USD keep the frame they declare);X-Verse-Scan: clean|off— force or skip the scan cleanup instead of letting detection decide; the record'sscansays what was done — guide: Import a scan;X-Verse-Source— tool attribution;X-API-Keyin keyed mode;Authorization: Bearerto own the scene;X-Verse-Bake: preview|final— bake the lighting of a live-lit GLB on the server before compiling (2.7);X-Verse-As: product|interior|building|exterior— say what the file is (the upload card's "3D model or scene?" answer: a model is aproduct, a scene is walkable); without it the classifier decides;X-Verse-Path: fidelity|streamed— (2.8) take the Fidelity road: the file itself is published asingest/<id>.fidelity.glbin seconds, opened by/view?glb=; without the header an upload streams as before and the record'sclassificationsays which road Verse would pick;X-Verse-Look: studio:neutral|warm|dark[,bg:rrggbb]— the studio preset and backdrop the share link opens with (?look=). - Draco-compressed, KHR-quantized and WebP/KTX2-textured GLBs are accepted and normalized server-side.
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"}- Validation: right after the upload the server checks the file. A
PDF or an HTML page is refused at once with
400(unsupported file type). Any other file it cannot build still answers202 {job}; the job's first poll is thenstatus: "error"with a friendly error. Nothing was compiled and any key quota is refunded. - Response
202:{ "job": "<id>" }. The job id is the scene id. - Errors:
400malformed or not a 3D file ·401sign-in required or unknown key ·413too large ·429rate limit or quota (body says which) ·503busy ·507storage full.
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:
| Field | Meaning |
|---|---|
progress | 0..1, never goes back |
etaS / etaText | seconds 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 |
attempt | 1..3 — which build attempt is running (failed builds retry automatically) |
healing | present while a retry runs: one plain sentence for the uploader, e.g. "Rebuilding with lighter settings. No action needed." |
preflight | what the server's inspection found: format, triangles, meshes, materials, textures, compression |
fixes | what the server repaired on the fly, in plain words (also on the done record) |
contact | true once a contact is attached (never the contact itself) |
When done:
| Field | Meaning |
|---|---|
url | the share link — opens the viewer and streams |
vpkUrl / vspUrl / vpcUrl | the compiled scene file itself (signed) |
cdnUrl | present when a CDN is configured: the same artifact on the edge (the origin URL would 302 there anyway) |
stageUrl / planUrl | the 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 |
attempts | present when more than one build attempt was needed (also on a final error) |
signed | true = 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) |
poster | added 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 jobs and finished records are durable: after a server restart a job in flight is recovered and a finished one answers its full record again. Polling clients should ride out the server being away for a few minutes rather than fail.
- Errors:
404unknown or expired job — finished job records are kept for 2 hours; the compiled artifact lives much longer (see Retention).
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:
error— always a string: one friendly sentence plus its fix. Safe to print verbatim; exporters and the embed SDK need no change.errorInfo—{ code, title, message, fix, retryable }.retryableanswers "is trying the same file again worthwhile?".
code | When |
|---|---|
file_too_large · empty_file · unsupported_format · already_compiled · gltf_version | the file is not something the server builds |
gltf_external_files | a GLB/glTF that references a separate .bin or image files |
corrupt_file · no_meshes · unsupported_geometry · unsupported_feature · bad_texture | the model itself: damaged, empty, lines/points, a compression that cannot be decoded, an unreadable image |
splat_invalid · splat_too_many | Gaussian-splat captures |
cloud_invalid · cloud_too_many | point 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_request | the request |
storage_full · server_busy · server_unreachable | the server cannot take the upload right now (507, 503, a gateway timeout) — retryable |
upload_interrupted · upload_incomplete · upload_expired · network | the transfer |
out_of_memory · compile_timeout · output_invalid | the 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_failed | our side — retryable, we are alerted |
unknown_job | job records expire after 2 hours |
internal | anything 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 }urlis a share link like any other; there is novpkUrl. Embed it withdata-model="<modelUrl>"rather thandata-scene.- Offered for prepared models up to 96 MB (published as
limits.classicFallbackMaxMB). Larger models, splat captures and unreadable files fail with the friendly taxonomy instead. - Animated and rigged models take this path by design. A streamed scene
is static, so a model with animations or skins that fits the size cap is
published here directly with
fallback.reason: "animated"and anoticesaying the animation was kept. A larger animated model compiles as a static streamed scene.
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"}name(2–80 chars),email,phone(7–15 digits;+,00, spaces, dashes and brackets accepted) andconsent: trueare all required.notify:"when-live"— an email goes out when the job reachesdone(or an apology if it finally fails);"sent"— the job had already finished, the email went immediately;"follow-up"— this server has no mail provider configured, nothing is sent and we follow up.- One scene mails one address: a different address after the email went
out is
409. - Errors:
400{ error, field }on invalid input ·404unknown or expired job ·429(12 per hour per IP). - The contact is stored on the server in a private file, is never served, never appears in a job record and is never logged in full.
Staging sidecars
Walkable scenes also get, beside the scene file:
<id>.stage.json—{ "spawn": { "position", "yaw" }, "tour": { "samples": [[t,x,y,z,fx,fy,fz], …] }, "bounds": { "min", "max" }, "kind": "interior" | "object" | "open", "walk": true | false, "view": { "mode": "walk" | "orbit", "eye", "look", "radius" } }.kindis what the scene is: an interior (ceilinged, person-sized free space) opens atview— standing at the spawn in walk mode; an object (nowhere a person could stand) has nospawn,walk: false, an orbitviewframing the whole object from outside and a turntable tour, and no.plan.svg; an open scene (walkable ground under open sky) has noviewand opens on the overview orbit. Manifests written beforekindexisted carry only the first three fields and behave as before.?view=overviewon the viewer skips the opening view. Every walkable scene gets a start position and a guided tour (a loop in the/v1/toursample format: a walkthrough of the rooms for interiors, an orbit for open-sky scenes). The viewer applies the spawn and offers Tour and Export video when a plain?vpk=link loads (no tour → no chip).<id>.plan.svg— a 2D floor plan (floor, walls, start position, scale bar, north arrow, area label). The minimap uses it as its base.<id>.usdz— (2.7) the iOS AR Quick Look package of a product-scale scene (GET /ingest/<id>.usdz,model/vnd.usdz+zip, immutable, the scene's visibility and?v=version key); the record'sarUrlpoints at it andarcarries the report or the reason there is none. Put it in<a rel="ar"><img></a>and Safari opens it in AR — guides/view-in-ar.md.
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):
POST /v1/ingestwithX-Verse-Bake: preview(orfinal); resumable uploads pass"bake": "preview" | "final"in thebeginbody (the header oncommitalso works).1/truemeanpreview. Ignored for splats and point clouds.- preview is faster (up to about 10 minutes for a large flat); final is higher quality (up to about 30 minutes).
- The job passes through
stage: "baking"with live progress (bake.done,bake.totalandworkText). The done record carriesbake(the report, above) and afixesline ("Baked the lighting for you (preview quality): …"). The published link is the baked scene;stats.modeand verification are as for any upload. - A scene the bake cannot carry (animated or skinned, already baked,
nothing bakeable), or a bake that fails or runs too long, is published
live-lit as it came; the record says so in
bake.skippedandfixes. - The upload screen offers the same thing as its Lighting choice (2.7.2):
Keep as exported (the default — no bake), Bake for me · preview or
Bake for me · final, shown on every live-lit upload. Preflight records carry
lighting: "live" | "baked" | "unlit"andlights.
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
- Body:
{ "size": <bytes>, "name"?: "<slug>", "kind"?: "splat", "prepared"?: true, "bake"?: "preview" | "final", "path"?, "look"?, "scan"?, "up"?, "units"? }(the last five are the body spellings ofX-Verse-Path/-Look/-Scan/-Up/-Units; the headers also work oncommit) —sizeis the exact total length: 1 … the plan's raw cap (Free 100 MB, Starter 2 GB, Pro 10 GB, Scale 20 GB, Enterprise custom —rawUploadMBinGET /v1/plans; past it, or past the plan's storage with the files you already have,402 upgrade_required, past the server's own cap400 file_too_large). Send anything over 64 MB through this resumable path; the one-shotPOST /v1/ingestkeeps itsoneShotMaxMBdoor (95 MB on the hosted service). The server prepares every model on arrival (it makes the file lighter without changing how it looks) and the plan's size limit (Free 1 GB, Starter 2 GB, Pro 10 GB, Scale 20 GB) applies to the prepared size: over it, stronger compression runs automatically, then the job pauses withprepare.state: "choice"and the 402 upgrade shape (prepare.choice.deny) — answer withPOST /v1/ingest/<job>/choice {"action":"compress"|"cancel"|"recheck"}; upgrading the plan lets the same job carry on by itself."prepared": true(verse-prepare ran on your side) still reads the plan's prepared limit. The job record carriesprepare(stateand alinesuch as"943 MB → 292 MB") and, for an FBX / OBJ naming textures that were not in the upload,convert.textureWarning(count,names,message) — non-blocking. - Rate, quota and storage gates run here (this is the upload's debit).
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}- Errors:
400bad size ·401/429key/quota/rate ·503too many open uploads ·507storage full.
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}- Errors:
400malformed or mismatched range / body length (a torn body rolls back to the last good offset) ·404unknown or expired upload ·409out of order — the body carries the authoritative offset; resume from there:
{ "error": "out-of-order part: next byte is 848", "received": 848 }Parallel parts:
beginandGET .../part/<id>answer"parallel": true. A client that sendsX-Verse-Parallel: 1on aPUTmay send parts in any order and several at once (up to 8 in flight per upload; a ninth gets429). Each part is written at its own offset;receivedstays the contiguous prefix from byte 0 andranges([[start, end], …]) lists every stored interval, so a client resumes by sending only the gaps, even after a server restart. A part that exactly matches a stored one answers200(idempotent); one that partly overlaps stored or in-flight bytes answers409. Clients without the header keep the strictly ordered contract above.A
409whosereceivedequals the part's own start means **another attempt at this part is still in flight** ("another part is already uploading"): wait and retry.- Refusals are readable. A refused part of up to 64 MB is answered and
its body drained rather than the connection cut, so clients that stream
the body without
Expect: 100-continue(Node'sfetch) read the status instead of a reset ("fetch failed").
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"}- Errors:
401/429·404unknown/expired upload ·409upload incomplete (body carriesreceived/size) ·503compile queue full. - Idempotent: committing an already-committed upload answers the same
202 {job}— retry a commit whose response was lost.
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"}- Body (JSON, ≤ 4 KB):
url(required, absolutehttp(s)),name(scene name; default: the file name in the URL),kind(asX-Verse-Kind; default: from the URL's extension, the bytes decide),bake,path,look,scan(as the resumablebegin).X-Verse-Kind/X-Api-Key/Authorizationheaders work as onPOST /v1/ingest. - What is fetched. Public addresses only, at most 3 redirects, up to
your plan's upload limit, 10 minutes at most. A
Dropbox share link needs
dl=1; a Google Drive link needs "Anyone with the link"; S3 / R2 / GCS work with a presigned URL. - Answer: the one-shot
202 {job}plussizeBytesandsource(the host the file came from). PollGET /v1/ingest/<job>as usual. - Errors (same contract,
errorInfo.code):400 url_blocked(nothttp(s), credentials in the URL, a private / local / unresolvable host),400 bad_request(nourl),400 empty_file,404 url_fetch_failed(the URL answered 404),413 file_too_large,502/504 url_fetch_failed(the URL did not give a file, ended early, redirected too often, timed out),401/429/503/507asPOST /v1/ingest. Rate-limited with the ingest bucket.
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."]
}<id>.props.json— the object index, served next to the scene under the same rules as.stage.json; the scene's.stage.jsoncarries"props": trueso viewers fetch the sidecar only when it exists (private scenes: owner or share token only; versioned, deleted and backed up with the scene):{ "version": 1, "source": "ifc" | "usd", "schema", "products", "nodes": { "<glTF node>": { "id", "type", "name", "storey"?, "description"?, "tag"?, "props": { "Pset_WallCommon.IsExternal": true, … }, "bounds"? } }, "ids": { "<GlobalId | prim path>": node }, "storeys": [ { "name", "elevation"?, "id"?, "nodes": […] } ], "types": { "IfcWall": [nodes…] } }. For IFCidis the GlobalId,typethe entity (IfcWall),storeythe containing IfcBuildingStorey, andpropsthe flattened property sets and quantities (Pset.Property→ value; type psets included); for USDidis the prim path,typeisMeshandstoreythe group below the root prim.boundsis the world AABB.- Viewer: the share link grows an Objects panel (tree by storey and
type with visibility toggles, search by name / id / type, the selected
object's property sets); clicking an object selects it;
?select=<id>deep-links to one. Hidden objects are not drawn or downloaded. - Embed SDK:
viewer.getProperties(id)/getProperties(),viewer.setVisible(ids, bool)/isolate(ids)/setVisible("all"),viewer.select(id, { frame }); eventsobjects,select,visibility, andpickcarriesobject.@ctruhtech/verse-sdk:kind: "ifc" | "usd"(and, 3.0,"fbx" | "obj") onupload();JobRecord.propsUrl/convert. - What is read: IFC2x3 and IFC4 body geometry (every product with a
representation;
IfcSpace, openings, annotations and grids are skipped; unstyled products take a per-type palette); USD Mesh prims (any face size, triangulated), xform chains, the stage'supAxis(Z-up is stood upright) andmetersPerUnit; materials from a MaterialX network (OpenPBRND_open_pbr_surface_surfaceshader; AutodeskND_standard_surface_surfaceshaderin.usdatext layers) orUsdPreviewSurface→ glTF PBR with clearcoat, sheen, transmission, specular, IOR and emissive-strength extensions; base colour, normal, emissive, occlusion and metallic/roughness textures inside the file (the last two packed into one).convertaddsmaterialX,standardSurface,previewSurface(materials per model),extensions,upAxis,metersPerUnit. Not read: IFC files over the 512 MB cap, USD references / payloads / sublayers to files outside the upload (usdzcarries its own), skinning, animation, point instancers, Standard Surface inside binary crates (.usdc/.usdz— their UsdPreviewSurface is used), texture connections on Standard Surface. Conversion has a 15-minute budget. Guide: Publish from IFC or USD.
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."]
}- Units and axes: FBX from the file's
UnitScaleFactorandUpAxis(a centimetre Z-up 3ds Max file lands in metres, Y-up). OBJ has no units:X-Verse-Units(m|cm|mm|in|ft; SDKunits) says which; without it a model wider than 1,000 units is read as centimetres and wider than 100,000 as millimetres (convert.unitssays what was assumed). - Materials: Phong / Lambert; 3ds Max Physical, Maya Stingray PBS and
Arnold base values and maps (
convert.pbrUpgradedcounts them); MTLKd/Ke/Pr/Pmandmap_*. Embedded FBX textures always; separate files when zipped. Missing ones are listed inconvert.missingTexturesand the fix line; the upload still builds. - Animation: node animation and skins, one clip (
convert.animationsis 1 when anything moves; static takes are dropped). OBJ: none. - Zip rules: Deflate or stored, no password, zip64 fine; entries that
escape the folder are skipped; unpacked size capped at 20 GB; other scene files (
.max,.blend, USD, glTF) are not unpacked. - Errors:
model_invalid(not retryable) — not FBX/OBJ bytes, FBX older than 7.1, a zip without a model, a file that cannot be read;convert_failed(retryable) — the conversion failed or ran past its 15-minute budget. Guide: Upload FBX and OBJ.
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:
| Event | When | data |
|---|---|---|
scene.ready | a 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 } |
ping | only from POST …/webhooks/<id>/test — not subscribable | { hook, events } |
comment.added | a review pin landed on an owned scene | { scene, comment: { id, t, pos, text, author?, measure? } } |
version.promoted | a new version went live, or a rollback | { scene, version, job?, diffSummary? | rollback: true } |
config.changed | the 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).
| Route | What |
|---|---|
POST /v1/scenes/<id>/claim | Take 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>/stats | Per-scene { id, opens, uniqueSessions, totalMinutes, last7d }. |
POST /v1/scenes/<id>/share | Mint 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>/share | Active 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
unlisted(default) — reachable by anyone with the URL, listed nowhere.public— reserved for a future gallery; serves identically to unlisted today.private— every artifact (.vpk/.vsp,.stage.json,.plan.svg, poster) and the scene's review comments require the owner's auth or a share token. Everyone else gets a404byte-identical to a missing file's, plusX-Verse-Private: 1so the viewer can say "This scene is private". Range requests work unchanged for anyone granted access.
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-storeShare 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 >
302to 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).
| Route | Who | What |
|---|---|---|
GET /v1/scenes/<id>/current | anyone 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) | owner | Compiles 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" }) | owner | Attach 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>/versions | owner | { id, current, versions: [{ n, created, sizeBytes, tris, materials, textures, name, bounds, variants, current, diffSummary }], pending?, lastError? } — oldest first. |
GET /v1/scenes/<id>/versions/<n>/diff | owner | The 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>/activate | owner | Rollback / forward: the scene's names serve version n → { id, current, changed }. |
GET /v1/scenes/<id>/versions/<n>/file · /stage | owner | That version's .vpk (Range supported) and staging manifest — Studio's "Open v2". |
DELETE /v1/scenes/<id>/versions/<n> | owner | Remove 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)
| Route | Who | What |
|---|---|---|
GET /v1/scenes/<id>/heatmap | owner | Where 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.
| Route | Who | What |
|---|---|---|
GET /v1/scenes/<id>/analytics?days=7|30|90 | owner | One 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=… | owner | The 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=… | account | Every 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=… | account | The account roll-up as CSV, with one row per scene. |
GET /v1/scenes/<id>/enquiry | public (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>/enquiry | owner | {label?, url} — url must be https://…, mailto:… or tel:… (else 400); label ≤ 40 characters (default "Enquire"). {url: null} clears. |
DELETE /v1/scenes/<id>/enquiry | owner | Removes the button. |
GET /v1/scenes/<id>/report?days=7|30|90 | owner | The 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=… | owner | The 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/links | owner | {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/links | owner | {id, links: [{id, label, days, created, last4}]} — never a token or hash. |
DELETE /v1/scenes/<id>/report/links/<linkId> | owner | Revokes 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 link | The 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>.csv | anyone with the link | The same CSV as the owner's. |
PUT /v1/scenes/<id>/rooms | owner | {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/defaultA 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"}- Body: one raw media file, container-sniffed (the header's type is
ignored):
mp4(ISO BMFF;M4Abrands count as audio) orwebm(EBML; a video track makes it video) for video, ≤ 200 MB;mp3,m4a,ogg,wavor audio-onlywebmfor audio, ≤ 20 MB. The cap is chosen from the sniff, so an over-cap body is refused as soon as it crosses its line. - Stored as
ingest/<id>.media/<n>.<ext>(ncounts up per scene), served with the scene's visibility (a private scene's clip needs the owner's auth or?share=), Range-capable (so<video>seeks), deleted with the scene. Put the returnedpath(root-relative) in a surface's or emitter'surl. - Errors:
400not a media file we serve ·401/404as PUT ·413over the cap for its kind ·500.
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.
| Route | Does |
|---|---|
POST /v1/games | raw .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: game | the same, through the upload road (also chosen when a zip has an index.html and scripts) |
POST /v1/games/<id>/replace | a new build, same link |
PATCH /v1/games/<id> | {title, visibility, isolation, orientation} |
PUT /v1/games/<id>/cover | PNG, JPG or WebP up to 3 MB; GET …/cover (a Ctruh card when none) |
POST /v1/games/<id>/share | a private share code |
DELETE /v1/games/<id> | remove the game |
GET /v1/account/games | the 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
}- Size.
width=maxwidth(default 640, at most 1920);heightfrom the aspect ratio (16:9; Fidelity products 1:1; or the link'saspect), shrunk tomaxheight. Thehtmlis responsive whatever the numbers: it fills its container up towidth. - Title. The scene's name from its id (
palm-villa-<12 hex>→ "Palm villa"). - Thumbnail. The owner's attached poster, else the auto poster (
<id>.poster.png), with its real pixel size. Omitted when the scene has none. - Private scenes. The link must carry a valid share token (
&share=<token>), or the request the owner's auth. Thehtmlandthumbnail_urlthen carry the token, and the answer isCache-Control: private, no-storewithcache_age: 0. Without access the answer is exactly the unknown-scene answer:404 {"error":"not found"}, same headers. - Errors.
400nourl;404not a Verse scene link, a foreign host, an unknown scene or a private one without access;501formatother thanjson;429rate limit.
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:
| Parameter | Effect |
|---|---|
load=tap | Load the 3D on tap only (also the default when the browser asks to save data) |
guard=0 | No 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=0 | No fullscreen button (default: top-right; links out to /view where the frame cannot go fullscreen, as on iPhone) |
ar=0 | No "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}- Body:
{ pos: [x, y, z], text ≤ 500 chars (required), author? ≤ 40 }. - Errors:400invalid shape ·404no such scene, or private without access ·413text over 500 chars or the scene already at 200 comments ·429.
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"}- Errors:
401no account auth ·404not the owner, or no such comment ·429(shares the scene-management bucket).
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"}- Body: a
.verse.jsonmanifest (Experience manifests), max 128 KB;scene(non-empty string) is required, everything else is validated by the runtime parser on load. - Errors:
400not JSON orscenemissing ·500could not store. - With account auth the owner stamp also records the manifest's
sceneandname, which is whatGET /v1/scenes/<id>/experienceslists.
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"}- GET is public (mirrors the scene's visibility) and
no-store: the staticingest/exp-<id>.verse.jsoncopy is served immutable for a year, so anything that may have been edited — the Author bar, Studio, embeds — reads through here.?experience=/v1/experience/<id>is the share-link spelling the Author bar hands out. - PUT is owner-only (
401no auth,404not yours), same body rules as POST (≤ 128 KB,scenerequired), rewrites the manifest in place and refreshes thescene/namestamp.
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}- Body: a raw narration clip, max 2 MB, container-sniffed —
mp3(ID3 / frame sync),m4a(ftyp),ogg,wav(RIFF/WAVE) orwebm(EBML); the stored extension follows the sniff, never the header. Put the returnedpath(root-relative) in a tour step'saudio. - Errors:
400not an audio clip ·401/404as PUT ·413over 2 MB ·500. Clips are bounded as a set (default 2000 kept) like posters and tours.
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"}- Body:
{ name?, scene, samples }, max 512 KB;samplesis 2–6000 rows of[t, x, y, z, fx, fy, fz](finite numbers);nametruncated to 120 chars. The viewer lerps between rows and loops. - Errors:
400invalid shape (the body says what) ·500.
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"}- Body: raw PNG, max 4 MB, magic-checked. With account auth,
X-Verse-Scene: <owned scene id>attaches it as that scene's dashboard thumbnail;?scene=<id>(used by the viewer's automatic first-visit capture) stores it idempotently asingest/<id>.poster.png. - Errors:
400not a PNG ·500.
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- Body ≤ 2 KB:
id4–32 chars[A-Za-z0-9_-](client-invented),name≤ 24,color#rrggbb,poseup to 6 numbers, optionalflags{presenter?, hand?, muted?, voice?, ptt?, host?, laser?: [x, y, z]}(2.7; booleans are kept only when true, anything else is dropped). Post at ~8 Hz; peers expire after 10 s of silence. - Errors:
400bad id or room full (32 peers).
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- Body ≤ 16 KB:
fromandtopeer ids (4–32 chars[A-Za-z0-9_-];tomay be"*"),kindone ofofferanswericebyemute(voice),presentactionlaserhandand the pass-the-presenter kind (presenter),chat,pingend(live tour, below);dataany JSON. - Reply:
204withX-Verse-Delivered: <n>— the number of streams the frame was written to (0= that peer is not listening; nothing is queued). - Errors:
400bad id / kind,413over 16 KB,429over 400 signals per second per room (ICE bursts are ~30 per peer),429too many rooms. - Presenter event schema (
kind: "action",to: "*"), applied by followers through the same setters the UI uses:{name: "tour", detail: {playing}}·{name: "hotspot", detail: {id}}·{name: "variant", detail: {name}}·{name: "lights", detail: {query}}(a?lights=string) ·{name: "clip", detail: {encoded}}(a?clip=string; the embed may send{planes: [[nx,ny,nz,d]…], cap}instead) ·{name: "style", detail: {name}}(a?style=look).present {on}announces / gives up the floor, the pass-the-presenter signal{}(addressed) makes the recipient present,hand {}is a raised hand,mute {muted}mirrors the roster flag so a mute shows before the next pose post. - Privacy: the room id is the capability, exactly as for the roster. There is no TURN relay: two peers that both sit behind symmetric NAT never connect and the viewer says so ("no audio with …") rather than failing silently.
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"}- Body ≤ 2 KB:
scene— a published scene path (ingest/<id>.vpk|.vsp|.classic.glb|.fidelity.glb; a bare<id>.vpkis normalised toingest/), optionalroom(1–64 chars of[A-Za-z0-9_-]; omitted → a freshtour-<10 random>nobody guesses). - Reply:
code(7 chars, no 0/o/1/l/i), the absoluteurl(/t/<code>on the request's origin —X-Forwarded-Proto/Hostare honoured),room,scene,expiresAt(ms; 24 h) and thelandingpath.Cache-Control: no-store. - Errors:
400not an ingest scene / bad room / torn body;429over 60 invites per address per hour.
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 ContentA 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
flags.hoston the pose record marks the tour's host (the host also carriespresenter: guests follow the presenter mechanics).kind: "ping",to: "*",data: {pos: [x, y, z], name}— "look here": every screen draws a pulsing ring at that world point for a few seconds.kind: "end",to: "*",data: {by}— the host ended the tour; guests release their cameras.- The pass-the-presenter signal (addressed) in a live tour makes the recipient the host as well as the presenter.
- Guests count in analytics as one
act: "livetour"row per session (liveTours/live_tour_sessionsin the scene report).
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
- Body: the raw image (PNG, JPEG, WebP or PDF), at most 24 MB. For a PDF, the first JPEG page image is read.
X-Verse-Hints(optional): JSON, plain or URI-encoded. All fields are optional:areaSqftorareaSqm, withareaKindset tocarpet(the default),builtuporsuper;widthM, the outside width in metres (beats the area);bhk,style,cityandname.
- 200:
{ plan, stats, svg, ai: { used, model?, error?, tries? }, repair, validation, frame, timings }.planis the plan document. It is in metres, with x to the right and y down, and holdswalls,openingsandrooms(id,name,type,rects,area,center). Each opening haskind,at,width,dir,rooms,entranceandadded:kindisdoor,windoworopen. An open gap is an archway or a kitchen open to the living room: no leaf, and you walk through it.added: truemarks a door the reader put in because the drawing didn't show one.
repairis{ added, entrance, unreachable }:addedis how many doors were added;entranceis"moved"or"added"when the entrance was put right, elsenull;unreachablelists the rooms that no legal door can reach (never through a bathroom, never in an outside wall). Normally it is empty.
validationis{ ok, problems: [{ code, message, rooms? }] }: what still looks off after the readers and the repair.codeisunreachable,overlapping_openings,overlapping_rooms,tiny_room,area_mismatch(the rooms' total does not match the printed total or your area hint) orroom_area_mismatch(a room does not match its printed area or dimensions). Check rooms lists them; the build does not refuse them (only unreachable rooms do).frameis{ imageW, imageH, pxPerM, origin, deskew? }: image pixel = (plan metres +origin) ×pxPerM, before thedeskewrotation (radians, about the image centre) is undone. Use it to draw the plan over the upload.statsgives the rooms by type, the carpet area and the BHK.svgis the plan drawn for display.ai.erroris set when the AI reader failed; a plan is still returned.
- Errors:
- 413: over the size limit.
- 415: not a PNG, JPEG, WebP or PDF.
- 422: no plan could be read, or the image is not a floor plan (a photo
of a room, a render). The
errorfield says why, in words meant for the user. - 503: two plans are already being read; retry after
Retry-After.
POST /v1/plan2home/build
- Body (JSON, ≤ 1 MB):
{ "plan": <plan from analyze, edited>, "style": "modern-indian" | "scandinavian" | "luxury" | "minimal", "name": "Sunrise 2BHK" }. - What it does: generates the furnished home. Before publishing, it checks that every room can be reached from the entrance.
- 202:
{ job, id, statusUrl, experienceUrl, checks, stats }.- Follow
statusUrl(GET /v1/ingest/<job>) exactly as for an upload. - When the job is done,
<id>.stage.jsonholds the spawn at the living-room entrance, with a walk view.ingest/exp-<hex>.verse.jsonholds one hotspot per room and a guided tour, and it is the scene's default experience when an account owns the scene. experienceUrlopens the scene with the room hotspots.
- Follow
- Errors:
- 400: the plan is malformed.
- 422
{ "code": "unreachable_rooms", "unreachable": [{ "id", "name" }] }: a room cannot be reached from the entrance (usually a missing door). Nothing is published. The plan is built exactly as sent, so the build adds no doors. Add one in the plan (Check rooms: Edit doors), or send the plan thatanalyzereturned, which is already repaired. - 503
server_busy: the compile queue is full.
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
- Body (JSON, ≤ 48 KB):
{ "messages": [{ "role": "user" | "assistant", "content": "…" }], "context": { "surface": "landing" | "app" | "studio" | "docs", "path": "/app", "sceneLoaded": true } }. The first and last message must be from the user. At most 20 messages, 1,000 characters in the newest one. - Response:
200 text/event-stream. Eachdata:line is one JSON event:
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.
- Actions (the whole list):
navigate {path}(only/,/app,/studio,/docs/and product-page sections),open_upload,load_demo {name},start_tour {surface, chapter?},set_view {mode}(walk,orbit,tour,stop_tour,minimap,measure),export_video,open_review,share_link,open_docs {page, section?}(public docs pages only),show_limits {limits}. At most 3 per reply. - Errors carry
{ "error": "…", "message": "…" }, wheremessageis written for the visitor:400(malformed or too long),403(cross-site request),429(per-IP bucket),503(daily cap reached, busy, or unavailable).
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
| Feature | Playground | Embed SDK | Notes |
|---|---|---|---|
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 events | same 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 option | the token covers bytes and review calls |
| HDR display output | ✔ ?hdr=auto default | opt-in hdr: "auto" | 1 (default SDR) | embeds never shift a host page's colours uninvited |
| On-demand rendering | opt-in ?render=demand (default on battery) | ✔ default | embeds 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:
- Blender — the Verse Publish extension (Blender 4.2 or newer, tested on 5.2). Guide: Publish from Blender.
- Unity — a UPM package (Unity 2022.3 or newer, tested on 6.6; URP, HDRP and Built-in): Verse ▸ Sign in with Browser once, then Verse ▸ Publish to Verse. Guide: Publish from Unity.
- Unreal — an editor plug-in (Unreal Engine 5.8, tested on 5.8): Tools ▸ Verse ▸ Publish to Verse. Guide: Publish from Unreal.
Changelog
What changed and when: Changelog.