Skip to Content
ScenebrewDevelopers
API referenceScenes

Get Scene Artifact

GET
/v1/scenes/{scene_id}/artifacts/{kind}

One artifact: the current version, or version. With inline, the SDD or PEG text travels in the record — what a host agent wants to read. The model comes in the variant materials / meshes ask for, as in list_scene_artifacts. Some versions written before every version was stored on its own were overwritten by a later one and have no bytes left: asking for one is a 410 artifact_version_unavailable. Requires the read scope.

Authorization

apiKey
AuthorizationBearer <token>

First-party API key (sbk_live_…), presented as a Bearer token.

In: header

Path Parameters

scene_id*Scene Id
Formatuuid
kind*Kind

Value in

  • "sdd"
  • "peg"
  • "blueprint"
  • "model"
  • "layout_preview"
  • "thumbnail"

Query Parameters

version?|

A specific version; the current one when omitted.

inline?Inline

Include the text of an SDD or PEG in content.

Defaultfalse
materials?Materials

The model only: its materials embedded with their maps (default — a self-contained file) or by reference (thin materials naming the library material, resolved with POST /v1/projects/{project_id}/assets/resolve).

Default"embed"

Value in

  • "reference"
  • "embed"
meshes?Meshes

The model only: its library meshes embedded (default) or by reference (instance nodes naming the mesh asset).

Default"embed"

Value in

  • "reference"
  • "embed"

Response Body

application/json

application/problem+json

curl -X GET "https://example.com/v1/scenes/497f6eca-6276-4993-bfeb-53cbbbba6f08/artifacts/sdd"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "kind": "string",  "version": 0,  "is_current": true,  "content_type": "string",  "size_bytes": 0,  "content_hash": "string",  "created_at": "2019-08-24T14:15:22Z",  "download_url": "string",  "download_expires_in": 0,  "download_expires_at": "2019-08-24T14:15:22Z",  "materials": "reference",  "meshes": "reference",  "content": "string"}