---
title: "Get a scene's build state (preview)"
method: GET
path: "/v1/scenes/{sceneId}"
tags: ["Scenes"]
---

# Get a scene's build state (preview)

`GET /v1/scenes/{sceneId}`

## Request

- Base URL: `https://realtimeavatar.ai/api`
- URL: `https://realtimeavatar.ai/api/v1/scenes/{sceneId}`
- Auth: HTTP bearer

A scene's build state, for a scene this workspace prepared. ready carries video_cache_id and the frame facts a mint may pass through.

Requires an API key with the `realtime:write` scope.

## Path parameters

- `sceneId` string, required

## Response `200`

Scene state

- union
  - object
    - `status` 'building', required
    - `scene_id` string, required: The prepared scene's artifact id, as returned by POST /v1/scenes when status is ready.
    - `timings` object
      - `download_ms` number
      - `decode_ms` number
      - `geometry_ms` number
      - `write_ms` number
      - `total_ms` number
  - object
    - `status` 'ready', required
    - `scene_id` string, required: The prepared scene's artifact id, as returned by POST /v1/scenes when status is ready.
    - `video_cache_id` string: The prepared scene's artifact id, as returned by POST /v1/scenes when status is ready.
    - `fps` number
    - `width` integer
    - `height` integer
    - `first_frames` integer
    - `total_frames` integer
    - `duration_s` number
    - `timings` object
      - `download_ms` number
      - `decode_ms` number
      - `geometry_ms` number
      - `write_ms` number
      - `total_ms` number
  - object
    - `status` 'failed', required
    - `scene_id` union, required: The scene id, or "unresolved" when the download failed before any byte was hashed and the request carried no md5 and bytes.
      - string: The prepared scene's artifact id, as returned by POST /v1/scenes when status is ready.
      - 'unresolved'
    - `error` 'source_unreachable' | 'source_unusable' | 'source_mismatch' | 'build_failed'
    - `timings` object
      - `download_ms` number
      - `decode_ms` number
      - `geometry_ms` number
      - `write_ms` number
      - `total_ms` number

## Other responses

- `401`: Missing, malformed, revoked, or expired key.
- `403`: The key lacks the scope for this operation, the tenant is not active, or scene sessions are not enabled for the workspace — code "scene_sessions_not_enabled", a per-workspace preview gate. Contact support to opt in.
- `404`: No scene with this id that this workspace prepared (code "scene_not_found")
- `default`: Error. Route-dependent: 400 (a field this route cannot honour — see `portraitUrl` on `UpdateAvatarRequest`), 402 (insufficient credits or spend limit), 404 (no such avatar, voice, or key for this tenant — the message often reads "does not belong to this tenant", which is a missing id and not a permission failure), 408 (the request was cancelled), 409 (the resource is not in a state that accepts this write — a stale `expectedRevision`, a render already in flight, or a mint that asked for a clip library still building), 411 (`POST /v1/assets/remote` only — the origin serving `remoteUrl` sent no `content-length`, so the platform will not stream it), 422 (strict schema rejection, or a motion description the safety screen refused), 429 (rate limited), 502 (upstream render failed), 503 (a dependency this route needs is unavailable — retryable, and nothing was written), 504 (the upstream request budget expired), 500 (unhandled). Switch on `code` where present, else `status`.

---

[API](https://skmtc.dev/realtimeavatar/apis/realtime-avatar-api.md) · [All operations](https://skmtc.dev/realtimeavatar/apis/realtime-avatar-api/llms.txt) · [OpenAPI document](https://skmtc.dev/realtimeavatar/apis/realtime-avatar-api/revisions/e9e3e998e673?raw)
