Skip to content

API: Projects

Read the render plan of a window

GET /api/v1/projects/{id}/plan: Read the render plan of a window

Last updated:

GET/api/v1/projects/{id}/plan

Authentication#

Send the secret in the header Authorization: Bearer <secret>: the local token in local mode, an API key in network mode. An API key needs the read scope; the local token has every scope. See the API overview for both modes.

Path parameters#

NameTypeRequiredDescription
idstringyesmin length 1

Query parameters#

NameTypeRequiredDescription
timeline_idstringnoThe timeline of the project; required when the project has several.
fromintegernoThe first frame of the window, as a whole number of frames (not a time such as 1s); default 0.
untilintegernoThe end of the window in whole frames (not a time such as 1s), not included; at most 300 frames after from. Required.
tointegernoDeprecated alias of until (whole frames), removed at 1.0.
revinteger (int64)noMust be the current revision when given.
widthintegernoThe width in pixels the preview draws at, 16 to 4096; bitmaps are rasterized at that scale. Default: the project width.

Responses#

200 OK#

Content type application/json. Schema: WindowPlan.

NameTypeRequiredDescription
audioarray of WindowAudiono
backgroundstringno
end_frameintegerno
fromintegerno
heightintegerno
layersarray of WindowLayerno
revisioninteger (int64)no
safe_areaarray of number (double)no
tointegerno
transparentbooleanno
widthintegerno

400#

Validation failed; errors maps each field to its messages and issues lists each problem with its code, key and params

Content type application/problem+json. Schema: Problem.

401 Unauthorized#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

403#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

404#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

409#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

Any other status#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

curl -X GET "http://127.0.0.1:7878/api/v1/projects/PROJECT_ID/plan" \
  -H "Authorization: Bearer $STUARTY_KEY"

Response examples

{
  "audio": [
    {
      "asset": "string",
      "denoise": 0,
      "first": 0,
      "gain": "string",
      "item": "string",
      "last": 0,
      "processed": {},
      "reverse": false,
      "source_seconds": 0,
      "speed": 0,
      "speed_curve": {},
      "timeline": "string",
      "voice": "string"
    }
  ],
  "background": "string",
  "end_frame": 0,
  "from": 0,
  "height": 0,
  "layers": [
    {
      "asset": "string",
      "asset_kind": "string",
      "bitmaps": {},
      "blend": "string",
      "blur": 0,
      "chroma_key": {},
      "color_matrices": [],
      "color_matrix": "string",
      "crop": [],
      "crops": [],
      "cx": "string",
      "cy": "string",
      "effects": [],
      "filter": [],
      "first": 0,
      "flip_x": false,
      "flip_y": false,
      "grade": {},
      "group": {},
      "h": "string",
      "item": "string",
      "kind": "string",
      "last": 0,
      "lut": {},
      "mask": {},
      "masks": [],
      "natural": [],
      "opacity": "string",
      "outline": {},
      "rotation": "string",
      "scale": "string",
      "shadow": {},
      "source_frames": [],
      "source_seconds": [],
      "timeline": "string",
      "transition": [],
      "w": "string"
    }
  ],
  "revision": 0,
  "safe_area": [
    0
  ],
  "to": 0,
  "transparent": false,
  "width": 0
}

The examples are built from the schemas of the OpenAPI document, so a value is a placeholder of its type. The fields that carry the real values are in the tables.