Quick Start
How to start using our API on one of the embedded models on your site.
The Basics
To begin using the API with an embedded model:
Import the API as a module.
Create an API instance and pass the DOM
id
of theiframe
containing the embed (web component
coming soon).Wait for the instance to initialize.
Use the available methods to interact with the model.
Async Methods
All API communication is handled using postMessage
events. As a result, all methods return Promises.
Errors
Errors returned by API methods reject the corresponding Promise. Rejection includes a standardized error format for consistent handling.
{
status: "error",
error?: string
}
Init
initisReady
isReadypostViewData
projectInfoLast updated