Spacery: Matterport and 3D scan hosting

v0.2.4
io.github.lukehollis/spacery Checked 3 days ago Published 8 days ago

Paste a Matterport link and host the tour.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_plans List hosting plans

The ways to pay for hosting, with prices, and the account's current plan. The first space is a free private preview.

create_space Create space

Creates a space for one capture. An account that does not pay for hosting yet gets its first space as a free private preview: upload and process it with no payment. After that, it returns a Stripe Checkout link for the chosen plan (pay as you go when none is given). Card details are entered only in Stripe Checkout.

ParameterTypeDescription
title *stringTitle of the space, 1 to 200 characters.
planstringOptional plan name or ID from list_plans.

wait_for_payment Wait for payment

Waits up to 25 seconds for the person to finish paying in Stripe Checkout, whether for a space's first payment or to publish a free preview, and reports whether the payment arrived.

ParameterTypeDescription
space_id *stringThe space ID (12 hexadecimal characters) from create_space or space_status.

upload_files Upload files

Starts resumable uploads for capture files the agent holds (for example photos or video shared in the conversation) and returns where to PUT each file's bytes. Files on the person's own device are dropped on the space's page instead.

ParameterTypeDescription
files *array
space_id *stringThe space ID (12 hexadecimal characters) from create_space or space_status.

finish_upload Finish upload

Checks that every uploaded file is complete and submits the space for processing. The account is emailed when the space is ready.

ParameterTypeDescription
space_id *stringThe space ID (12 hexadecimal characters) from create_space or space_status.
notesstringOptional notes for processing, such as what the capture is or how the tour should go.
outputstringWhat to build: "splat", a 3DGS (3D Gaussian splat) visitors move through freely (the default for photos, video and 360 captures); "tour", a guided tour of 360 panoramas (the default for E57 scans); or…
submitbooleanDefaults to true.

space_status Space status

Status of one space, or every space on the account with its link when ready.

ParameterTypeDescription
space_idstringThe space ID (12 hexadecimal characters) from create_space or space_status.

set_visibility Set space visibility

Makes a ready space public (anyone with the link) or private (only the owner). A free preview cannot be public until hosting starts, so it returns a Stripe Checkout link for the person to pay.

ParameterTypeDescription
public *boolean
space_id *stringThe space ID (12 hexadecimal characters) from create_space or space_status.

find_tour_spaces Find spaces for tours

Spaces a guided tour or scavenger hunt can be built on: the person's own finished spaces and the site's public spaces (museums, temples, tombs, gardens). Search by words in the title.

ParameterTypeDescription
querystring

list_tours List tours

The tours and scavenger hunts on the account, with their links.

create_tour Create tour

Starts a private, empty guided tour or scavenger hunt on one of the person's spaces or a public space.

ParameterTypeDescription
scene_id *stringThe sceneId from find_tour_spaces.
kindstring
titlestring

draft_tour Draft tour

Asks the site's tour agent, which sees the space's photographs, to write or rework the tour from a plain request: stops and text, hidden objects and clues, library models, effects, sound, music, looks with transitions and skies (day, sunset, storm, night, stars). It places everything and saves. Returns at once while the draft is written.

ParameterTypeDescription
request *string
tour_id *stringThe tour ID (12 hexadecimal characters) from create_tour or list_tours.

wait_for_tour Wait for tour draft

Waits up to 25 seconds for a draft to finish, then summarizes the tour.

ParameterTypeDescription
tour_id *stringThe tour ID (12 hexadecimal characters) from create_tour or list_tours.

get_tour Get tour

The tour as JSON (stops, objects, effects, looks, skies) with its revision.

ParameterTypeDescription
tour_id *stringThe tour ID (12 hexadecimal characters) from create_tour or list_tours.

save_tour Save tour

Saves a tour edited by hand as its experience JSON. Models use a library url or any https address of a .glb.

ParameterTypeDescription
experience *object
tour_id *stringThe tour ID (12 hexadecimal characters) from create_tour or list_tours.
titlestring

search_models Search 3D models

Searches the library of ready-made 3D models (statues, amphorae, temples, furniture, animals, props from many periods). Returns each model's size and url.

ParameterTypeDescription
query *string
limitnumber

share_tour Share tour

Makes a tour public (anyone with its link, never listed) or private, and optionally renames it.

ParameterTypeDescription
tour_id *stringThe tour ID (12 hexadecimal characters) from create_tour or list_tours.
publicboolean
titlestring