Automation and Integrations
Connect Figurement to the rest of your workflow: keep scenes up to date from CAD, let other systems know when a scene is ready, and work on scenes from an AI assistant. Everything here uses the REST API with an API key, which you create in Account → API Keys. Examples use https://app.figurement.com; a scene’s id is the last part of its URL (/scenes/<scene id>).
Keep a scene in sync with CAD
Every time your CAD tool exports a new version of the model, upload it to the scene in update mode. Parts are matched by name and hierarchy: matched parts get the new geometry and placement and keep their materials, new parts are added, and parts the file no longer has are reported (or removed, if you ask). It never adds a second copy. See CAD Import for what an update changes.
Watch an export folder
figurement-sync watches a file or folder and uploads each new version. It needs Deno.
export FIGUREMENT_API_KEY=<your API key>
deno run --allow-net --allow-read --allow-env https://app.figurement.com/docs/tools/figurement-sync.ts \
--scene <scene id> --watch ~/CAD/exports/assembly.glb
Add --remove-missing to remove the parts the file no longer has, or --once to upload once and exit, for example from a macro.
Upload from a macro or script
curl -H "Authorization: Bearer <your API key>" -F file=@assembly.glb \
"https://app.figurement.com/api/scenes/<scene id>/import?mode=update"
| Query | Meaning |
|---|---|
mode=update | Update the parts already in the scene from the file |
mode=add | Add the file as new parts (the default) |
removeMissing=1 | With mode=update, remove the parts the file no longer has |
The response lists what changed: the parts that were updated, moved, added, missing and removed. Files can be GLB, GLTF or OBJ, or USD, USDA, USDC or USDZ. A USD file has to hold everything it uses, so upload a USDZ, or a .zip of the model’s folder (the root USD file with the layers, payloads and textures it refers to, as in an NVIDIA SimReady asset). Meshes, UsdPreviewSurface materials and their PNG and JPEG textures are imported.
Create a scene from a model
curl -H "Authorization: Bearer <your API key>" -F file=@assembly.glb \
https://app.figurement.com/api/scenes/import
The response holds the new scene’s id.
Download a scene as a 3D file
curl -H "Authorization: Bearer <your API key>" -o scene.glb \
"https://app.figurement.com/api/scenes/<scene id>/export?format=glb"
format is glb or usd (a USDZ file). Add configurationId=<variant id> for a variant other than the default, and bake=1 to bake procedural materials into image textures. The file is the scene as last saved.
Render through the API
A render runs in the cloud on a saved version of a scene, uses your plan’s render credits, and lands as an image in a render library.
-
Pick the version to render:
GET /api/scenes/<scene id>/historylists the saved versions; use the highestversion. -
Pick a render library:
GET /api/libraries/by-type/renderlists render libraries; use one whoseaccessiscan edit. -
Start the render. Each image names the camera and environment to use. Both ids are in the scene’s JSON (
GET /api/scenes/<scene id>/json): cameras inscene.camerasand itschildren, environments amongscene.entities.entitieswith"type": "Environment".curl -X POST -H "Authorization: Bearer <your API key>" -H "Content-Type: application/json" \ "https://app.figurement.com/api/render-jobs" -d '{ "sceneId": "<scene id>", "version": 12, "libraryId": "<render library id>", "images": [{ "name": "Hero", "width": 1600, "height": 1200, "max_samples": 512, "cameraId": "<camera id>", "environmentId": "<environment id>", "configurationId": null, "backgroundType": "environment", "style": "photo", "metadata": {} }] }'The response lists one render id per image.
-
Wait until
GET /api/render-jobs/<render id>/statussayscompleted. -
Download the image:
GET /api/assets/<render id>gives the render’sblobDigest, andGET /api/blobs/<digest>is the image.
The API reference describes every field of a render, such as backgrounds, ground shadows and denoising.
Tell other systems about Figurement: webhooks
A webhook sends a JSON POST to a URL of yours when an event happens. Create webhooks in Account → Preferences → Webhooks, or with POST /api/webhooks and a body of { "name", "url", "trigger" }.
| Trigger | When it fires |
|---|---|
manual | When someone picks the webhook in the avatar menu of an open scene, or calls POST /api/webhooks/<webhook id>/trigger with { "sceneId", "version" } |
user.login | When you sign in |
user.logout | When you sign out |
The payload:
{
"event": "manual",
"webhookName": "Send to PLM",
"userId": "us...",
"sceneId": "sc...",
"version": 3,
"timestamp": "2026-06-04T12:00:00Z"
}
sceneId and version are only sent by manual webhooks.
Example: a “Send to PLM” button
- Create a
manualwebhook named Send to PLM that points at your service. - In an open scene, pick Send to PLM in the avatar menu.
- Your service receives the scene id and version, and downloads the scene with the export endpoint using its own API key.
Work from an AI assistant
Connect Figurement to an AI assistant such as Claude or ChatGPT as a custom connector, with the URL https://app.figurement.com/api/mcp. You sign in to Figurement and choose what the assistant may do. It can then find, create and inspect your scenes, help you import models, apply materials, set up cameras, lighting and backdrops, render, show your renders, export, and search this documentation. Its edits are attributed to you and the assistant, and anyone with the scene open sees them at once. They cannot be undone with Undo in the editor; to go back, restore an earlier version from the scene’s version history.
The assistant works through Figurement while you talk to it. For anything that should run on its own, such as a hot folder or a webhook, use the REST API above with an API key. Setup, example prompts and troubleshooting: Use Figurement in Claude and Use Figurement in ChatGPT.
Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
401 | The API key is missing, wrong or expired. Create a new one in Account → API Keys. |
403 on an import or render | You lack edit access to the scene or library, or your plan limit is reached. The body says which. |
409 on an import | The scene is being updated. Retry shortly. |
429 or 503 on an export | Too many exports are running. Wait for Retry-After and retry. |
| USD upload fails | The file refers to files it does not hold. Upload a USDZ or a .zip of the folder. |
Explore the API
The interactive API reference lists every endpoint, and /api/docs/openapi.json is the OpenAPI specification for tools and code generators.