Verse by CtruhDocsPlug-insPricingOpen in the docs site

Share privately with tokens

By default a published scene is unlisted: anyone with the URL can open it, and it is listed nowhere. For a client review, a pre-launch project or a paying customer you often want more — a scene that only the people you chose can open, and the ability to cut one of them off later without touching the others. That is what private scenes and share tokens do.

You need: an account (free; the token is your credential) and a scene you own. The examples use the hosted service, verse.ctruh.com; TOKEN is your account token.

1. Get an account and own the scene

Create the account once. The token is returned once — store it like an API key:

curl -sS -X POST https://verse.ctruh.com/v1/account \
  -H "Content-Type: application/json" -d '{"name":"Studio North"}'
# → {"accountId":"acct-5fab29f5aa8e","name":"Studio North","createdAt":…,
#    "token":"<64 hex, shown once>", "note":"This token is shown once and IS your credential …"}

Scenes you upload with the token are owned automatically — send Authorization: Bearer TOKEN on the ingest (the Blender, Unity and Unreal exporters do this when a token is set in their preferences). An existing anonymous scene can be claimed by id:

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"}

Owned scenes are permanent (never removed to free space) and show up in /studio and GET /v1/account/scenes.

2. Make it private

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"}

From now on every artifact of the scene — the .vpk, its .stage.json and .plan.svg sidecars, its poster — answers 404 to anyone without access. The body is byte-identical to a missing file's, so existence is never advertised; the only tell is an X-Verse-Private: 1 header, which the viewer app uses to say "This scene is private" instead of "expired":

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

You still see it yourself, with the Bearer token or the /studio session cookie.

3. Mint a share token per recipient

curl -sS -X POST https://verse.ctruh.com/v1/scenes/docs-demo-718035483f84/share \
  -H "Authorization: Bearer TOKEN"
# → {"id":"0ca2f454","suffix":"629b","created":…,"shareToken":"<32 hex, shown once>"}

Mint one per person (up to 32 per scene). The 32-hex shareToken is shown once and stored only as a SHA-256 hash; id is what you revoke by, and suffix is the last four characters so you can tell links apart in a list.

The link you send is the normal share link plus the token:

https://verse.ctruh.com/?vpk=ingest/docs-demo-718035483f84.vpk&share=<shareToken>

The app threads ?share= onto every artifact fetch, including the render worker's byte-range requests, so the recipient streams normally:

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

Programmatic clients can send X-Verse-Share: <shareToken> instead of the query parameter. In an embed, pass it as the share option — see Embed the viewer.

4. See who has access, and revoke

curl -sS https://verse.ctruh.com/v1/scenes/docs-demo-718035483f84/share -H "Authorization: Bearer TOKEN"
# → {"scene":"docs-demo-718035483f84","shares":[{"id":"0ca2f454","suffix":"629b","created":…}]}

curl -sS -X DELETE https://verse.ctruh.com/v1/scenes/docs-demo-718035483f84/share/0ca2f454 \
  -H "Authorization: Bearer TOKEN"
# → {"revoked":"0ca2f454"}

A revoked holder gets plain 404s from the next request on. Other recipients are unaffected. Deleting the scene, or losing ownership, kills every token at once.

/studio does all of this per scene card: a visibility selector plus create / copy / revoke for each share link, listed by suffix.

What private scenes give up

Reference